/* ── ClawdPro.ai Shared Stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c14;
  --surface: #0d1424;
  --surface-2: #111a2e;
  --border: rgba(59, 130, 246, 0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --blue-glow: rgba(59, 130, 246, 0.35);
  --gold: #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.12);
  --gold-glow: rgba(245, 158, 11, 0.35);
  --text: #f0f4ff;
  --text-dim: #8ba3cc;
  --text-faint: #4a6080;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Animated grid background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-gold-fixed {
  position: fixed;
  top: 10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--blue-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--blue-glow); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn-nav {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.btn-nav:hover {
  background: #2563eb !important;
  box-shadow: 0 0 20px var(--blue-glow) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 28px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dim);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text);
  background: var(--blue-dim);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-gold:hover {
  background: #d97706;
  box-shadow: 0 0 28px var(--gold-glow);
  transform: translateY(-1px);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text) 0%, #a8c4f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-left h1 .accent-blue { color: var(--blue); -webkit-text-fill-color: var(--blue); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.trust-icon { font-size: 1rem; }

/* Hero mascot */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-wrapper {
  position: relative;
  display: inline-block;
}

.mascot-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  animation: mascot-glow 3s ease-in-out infinite;
}

@keyframes mascot-glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.mascot-wrapper img {
  width: 280px;
  height: auto;
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── PROBLEM / SOLUTION ── */
#problem-solution {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}

.ps-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ps-col.bad h3 { color: var(--text-dim); }
.ps-col.good h3 { color: var(--green); }

.ps-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.ps-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.ps-list li .icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.ps-col.good .ps-list li { color: var(--text); }

/* ── USE CASES ── */
#use-cases { padding: 100px 0; }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.use-case-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px var(--blue-dim);
  transform: translateY(-3px);
}

.use-case-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.use-case-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.use-case-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.use-case-card .tier-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--gold-dim);
  color: var(--gold);
}

/* ── HOW IT WORKS ── */
#how-it-works { padding: 100px 0; background: var(--surface); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--blue-glow), var(--border), var(--blue-glow));
}

.step-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.step-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 32px var(--blue-dim);
  transform: translateY(-4px);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.step-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

.step-card .step-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--blue-dim);
  color: var(--blue);
}

/* ── COMPARISON TABLE ── */
#comparison { padding: 100px 0; }

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

table thead th {
  padding: 14px 20px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

table thead th:first-child { color: var(--text-dim); }
table thead th:nth-child(2) { color: var(--blue); }
table thead th:nth-child(3) {
  color: var(--gold);
  border-top: 3px solid var(--gold);
}

table tbody tr {
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}

table tbody tr:hover { background: rgba(59, 130, 246, 0.04); }

table tbody td { padding: 12px 20px; color: var(--text-dim); }
table tbody td:first-child { color: var(--text); font-weight: 500; }

.check { color: var(--green); font-size: 1rem; }
.cross { color: var(--red); font-size: 1rem; opacity: 0.6; }
.badge-value { color: var(--text); font-weight: 600; }

/* ── PRICING CARDS ── */
#pricing { padding: 100px 0; background: var(--surface); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.2s;
}

.pricing-card.basic { border-top: 3px solid var(--blue); }

.pricing-card.premium {
  border-top: 3px solid var(--gold);
  box-shadow: 0 0 40px var(--gold-dim);
}

.pricing-card:hover { box-shadow: 0 0 32px var(--blue-glow); transform: translateY(-3px); }
.pricing-card.premium:hover { box-shadow: 0 0 48px var(--gold-glow); transform: translateY(-3px); }

.popular-badge {
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.pricing-mascot { margin-bottom: 1.25rem; }

.pricing-mascot img {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.pricing-card.basic .pricing-mascot img { width: 160px; }
.pricing-card.premium .pricing-mascot img { width: 180px; }

.tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card.basic .tier-name { color: var(--blue); }
.pricing-card.premium .tier-name { color: var(--gold); }

.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.price-sign {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.price-freq {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.price-period { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.5rem; }

.features-list {
  list-style: none;
  width: 100%;
  margin-bottom: 2rem;
  text-align: left;
  flex: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.features-list li:last-child { border-bottom: none; }
.features-list .fi { font-size: 0.9rem; }
.features-list .fi.green { color: var(--green); }
.features-list .fi.gold { color: var(--gold); }

.btn-basic {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-basic:hover {
  background: #2563eb;
  box-shadow: 0 0 24px var(--blue-glow);
}

.btn-premium {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #000;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-premium:hover {
  background: #d97706;
  box-shadow: 0 0 24px var(--gold-glow);
}

/* ── FAQ ── */
#faq { padding: 100px 0; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(59, 130, 246, 0.4); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  gap: 16px;
}

.faq-question:hover { color: var(--blue); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--blue); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── FINAL CTA ── */
#final-cta {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

#final-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, #a8c4f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#final-cta p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── PORTAL ── */
#portal { padding: 100px 0; }

.portal-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
}

.portal-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.portal-card > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.portal-label {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.portal-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.portal-input-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

#tenant-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  min-width: 0;
}

#tenant-input::placeholder { color: var(--text-faint); }

.portal-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--surface);
  border-left: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
}

#portal-error {
  font-size: 0.82rem;
  color: var(--red);
  min-height: 18px;
  margin-bottom: 0.75rem;
  text-align: left;
}

#portal-form button {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, box-shadow 0.2s;
}

#portal-form button:hover {
  background: #2563eb;
  box-shadow: 0 0 24px var(--blue-glow);
}

.portal-hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--text); }

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

.footer-bottom p { font-size: 0.82rem; color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-dim); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Docs styles ── */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 60px 0 100px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
}

.docs-sidebar h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.docs-sidebar h4:first-child { margin-top: 0; }

.docs-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.docs-sidebar ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.docs-sidebar ul a:hover, .docs-sidebar ul a.active {
  background: var(--blue-dim);
  color: var(--blue);
}

.docs-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.docs-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.docs-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }

.docs-content p { color: var(--text-dim); line-height: 1.75; margin-bottom: 1rem; }

.docs-content ul {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-content ul li {
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
  font-size: 0.93rem;
}

.docs-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
}

.docs-content code {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}

.docs-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.docs-content .callout {
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.docs-content .callout strong { color: var(--blue); }

/* ── Legal pages ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 0 100px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.legal-content p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-content ul li {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.7;
}

.legal-meta {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 12, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  nav { position: relative; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-right { order: -1; }
  .mascot-wrapper img { width: 180px; }
  .hero-ctas { justify-content: center; }
  .trust-bar { justify-content: center; }
  .hero-sub { margin: 0 auto 2rem; }

  .ps-grid { grid-template-columns: 1fr; gap: 32px; }
  .ps-divider { display: none; }

  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-row { grid-template-columns: 1fr; gap: 20px; }
  .steps-row::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card:hover, .pricing-card.premium:hover { transform: translateY(-2px); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }

  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  #hero { padding: 60px 0 48px; }
  #how-it-works, #comparison, #pricing, #faq, #final-cta, #portal, #use-cases { padding: 72px 0; }
  #problem-solution { padding: 40px 0; }

  .use-cases-grid { grid-template-columns: 1fr; }
  .portal-card { padding: 28px 20px; }

  table { font-size: 0.82rem; }
  table thead th, table tbody td { padding: 10px 14px; }

  footer { padding: 40px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 40px; }
}
