:root {
  --bg: #07070b;
  --bg-elev: #0e0e15;
  --surface: #13131c;
  --surface-2: #1b1b27;
  --hairline: rgba(255,255,255,.08);
  --hairline-2: rgba(255,255,255,.14);
  --accent: #6d5ef6;
  --accent-soft: #8b7bff;
  --cyan: #3fd8e0;
  --pink: #f65ec8;
  --success: #34d39b;
  --text: #f5f5fa;
  --text-2: #a6a6b8;
  --text-3: #6e6e80;
  --grad: linear-gradient(135deg, #8b7bff, #6d5ef6 45%, #4b3dd1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Aurora background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55; }
.blob-a { width: 460px; height: 460px; background: var(--accent); top: -160px; left: -80px; animation: drift 14s ease-in-out infinite; }
.blob-b { width: 420px; height: 420px; background: var(--pink); top: 10%; right: -120px; animation: drift 18s ease-in-out infinite reverse; }
.blob-c { width: 480px; height: 480px; background: var(--cyan); bottom: -200px; left: 20%; opacity: .35; animation: drift 20s ease-in-out infinite; }
@keyframes drift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 7vw;
  backdrop-filter: blur(16px);
  background: rgba(7,7,11,.6);
  border-bottom: 1px solid var(--hairline);
}
.brand { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand sup { font-size: .5em; color: var(--text-3); }
.brand-mark { color: var(--accent-soft); font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 40px rgba(109,94,246,.45); }
.btn-primary:hover { box-shadow: 0 18px 50px rgba(109,94,246,.6); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--hairline-2); }
.btn-block { width: 100%; }

/* Hero */
.hero { text-align: center; padding: 90px 7vw 40px; max-width: 980px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--success);
  background: rgba(52,211,155,.12); border: 1px solid rgba(52,211,155,.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.pill-sm { font-size: 11px; padding: 4px 10px; color: var(--accent-soft); background: rgba(139,123,255,.12); border-color: rgba(139,123,255,.3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--text-2); font-size: clamp(16px, 2.2vw, 21px); max-width: 640px; margin: 24px auto 0; }
.sub strong { color: var(--text); }
.cta-row { display: flex; gap: 14px; justify-content: center; margin: 34px 0 0; flex-wrap: wrap; }

/* Device */
.device {
  margin: 64px auto 0; max-width: 420px; text-align: left;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 22px;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
}
.device-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.report-id { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-3); }
.operands { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.operands input {
  flex: 1; width: 100%; background: var(--bg-elev); border: 1px solid var(--hairline);
  color: var(--text); font-size: 34px; font-weight: 800; text-align: center;
  border-radius: 16px; padding: 14px 8px; outline: none;
}
.operands input:focus { border-color: var(--accent); }
.plus { color: var(--accent); font-size: 26px; font-weight: 900; }
.device-stage { margin-top: 14px; font-size: 13px; color: var(--text-2); font-family: ui-monospace, monospace; min-height: 20px; }
.result { margin-top: 16px; text-align: center; }
.result-num {
  font-size: 64px; font-weight: 900; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-meta { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--text-2); margin-top: 6px; flex-wrap: wrap; }
.result-meta b { color: var(--text); }

/* Logos */
.logos { text-align: center; padding: 60px 7vw; }
.logos p { color: var(--text-3); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.logo-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.logo-row span { font-weight: 800; color: var(--text-3); letter-spacing: -.02em; font-size: 18px; opacity: .7; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 7vw; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--accent-soft); margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 900; letter-spacing: -.03em; }
.section-sub { color: var(--text-2); max-width: 560px; margin: 14px auto 44px; font-size: 17px; }

/* Pipeline grid */
.pipeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.stage-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px;
  transition: transform .2s, border-color .2s;
}
.stage-card:hover { transform: translateY(-4px); border-color: var(--hairline-2); }
.stage-num { font-size: 12px; font-weight: 700; color: var(--accent-soft); letter-spacing: .1em; }
.stage-title { font-size: 18px; font-weight: 800; margin: 8px 0 6px; }
.stage-status { color: var(--text-2); font-size: 14px; font-family: ui-monospace, monospace; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.metric { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 30px 20px; }
.metric-val { font-size: 42px; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-label { color: var(--text-2); font-size: 14px; margin-top: 6px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; text-align: left; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 30px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 30px 80px rgba(109,94,246,.25); }
.ribbon { position: absolute; top: -12px; right: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 800; }
.price { font-size: 40px; font-weight: 900; margin: 10px 0 18px; letter-spacing: -.03em; }
.price span { font-size: 16px; font-weight: 600; color: var(--text-3); }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan li { color: var(--text-2); padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.plan li::before { content: "＋"; color: var(--accent-soft); font-weight: 800; margin-right: 10px; }

/* Final CTA */
.cta-final { text-align: center; padding: 90px 7vw; }
.cta-final h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; }
.cta-final p { color: var(--text-2); margin: 12px 0 28px; font-size: 18px; }

/* Footer */
.footer { text-align: center; padding: 50px 7vw; border-top: 1px solid var(--hairline); color: var(--text-3); }
.footer .brand { display: inline-block; margin-bottom: 14px; }
.footer p { max-width: 520px; margin: 0 auto 16px; font-size: 14px; }
.footer small { font-size: 12px; opacity: .6; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ===== FEATURES GRID (app capabilities) ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px; transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 24px; margin-bottom: 14px; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(109,94,246,0.14); }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-2); }

/* ===== SUBPAGE HERO ===== */
.page-hero { max-width: 760px; margin: 0 auto; padding: 56px 7vw 16px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.page-hero p { color: var(--text-2); max-width: 620px; margin: 16px auto 0; font-size: 17px; }
.page-meta { color: var(--text-3); font-size: 13px; margin-top: 14px; }

/* ===== BREADCRUMBS ===== */
.crumbs { max-width: 760px; margin: 0 auto; padding: 24px 7vw 0; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ===== PROSE (legal + articles) ===== */
.prose { max-width: 760px; margin: 0 auto; padding: 16px 7vw 60px; }
.prose h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.prose p { color: var(--text-2); margin: 14px 0; }
.prose ul, .prose ol { color: var(--text-2); margin: 14px 0 14px 22px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--accent-soft); }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--hairline); margin: 36px 0; }
.prose blockquote { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 20px; border-radius: 0 14px 14px 0; margin: 20px 0; color: var(--text-2); }
.prose .lead { font-size: 19px; color: var(--text); }
.callout { background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 16px; padding: 18px 20px; margin: 24px 0; font-size: 14px; color: var(--text-2); }
.callout strong { color: var(--text); }

