/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg: #FFFFFF;
  --surface: #F7F6F3;
  --border: #E9E5E0;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;

  --teal-bg: #E3F8F4;
  --teal-text: #0A7B6C;
  --teal-bright: #00D4AA;
  --yellow-bg: #FFF9E6;
  --yellow-text: #A67C00;
  --red-bg: #FEF0F0;
  --red-text: #C0392B;
  --purple-bg: #F3EFFE;
  --purple-text: #6B3FAB;

  --font-display: 'Shantell Sans', cursive;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 12px;
  --section-py: 96px;
  --container-max: 1160px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
table { border-collapse: collapse; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-teal   { background: var(--teal-text); color: #fff; }
.btn-black  { background: #000; color: #fff; }
.btn-ghost  { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-purple { background: var(--purple-text); color: #fff; }
.btn-white-outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-white-outline:hover { border-color: #fff; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-link { font-size: 16px; font-weight: 500; color: var(--text); padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-cta { margin-top: 8px; align-self: flex-start; }

/* ── HERO ───────────────────────────────────────────────────── */
.section-hero {
  padding: 160px 0 100px;
  background: var(--bg);
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTION DEFAULTS ───────────────────────────────────────── */
.section-how, .section-features, .section-problem {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.section-use-cases, .section-comparison {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.section-demo {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.section-headline {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.tab-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.tab-btn:not(.active):hover {
  background: var(--surface);
  color: var(--text);
}

.tab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--teal-text);
  line-height: 1;
  margin-bottom: 16px;
}
.step-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.step-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Flow diagram */
.step-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.flow-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  border: 1px solid var(--border);
}
.flow-arrow {
  font-size: 20px;
  color: var(--teal-text);
  font-weight: 300;
}

/* ── USE CASES ──────────────────────────────────────────────── */
.use-cases-table { margin-top: 16px; }

.use-cases-header {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  margin-bottom: 0;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}
.col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
}
.col-divider-header { background: var(--border); }
.col-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.use-case-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--bg);
}
.use-case-row.alt { background: var(--surface); }

.col-divider { background: var(--border); }

.use-case-cell {
  padding: 36px 40px;
}
.use-case-icon {
  font-size: 20px;
  margin-bottom: 12px;
}
.use-case-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.use-case-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── DEMO SECTION ───────────────────────────────────────────── */
.demo-badge {
  display: inline-block;
  background: var(--teal-text);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-demo .section-headline { margin-bottom: 12px; }
.section-demo .section-headline + .section-sub { margin-bottom: 40px; }

.demo-panels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-md);
}

/* Editor panel */
.demo-editor-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.demo-editor-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chrome-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.chrome-red    { background: #FF5F57; }
.chrome-yellow { background: #FFBD2E; }
.chrome-green  { background: #28C840; }
.chrome-label {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-editor-body {
  flex: 1;
  padding: 28px 32px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  min-height: 200px;
}

.cursor {
  display: inline-block;
  color: var(--teal-text);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor.paused { animation: none; opacity: 1; }

.demo-submit-row {
  padding: 16px 32px 24px;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.demo-submit-row.visible {
  opacity: 1;
  pointer-events: all;
}
.demo-submit-btn {
  background: var(--teal-text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.demo-submit-btn.pulse {
  animation: submitPulse 1.2s ease-in-out infinite;
}
.demo-submit-btn.clicked {
  transform: scale(0.96);
  animation: none;
}
@keyframes submitPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10,123,108,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(10,123,108,0); }
}

/* Analysis panel */
.demo-analysis-panel {
  background: #141720;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a0aab8;
  overflow: hidden;
  position: relative;
}

.analysis-view {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  transition: opacity 0.4s;
}
.analysis-view.hidden {
  display: none;
}

.ap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.ap-title {
  color: #e0e6f0;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.ap-status { color: var(--teal-bright); font-size: 10px; }
.ap-check { color: var(--teal-bright); font-size: 16px; }

.ap-metrics { display: flex; flex-direction: column; gap: 10px; }
.ap-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}
.ap-row.no-bar {
  grid-template-columns: 1fr auto;
}
.ap-label { font-size: 11px; color: #7a8494; }
.ap-val { font-size: 11px; color: #c8d0dc; min-width: 52px; text-align: right; }

.ap-bar-wrap {
  width: 72px; height: 5px;
  background: #252b38;
  border-radius: 3px;
  overflow: hidden;
}
.ap-bar-fill {
  height: 100%;
  background: var(--teal-bright);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}

.ap-divider {
  height: 1px;
  background: #252b38;
  margin: 14px 0;
}
.ap-section-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #4a5568;
  margin-bottom: 10px;
}

.ap-signals { display: flex; flex-direction: column; gap: 8px; }
.ap-sig-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.ap-sig-row.indent { padding-left: 12px; }
.ap-sig-row.hidden { display: none; }
.ap-sig-row.visible { display: flex; }
.ap-sig-name { font-size: 11px; color: #7a8494; }
.ap-sig-val { font-size: 11px; color: #c8d0dc; }
.ap-sig-val.muted { color: #4a5568; }
.ap-sig-val.teal { color: var(--teal-bright); }

.ap-assessment { }
.ap-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
}
.ap-verdict.low-risk .ap-verdict-dot { color: var(--teal-bright); }
.ap-verdict-dot { font-size: 10px; margin-top: 2px; }
.ap-verdict-label { font-size: 12px; color: #e0e6f0; font-weight: 400; }
.ap-verdict-sub { font-size: 10px; color: #7a8494; margin-top: 2px; }

/* Complete view */
.ap-scores { display: flex; flex-direction: column; gap: 10px; }
.ap-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ap-score-label { font-size: 11px; color: #7a8494; }
.ap-score-val { font-size: 13px; color: #e0e6f0; }
.ap-score-pass { font-size: 11px; color: var(--teal-bright); }
.ap-score-building { font-size: 11px; color: #a0aab8; }

.ap-final-verdict .ap-verdict { margin-bottom: 12px; }
.ap-verdict-text { padding: 0 2px; }
.verdict-line {
  font-size: 11px;
  color: #c8d0dc;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 6px;
}
.verdict-line.visible { opacity: 1; }
.verdict-line.teal-line { color: var(--teal-bright); }

.ap-url-section { }
.ap-url-text {
  font-size: 11px;
  color: #5b6678;
  margin-bottom: 12px;
  word-break: break-all;
  min-height: 16px;
}
.ap-url-buttons {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s;
}
.ap-url-buttons.visible { opacity: 1; }
.ap-btn-copy, .ap-btn-share {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #e0e6f0;
  background: #252b38;
  border: 1px solid #3a4255;
  transition: background 0.15s;
}
.ap-btn-copy:hover, .ap-btn-share:hover { background: #2e3548; }

/* Demo tagline */
.demo-tagline {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.demo-quote {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

/* ── FEATURES ───────────────────────────────────────────────── */
.features-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── COMPARISON TABLE ───────────────────────────────────────── */
.comparison-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}
.comparison-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
}
.comparison-table .th-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: #fafafa; }
.comparison-table td:first-child { font-weight: 500; }

.veripost-col {
  background: #f0faf8;
  font-weight: 500;
}
thead .veripost-col {
  color: var(--teal-text) !important;
  background: var(--teal-bg);
}
.good { color: var(--teal-text); font-weight: 500; }
.bad  { color: var(--red-text); }

/* ── PROBLEM SECTION ────────────────────────────────────────── */
.problem-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.problem-headline {
  text-align: center;
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 40px;
}
.problem-body {
  max-width: 680px;
  margin: 0 auto;
}
.problem-body p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.75;
}
.problem-callout {
  font-size: 22px !important;
  font-weight: 600;
  color: var(--text) !important;
  border-left: 3px solid var(--teal-text);
  padding-left: 20px;
  margin: 32px 0 !important;
}
.problem-emphasis {
  font-size: 20px !important;
  font-weight: 600;
  color: var(--text) !important;
}
.problem-until {
  font-family: var(--font-display);
  font-size: 36px !important;
  font-weight: 700;
  color: var(--text) !important;
  margin-top: 32px !important;
}

/* ── FINAL CTA ──────────────────────────────────────────────── */
.section-final-cta {
  background: var(--text);
  padding: var(--section-py) 0;
  text-align: center;
}
.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.final-cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 24px 48px;
  align-items: start;
}
.footer-brand { grid-column: 1; }
.footer-logo, .footer-logo-text { margin-bottom: 10px; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); }

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-link { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-link:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-link { color: rgba(255,255,255,0.4); transition: color 0.15s; }
.social-link:hover { color: #fff; }

.footer-copy {
  grid-column: 1 / -1;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 8px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .section-hero { padding: 120px 0 72px; }
  .hero-headline { font-size: 44px; }
  .hero-sub { font-size: 17px; }

  /* How it works */
  .steps-grid { grid-template-columns: 1fr; }
  .step-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }

  /* Use cases */
  .use-cases-header { padding: 24px 0 20px; }
  .col-header { padding: 0 16px; }
  .use-case-cell { padding: 24px 16px; }

  /* Demo */
  .demo-panels { grid-template-columns: 1fr; }
  .demo-editor-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-editor-body { min-height: 140px; }
  .demo-analysis-panel { min-height: 320px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Comparison */
  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2) { display: none; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-brand, .footer-links, .footer-social { grid-column: 1; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .tab-toggle { flex-direction: column; align-items: center; }
  .tab-btn { width: 100%; justify-content: center; }
  .demo-quote { font-size: 22px; }
  .problem-until { font-size: 28px !important; }
}
