/* Vox — main stylesheet
   Design: cold, professional, restrained.  No purple AI glow. */

/* ── Reset & Variables ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0d11;
  --bg-card: #12151c;
  --bg-hover: #1a1e28;
  --border: #1e2230;
  --border-focus: #4a9eff;
  --text: #e0e0e0;
  --text-muted: #8a8f9d;
  --text-dim: #555a68;
  --accent: #4a9eff;
  --accent-hover: #3a8eef;
  --accent-dim: rgba(74, 158, 255, 0.12);
  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
  --radius: 10px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --max-w: 1120px;
  --nav-h: 56px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────────────── */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* ── Nav ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-btn {
  padding: 6px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
}
.nav-btn-secondary { border: 1px solid var(--border); color: var(--text); }
.nav-btn-secondary:hover { border-color: var(--text-muted); text-decoration: none; }
.nav-btn-primary { background: var(--accent); color: #fff; }
.nav-btn-primary:hover { background: var(--accent-hover); text-decoration: none; }

.nav-locale select {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.8rem; padding: 4px 8px; cursor: pointer;
}
.nav-locale select:focus { border-color: var(--accent); outline: none; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  text-align: center; padding: 100px 24px 80px;
  max-width: var(--max-w); margin: 0 auto;
}
.hero h1 { margin-bottom: 16px; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); text-decoration: none; }

/* ── Sections ───────────────────────────────────────────────────── */
.section {
  max-width: var(--max-w); margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── Before/After Demo ──────────────────────────────────────────── */
.demo-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; max-width: 720px; margin: 0 auto;
}
.demo-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 8px;
}
.demo-raw { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.7; }
.demo-polished { color: var(--text); font-size: 0.95rem; line-height: 1.7; white-space: pre-line; }

/* ── Feature Grid ───────────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Scenario Cards ─────────────────────────────────────────────── */
.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.scenario-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.scenario-card .scenario-role { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.scenario-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.scenario-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Pricing Cards ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--accent); }
.pricing-card .plan-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.pricing-card .plan-price { font-size: 2rem; font-weight: 700; margin: 12px 0; }
.pricing-card .plan-price .currency { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .plan-price .period { font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.pricing-card .plan-quota { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-card ul { list-style: none; flex: 1; margin-bottom: 24px; }
.pricing-card ul li {
  padding: 6px 0; font-size: 0.9rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card .btn { width: 100%; }

.pricing-card .plan-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.pricing-card .plan-price-was {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 6px 0 0;
}
.pricing-card .plan-price-was s {
  color: var(--text-dim);
}
.pricing-card .plan-price-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: -4px 0 16px;
  line-height: 1.5;
}
.pricing-card .plan-cta-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 10px 0 0;
  text-align: center;
  line-height: 1.5;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-weight: 600; font-size: 1rem; cursor: pointer; }
.faq-a { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.footer-brand { margin-bottom: 32px; }
.footer-logo { font-size: 1.2rem; font-weight: 700; }
.footer-tagline { color: var(--text-dim); font-size: 0.85rem; margin-left: 8px; }
.footer-links { display: flex; gap: 64px; margin-bottom: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-col-lab { flex: 1 1 260px; max-width: 340px; margin-left: auto; gap: 12px; }
.footer-col-lab .footer-lab-body {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.footer-col-lab .footer-lab-cta {
  font-size: 0.85rem;
  color: var(--text-muted);
  align-self: flex-start;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.footer-col-lab .footer-lab-cta:hover { color: #fff; border-bottom-color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-page {
  max-width: 420px; margin: 80px auto; padding: 0 24px;
}
.form-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px;
}
.form-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card .form-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 10px 14px; font-size: 0.95rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); outline: none; transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--border-focus); }
.form-error { color: var(--error); font-size: 0.85rem; margin-bottom: 12px; }
.form-success { color: var(--success); font-size: 0.85rem; margin-bottom: 12px; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-footer { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }
.form-footer a { color: var(--accent); }

/* ── App Layout (Account Center) ────────────────────────────────── */
.app-layout {
  max-width: var(--max-w); margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
}
.app-sidebar { }
.app-sidebar a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  margin-bottom: 2px;
}
.app-sidebar a:hover { background: var(--bg-hover); color: #fff; text-decoration: none; }
.app-sidebar a.active { background: var(--accent-dim); color: var(--accent); }
.app-content { }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.detail-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
}
.detail-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); }
.detail-value { font-weight: 500; }

/* ── Legal Pages ────────────────────────────────────────────────── */
.legal-page {
  max-width: 780px; margin: 0 auto; padding: 48px 24px 80px;
}
.legal-page h1 { margin-bottom: 8px; }
.legal-page .legal-updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 32px; }
.legal-page h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.3rem; }
.legal-page h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.1rem; }
.legal-page p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.legal-page ul, .legal-page ol { color: var(--text-muted); margin-left: 20px; margin-bottom: 12px; font-size: 0.95rem; }
.legal-page li { margin-bottom: 4px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  .hero { padding: 64px 20px 48px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-links { flex-direction: column; gap: 24px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: flex; overflow-x: auto; gap: 4px; }
  .app-sidebar a { white-space: nowrap; }
}