/* ===== BLOG INDEX ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1100px; margin: 24px auto 0; padding: 0 7vw; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 26px; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.post-card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-soft); font-weight: 700; }
.post-card h2 { font-size: 20px; font-weight: 800; margin: 10px 0; letter-spacing: -.01em; }
.post-card p { font-size: 14px; color: var(--text-2); flex: 1; }
.post-card .read { font-size: 13px; color: var(--text-3); margin-top: 16px; }

/* ===== ARTICLE FOOTER CTA ===== */
.article-cta { max-width: 760px; margin: 0 auto 60px; padding: 28px; background: linear-gradient(160deg, var(--surface), var(--bg-elev)); border: 1px solid var(--hairline-2); border-radius: 24px; text-align: center; }
.article-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.article-cta p { color: var(--text-2); margin-bottom: 18px; }

/* ===== RICH FOOTER ===== */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 80px; padding: 56px 7vw 32px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid .brand { margin-bottom: 12px; display: inline-block; }
.footer-about { font-size: 13px; color: var(--text-3); max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-3); text-decoration: none; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-3); }
.footer-bottom .tiny { max-width: 540px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Pricing & disclaimer additions (Phase: website update) --- */
.plan { position: relative; }
.plan-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--hairline-2); border-radius: 999px; padding: 3px 9px;
}
.plan-note {
  margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-3);
}
.pricing-foot {
  margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-2);
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.btn-disabled {
  opacity: .55; cursor: not-allowed; pointer-events: none;
}
.disclaimer-section { padding-top: 0; }
.disclaimer {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 22px 24px;
  font-size: 13.5px; line-height: 1.65; color: var(--text-2);
}
.disclaimer strong { color: var(--text); }

/* App Store badge (official-style) in the final CTA */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  transition: transform .15s ease, opacity .15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); opacity: .9; }
.appstore-badge img { display: block; height: 45px; width: auto; }
