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

/* ── Design tokens — mirrored from viziro-frontend/src/index.css ─────────── */
:root {
  --viz-font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --viz-font-mono: 'DM Mono', ui-monospace, 'SF Mono', monospace;

  --navy-50:  #f1f5f9; --navy-100: #e2e8f0; --navy-200: #cbd5e1;
  --navy-300: #94a3b8; --navy-400: #64748b; --navy-500: #475569;
  --navy-600: #334155; --navy-700: #1e293b; --navy-800: #172033;
  --navy-900: #0f172a; --navy-950: #080d1a;

  --amber-400: #fbbf24; --amber-500: #f59e0b; --amber-600: #d97706;

  --background:           #f8fafc;
  --foreground:           #0f172a;
  --card:                 #ffffff;
  --primary:              #0f172a;
  --primary-foreground:   #f8fafc;
  --secondary:            #e2e8f0;
  --secondary-foreground: #1e293b;
  --muted:                #f1f5f9;
  --muted-foreground:     #64748b;
  --accent:               #f59e0b;
  --accent-foreground:    #0f172a;
  --destructive:          #dc2626;
  --success:              #16a34a;
  --warning:              #f59e0b;
  --info:                 #0284c7;
  --border:               #e2e8f0;
  --input:                #cbd5e1;
  --ring:                 #f59e0b;
  --radius:               0.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background:           #080d1a;
    --foreground:           #f1f5f9;
    --card:                 #0f172a;
    --primary:              #f8fafc;
    --primary-foreground:   #0f172a;
    --secondary:            #1e293b;
    --secondary-foreground: #f1f5f9;
    --muted:                #172033;
    --muted-foreground:     #94a3b8;
    --destructive:          #ef4444;
    --success:              #22c55e;
    --warning:              #fbbf24;
    --info:                 #38bdf8;
    --border:               #1e293b;
    --input:                #334155;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--viz-font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--viz-font-mono); }

a { color: inherit; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

section { border-bottom: 1px solid var(--border); padding: 6rem 0; }
section:last-of-type { border-bottom: none; }

.eyebrow {
  display: block; font-family: var(--viz-font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .5rem;
}
.section-head { max-width: 42rem; margin: 0 auto 4rem; text-align: center; }
.section-head h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .section-head h2 { font-size: 2.5rem; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 8px; border: 1px solid var(--border); background: var(--card);
  color: var(--foreground); font-family: inherit; font-weight: 500; font-size: 15px;
  padding: 10px 18px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-accent {
  background: var(--accent); color: var(--accent-foreground); border-color: var(--accent);
}
.btn-accent:hover { background: var(--amber-600); border-color: var(--amber-600); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--muted); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.brand-tag { font-family: var(--viz-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.main-nav { display: none; align-items: center; gap: 2rem; font-size: 14px; color: var(--muted-foreground); }
.main-nav button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.main-nav button:hover { color: var(--foreground); }
@media (min-width: 768px) { .main-nav { display: flex; } }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden; padding: 5rem 0 4rem;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  background: rgba(245,158,11,.12); color: var(--accent-foreground);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 500;
}
@media (prefers-color-scheme: dark) { .hero-badge { color: var(--amber-400); } }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
.hero p.lede { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-fineprint { margin-top: 1.25rem; font-family: var(--viz-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }

/* ── Hero project mock card ── */
.mock-card { width: 100%; max-width: 26rem; margin-left: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
.mock-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.mock-top-left { display: flex; align-items: flex-start; gap: .75rem; }
.mock-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); flex-shrink: 0; }
.mock-eyebrow { font-family: var(--viz-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
.mock-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.mock-body { padding: 1.25rem; }
.mock-badges { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.mock-stat-label { font-size: 12px; color: var(--muted-foreground); }
.mock-stat-value { margin-top: 2px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.mock-stat-sub { margin-top: 2px; font-size: 12px; color: var(--muted-foreground); }
.mock-stat-sub.up { color: var(--success); }
.mock-phase { margin-bottom: .75rem; }
.mock-phase-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.mock-phase-row span:first-child { font-weight: 500; }
.mock-phase-row span:last-child { font-family: var(--viz-font-mono); color: var(--muted-foreground); }
.mock-bar { height: 8px; width: 100%; border-radius: 999px; background: var(--muted); overflow: hidden; }
.mock-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.mock-bar-fill.full { background: var(--success); }
.mock-foot { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 60%, transparent); }
.mock-avatars { display: flex; }
.mock-avatar { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--card); background: var(--secondary); color: var(--secondary-foreground); font-size: 10px; font-weight: 700; margin-left: -8px; }
.mock-avatars .mock-avatar:first-child { margin-left: 0; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; line-height: 1; }
.badge-success { background: rgba(22,163,74,.14); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.16); color: var(--amber-600); }
.badge-outline { border: 1px solid var(--border); color: var(--foreground); }
@media (prefers-color-scheme: dark) { .badge-warning { color: var(--amber-400); } }

/* ── Proof strip ── */
.proof-strip { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 55%, transparent); padding: 1.5rem 0; }
.proof-strip p { text-align: center; font-family: var(--viz-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }

/* ── Cards grid ── */
.grid-cards { display: grid; gap: 1.5rem; margin-top: 4rem; }
.grid-cards.cols-2 { grid-template-columns: 1fr; }
.grid-cards.cols-3 { grid-template-columns: 1fr; }
.grid-cards.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-cards.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid-cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .grid-cards.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.feature-card { border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(245,158,11,.12); color: var(--amber-600); margin-bottom: 1rem; }
.feature-icon.solid { background: var(--primary); color: var(--primary-foreground); }
@media (prefers-color-scheme: dark) { .feature-icon:not(.solid) { color: var(--amber-400); } }
.feature-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* ── Solution section ── */
.solution-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .solution-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.solution-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.solution-list li { display: flex; align-items: flex-start; gap: .75rem; list-style: none; }
.solution-list svg { flex-shrink: 0; margin-top: 3px; color: var(--success); }
.mini-card { border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mini-card-head span:first-child { font-weight: 600; font-size: 14px; }
.mini-proj { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.mini-proj + .mini-proj { margin-top: .75rem; }
.mini-proj-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.mini-proj-row span:first-child { font-weight: 500; }
.mini-proj .mock-bar { margin-top: .75rem; }

/* ── Steps ── */
.steps-grid { display: grid; gap: 2rem; margin-top: 4rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.step-num { font-family: var(--viz-font-mono); font-size: 1.75rem; font-weight: 500; color: var(--accent); margin-bottom: 1.25rem; }
.step-card h3 { font-size: 17px; font-weight: 600; margin-bottom: .5rem; }
.step-card p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* ── Product note ── */
.product-note { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: 14px; color: var(--muted-foreground); }
.product-note svg { color: var(--accent); }

/* ── Demo section ── */
.demo-section { background: var(--navy-900); color: var(--navy-50); border-color: var(--navy-900); }
.demo-section .eyebrow { color: var(--amber-400); }
.demo-section .section-head h2 { color: var(--navy-50); }
.demo-section .section-head p { color: var(--navy-300); max-width: 34rem; margin-inline: auto; }
.demo-card { max-width: 34rem; margin: 3rem auto 0; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); padding: 2rem; box-shadow: 0 8px 30px rgba(0,0,0,.25); text-align: left; }

/* ── Form ── */
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border-radius: 8px; border: 1px solid var(--input); background: var(--card);
  color: var(--foreground); font: inherit; font-size: 14px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(245,158,11,.25);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-foreground); }

.agree-row { display: flex; align-items: flex-start; gap: 10px; margin: 1.25rem 0; }
.agree-row label { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.agree-row a { color: var(--foreground); text-decoration: underline; text-underline-offset: 2px; }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; min-width: 18px; margin-top: 1px;
  border: 1.5px solid var(--input); border-radius: 4px; background: var(--card);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s; flex-shrink: 0;
}
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after {
  content: ''; display: block; width: 5px; height: 9px;
  border: 2px solid var(--accent-foreground); border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
input[type="checkbox"]:required:invalid { border-color: var(--destructive); }

.form-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.form-msg { margin-top: .75rem; font-size: 13px; text-align: center; }
.form-msg.err { color: var(--destructive); }
.form-done { text-align: center; padding: 1.5rem 0; }
.form-done-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(22,163,74,.15); color: var(--success); margin: 0 auto .75rem; }
.form-done p:first-of-type { font-weight: 600; }
.form-done p:last-of-type { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }

/* ── FAQ ── */
.faq-list { max-width: 48rem; margin: 3rem auto 0; border-radius: 12px; border: 1px solid var(--border); background: var(--card); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 500; font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { font-size: 20px; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.25rem; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }

/* ── Footer ── */
.site-footer { padding: 3rem 0 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-top { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand { display: flex; align-items: center; gap: .65rem; font-size: 14px; color: var(--muted-foreground); }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-legal a { font-size: 13px; color: var(--muted-foreground); text-decoration: none; }
.footer-legal a:hover { color: var(--foreground); text-decoration: underline; }
.footer-copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-family: var(--viz-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); }
