/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg-primary: #191919;
  --bg-secondary: #202020;
  --bg-surface: #202020;
  --bg-hover: #2F3438;
  --text-primary: #ffffff;
  --text-secondary: #9B9B9B;
  --text-muted: #6b6b6b;
  --accent: #d4a847;
  --accent-hover: #b58c30;
  --accent-glow: rgba(212, 168, 71, 0.18);
  --border: #2F3438;
  --danger: #BE524B;
  --success: #4F9768;
  --max-width: 1100px;
  --section-py: 96px;
  --section-py-mobile: 60px;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 60px; }
h2 { font-size: 38px; }
h3 { font-size: 22px; }
.accent { color: var(--accent); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-secondary); }
.section-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 500;
}
.section-label--center {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-align: center; margin-bottom: 48px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 8px; padding: 10px 20px;
  font-size: 14px; transition: background 150ms, border-color 150ms;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--bg-primary);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ─── Pills ──────────────────────────────────────────────────────────────── */
.pill {
  display: inline-block; font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent); background: rgba(212,168,71,0.12);
  border: 1px solid var(--accent); border-radius: 20px;
  padding: 6px 16px; font-weight: 500;
}
.feature-pill {
  display: inline-block; font-size: 13px; color: var(--accent);
  background: rgba(212,168,71,0.08); border: 1px solid rgba(212,168,71,0.2);
  border-radius: 20px; padding: 6px 14px;
}

