/* SubSim - static site
   One stylesheet, no framework, no script, no build step. Same palette and page
   grammar as the Sonasync and AlphaNode sites, so the family reads as one. */

:root {
  --bg: #0a0c11; --bg-alt: #0d1017; --surface: #12161f; --surface-2: #171c27; --sunken: #090b0f;
  --border: #232a37; --border-strong: #303947;
  --text: #e6eaf2; --text-muted: #98a3b5; --text-faint: #6b7688;
  --accent: #4a9eff; --accent-dim: #1e3a5c;
  --warn: #f5a623; --good: #3ecf8e; --bad: #ff6b6b;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --wrap: 1140px; --r: 14px; --r-sm: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; background: var(--accent); color: #04070d; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(10,12,17,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; letter-spacing: -.01em; color: var(--text); font-size: 16px; }
.brand-name span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; white-space: nowrap; position: relative; transition: color .15s ease; }
.nav a:not(.nav-cta) { padding: 6px 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1.5px; border-radius: 2px; background: var(--accent); transition: left .18s ease, right .18s ease; }
.nav a:not(.nav-cta):hover { color: var(--text); text-decoration: none; }
.nav a:not(.nav-cta):hover::after { left: 0; right: 0; }
.nav-cta { background: var(--accent); color: #04070d !important; padding: 8px 17px; border-radius: var(--r-sm); font-weight: 600; transition: background .15s ease, transform .15s ease; }
.nav-cta:hover { background: #63adff; transform: translateY(-1px); text-decoration: none; }
@media (max-width: 980px) { .nav a[href="#samples"], .nav a[href="#faq"] { display: none; } }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--border); overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74,158,255,.13), transparent 62%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); padding: 6px 13px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
h1 { margin: 0 0 22px; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.lede { margin: 0 0 30px; font-size: 17.5px; color: var(--text-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { margin: 0; font-size: 13.5px; color: var(--text-faint); line-height: 1.7; }
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04070d; }
.btn-primary:hover { background: #63adff; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-big { padding: 16px 34px; font-size: 16px; }
.hero-art { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.hero-art img { border-radius: 9px; border: 1px solid var(--border); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-family: var(--mono); font-size: 12px; background: var(--sunken); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 10px; border-radius: 6px; }
.chip-warn { border-color: #5c4415; color: var(--warn); }

/* sections */
.section { padding: 84px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 0 0 20px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.section-lede { margin: 0 0 18px; color: var(--text-muted); font-size: 16.5px; max-width: 68ch; }
.section-lede.small { font-size: 14.5px; color: var(--text-faint); }
.stages { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
@media (max-width: 980px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }
.stages li { background: var(--surface); padding: 22px 20px; }
.stages span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.stages b { display: block; margin-bottom: 6px; font-size: 15px; }
.stages p { margin: 0; font-size: 13.5px; color: var(--text-faint); line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split-flip { grid-template-columns: 1.25fr 1fr; }
.split + .split { margin-top: 72px; }
@media (max-width: 980px) { .split, .split-flip { grid-template-columns: 1fr; gap: 28px; } .split-flip .shot { order: 2; } }
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.shot img { border-radius: 8px; border: 1px solid var(--border); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-muted); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 10px; border: solid var(--good); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.split p { margin: 0 0 14px; color: var(--text-muted); font-size: 15.5px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0 32px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.card-accent { border-color: var(--accent-dim); background: linear-gradient(160deg, #121a28, var(--surface)); }
.card p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.notebox { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 26px 28px; }
.notebox-warn { border-left-color: var(--warn); }
.notebox p { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; max-width: 74ch; }
.notebox p:last-child { margin-bottom: 0; }
.notebox b { color: var(--text); font-weight: 600; }

.table-scroll { overflow-x: auto; margin: 34px 0 20px; }
.data { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); border: 1px solid var(--border); }
.data th, .data td { padding: 13px 18px; text-align: left; font-size: 14.5px; }
.data thead th { background: var(--surface-2); color: var(--text-faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data tbody tr + tr td { border-top: 1px solid var(--border); }
.data td { color: var(--text-muted); }
.data td:first-child { font-family: var(--mono); color: var(--accent); width: 48px; }

.tiers { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; margin-top: 38px; align-items: start; }
@media (max-width: 800px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 30px; }
.tier-featured { border-color: var(--accent-dim); background: linear-gradient(170deg, #111a27, var(--surface)); }
.tier-badge { position: absolute; top: -11px; left: 30px; background: var(--accent); color: #04070d; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin: 0; }
.tier h3 { font-size: 22px; margin-bottom: 4px; }
.tier-price { margin: 10px 0 14px; font-size: 15px; color: var(--good); font-weight: 600; }
.tier-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-faint); }
.tier p { color: var(--text-muted); font-size: 15px; margin: 0 0 14px; }

.faq { max-width: 820px; margin-top: 30px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15.5px; }
.faq details[open] { border-color: var(--border-strong); }
.faq p { margin: 0 0 14px; color: var(--text-muted); font-size: 15px; }

.footer { padding: 56px 0 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-note { margin: 14px 0 0; font-size: 14px; color: var(--text-faint); max-width: 44ch; }
.footer-note b { color: var(--text-muted); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-self: flex-start; max-width: 380px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 32px; }
.footer-legal p { margin: 0; font-size: 12.5px; color: var(--text-faint); }
