/* RockGeo Public Showcase CSS — Mobile-first, Semantic, Accessible, Zero Framework Dependencies */

:root {
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --bg-primary: #0a1118;
  --bg-surface: #121e2a;
  --bg-surface-elevated: #1a2a3a;
  --text-primary: #f0f4f8;
  --text-secondary: #94a9be;
  --text-muted: #62788d;
  --accent-teal: #00d2b4;
  --accent-teal-dark: #009e86;
  --accent-blue: #38bdf8;
  --border-subtle: #1e3347;
  --border-focus: #38bdf8;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Accessibility Focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
}

.brand-accent {
  color: var(--accent-teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  color: var(--text-primary);
  border-color: var(--accent-teal);
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-portal:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  padding-block: 3.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(0, 210, 180, 0.12) 0%, transparent 70%);
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(0, 210, 180, 0.12);
  color: var(--accent-teal);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 210, 180, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #061017;
  background: linear-gradient(135deg, var(--accent-teal), #38bdf8);
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 210, 180, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 210, 180, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-focus);
}

/* Feature Grid */
.features-section {
  padding-block: 4rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin-inline: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 210, 180, 0.1);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Steps Section */
.steps-section {
  padding-block: 3.5rem;
  background-color: rgba(18, 30, 42, 0.4);
  border-block: 1px solid var(--border-subtle);
}

.step-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--accent-teal);
  color: var(--accent-teal);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Truth & Offline Table */
.table-section {
  padding-block: 4rem;
}

.truth-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  background-color: var(--bg-surface);
}

.truth-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.truth-table th, .truth-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.truth-table th {
  background-color: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-primary);
}

.truth-table tr:last-child td {
  border-bottom: none;
}

.badge-offline {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: rgba(0, 210, 180, 0.15);
  color: var(--accent-teal);
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.8125rem;
}

.badge-online {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* Disclaimer Box */
.disclaimer-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent-teal);
  background-color: rgba(0, 210, 180, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.disclaimer-box strong {
  color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
  padding-block: 3.5rem;
}

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 3.5rem 2rem;
  background-color: #060b10;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr));
  }
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Guide & Tutorial Specific Components (C01–C06)
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-block: 1.5rem 1rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--accent-teal);
}

.breadcrumb-separator {
  user-select: none;
  color: var(--text-muted);
}

.guide-article {
  max-width: 860px;
  margin-inline: auto;
  padding-bottom: 4rem;
}

.guide-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.guide-intro-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), #38bdf8);
  color: #061017;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-card h2, .step-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.step-card p:last-child {
  margin-bottom: 0;
}

.step-card ul, .step-card ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.callout-tip {
  border-left: 4px solid var(--accent-teal);
  background-color: rgba(0, 210, 180, 0.07);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-block: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.callout-tip strong {
  color: var(--text-primary);
}

.callout-warning {
  border-left: 4px solid #f59e0b;
  background-color: rgba(245, 158, 11, 0.08);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-block: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.callout-warning strong {
  color: #fbbf24;
}

.guide-cta-card {
  background: radial-gradient(circle at 50% 0%, rgba(0, 210, 180, 0.15) 0%, var(--bg-surface) 75%);
  border: 1px solid var(--accent-teal);
  border-radius: 0.75rem;
  padding: 2.25rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.guide-cta-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.guide-cta-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.guide-next-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
}

.guide-next-box h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.guide-next-box p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