/* ─── Browser Frame ──────────────────────────────────────────────────────── */
.browser-frame {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.browser-frame__dots {
  display: flex; gap: 8px; padding: 12px 16px;
}
.browser-frame__dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
}
.browser-frame img { width: 100%; display: block; }
.tilt-left { transform: perspective(800px) rotateY(-6deg) rotateX(2deg); }
.tilt-right { transform: perspective(800px) rotateY(6deg) rotateX(2deg); }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-primary); border-bottom: 1px solid transparent;
  transition: border-color 300ms;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--text-primary);
}
.navbar-brand svg { width: 24px; height: 24px; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding-top: 80px;
}
.hero-grid {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
}
.hero-content {
  display: grid; grid-template-columns: 55% 45%;
  align-items: center; gap: 40px; position: relative; z-index: 1;
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary); line-height: 1.6;
  max-width: 480px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-proof { font-size: 13px; color: var(--text-muted); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .browser-frame { max-width: 520px; }

/* ─── Screenshot Band (Section 2) ────────────────────────────────────────── */
.screenshot-band {
  background: var(--bg-secondary); padding: 48px 0;
}
.screenshot-band-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center;
}
.screenshot-overlay {
  position: relative; border-radius: 12px; overflow: hidden;
}
.screenshot-overlay img { width: 100%; display: block; }
.screenshot-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,25,25,0.5) 0%, rgba(25,25,25,0.85) 100%);
}
.screenshot-overlay-text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.screenshot-overlay-text h2 {
  font-size: 42px; color: var(--text-primary); text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.screenshot-caption {
  margin-top: 16px; font-size: 14px; color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Core Truths (Section 3) ────────────────────────────────────────────── */
.truths-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.truth {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
}
.truth:last-child { border-right: none; }
.truth-num {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 52px; color: var(--accent); opacity: 0.25;
  line-height: 1; margin-bottom: 20px;
}
.truth h3 { margin-bottom: 12px; }
.truth p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ─── Feature Sections (4 & 5) ───────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}
.feature-text h2 { margin-bottom: 20px; }
.feature-text p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-visual .browser-frame { max-width: 520px; }

/* ─── Collaboration Flow Diagram ─────────────────────────────────────────── */
.collab-flow {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.collab-flow-box {
  background: var(--bg-hover); border: 1px solid rgba(212,168,71,0.3);
  border-radius: 8px; padding: 10px 16px; font-size: 13px;
  color: var(--text-secondary);
}
.collab-flow-arrow { color: var(--accent); font-size: 18px; font-weight: 700; }

/* ─── Privacy Architecture (Section 6) ───────────────────────────────────── */
.privacy-section .container { max-width: 800px; text-align: center; }
.privacy-section h2 { margin-bottom: 48px; }

.arch-diagram {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin-bottom: 48px;
}
.arch-row {
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.arch-node {
  background: var(--bg-secondary); border-radius: 12px;
  padding: 16px 24px; text-align: center; min-width: 160px;
}
.arch-node--browser { border: 2px solid var(--accent); }
.arch-node--server { border: 1px solid var(--border); }
.arch-node-label { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.arch-node-sub { font-size: 13px; color: var(--text-secondary); }

.arch-arrow-h {
  display: flex; align-items: center; gap: 8px; color: var(--accent);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.arch-arrow-h .line {
  width: 60px; height: 2px; background: var(--accent);
  position: relative;
}
.arch-arrow-h .line::before, .arch-arrow-h .line::after {
  content: '◀'; position: absolute; top: -8px; font-size: 10px; color: var(--accent);
}
.arch-arrow-h .line::before { left: -6px; }
.arch-arrow-h .line::after { right: -6px; content: '▶'; }

.arch-dashed-v {
  width: 2px; height: 32px; margin: 0 auto;
  border-left: 2px dashed var(--border);
}
.arch-legend {
  font-size: 12px; color: var(--text-muted); margin-top: 24px;
}

.stats-row {
  display: flex; justify-content: center; gap: 60px; margin-top: 48px;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 32px; color: var(--accent); margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ─── How It Works (Section 7) ───────────────────────────────────────────── */
.how-header { text-align: center; margin-bottom: 56px; }
.how-header h2 { margin-bottom: 12px; }
.how-header p { color: var(--text-secondary); font-size: 16px; }
.how-section .container { max-width: 900px; }

.steps {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  margin-bottom: 48px;
}
.step { flex: 1; text-align: center; padding: 0 20px; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary);
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 14px; display: inline-flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.step-icon { margin-bottom: 16px; }
.step-icon svg { width: 40px; height: 40px; margin: 0 auto; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.step-connector {
  width: 40px; min-width: 40px; height: 2px; background: var(--accent);
  margin-top: 16px; position: relative; flex-shrink: 0;
}
.step-connector::after {
  content: ''; position: absolute; right: -4px; top: -3px;
  width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 6px solid var(--accent);
}
.how-cta { text-align: center; }

/* ─── Use Cases (Section 8) ──────────────────────────────────────────────── */
.usecases-header { text-align: center; margin-bottom: 48px; }
.usecases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.usecase-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: border-color 200ms;
}
.usecase-card:hover { border-color: rgba(212,168,71,0.3); }
.usecase-card svg { width: 28px; height: 28px; margin-bottom: 16px; }
.usecase-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.usecase-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ─── FAQ (Section 9) ────────────────────────────────────────────────────── */
.faq-section .container { max-width: 720px; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; padding: 20px 0; text-align: left;
  color: var(--text-primary); font-size: 16px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0; transition: transform 250ms ease-in-out;
  color: var(--text-secondary);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 250ms ease-in-out, padding 250ms ease-in-out;
}
.faq-answer-inner {
  padding: 0 0 20px; color: var(--text-secondary); font-size: 15px; line-height: 1.7;
}

/* ─── Final CTA (Section 10) ─────────────────────────────────────────────── */
.final-cta {
  padding: 120px 0; text-align: center; position: relative; overflow: hidden;
}
.final-cta-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 400px; height: 400px; opacity: 0.04; pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-size: 48px; max-width: 640px; margin: 0 auto 24px; }
.final-cta > .container > p:first-of-type {
  font-size: 18px; color: var(--text-secondary); max-width: 520px;
  margin: 0 auto 32px; line-height: 1.7;
}
.final-cta-proof { font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 48px 0 24px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18px; }
.footer-brand svg { width: 22px; height: 22px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-secondary); transition: color 200ms;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; font-size: 12px; color: var(--text-muted);
}

/* ─── Scroll Animation ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .hero-proof { text-align: center; }
  .hero-visual { margin-top: 40px; }

  .truths-grid { grid-template-columns: 1fr 1fr; }
  .truth:nth-child(2) { border-right: none; }
  .truth:nth-child(3) { border-right: none; grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }

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

  .stats-row { gap: 40px; }
}

@media (max-width: 767px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .section { padding: var(--section-py-mobile) 0; }

  .hero { padding-top: 70px; }
  .hero-content { gap: 24px; }
  .hero-visual .browser-frame { max-width: 100%; }
  .tilt-left, .tilt-right { transform: none; }

  .screenshot-overlay-text h2 { font-size: 26px; }

  .truths-grid { grid-template-columns: 1fr; }
  .truth { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0; }
  .truth:last-child { border-bottom: none; }
  .truth:nth-child(3) { max-width: none; }

  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-visual { order: 2; }
  .feature-text { order: 1; }
  .feature-visual .browser-frame { max-width: 100%; }

  .collab-flow { flex-direction: column; align-items: flex-start; }
  .collab-flow-arrow { transform: rotate(90deg); }

  .arch-row { flex-direction: column; gap: 16px; }
  .arch-arrow-h { flex-direction: column; }
  .arch-arrow-h .line { width: 2px; height: 40px; }
  .arch-arrow-h .line::before, .arch-arrow-h .line::after { display: none; }

  .steps { flex-direction: column; gap: 24px; }
  .step-connector { width: 2px; height: 24px; margin: 0 auto; }
  .step-connector::after {
    right: auto; top: auto; bottom: -4px; left: -3px;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 6px solid var(--accent); border-bottom: none;
  }

  .stats-row { flex-direction: column; gap: 24px; }
  .usecases-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 80px 0; }
  .final-cta h2 { font-size: 34px; }

  .footer-inner { flex-direction: column; gap: 24px; }

  .navbar-inner .btn { padding: 8px 16px; font-size: 13px; }
}
