/* ============================================================
   TERN AI — shared stylesheet
   Bold editorial · dark · technically precise
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* color */
  --bg: #08070C;
  --bg-2: #0C0B12;
  --surface: #131119;
  --surface-2: #1A1824;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F5F4F8;
  --text-dim: #9C99AB;
  --text-faint: #6A6779;

  --accent: #6E56F8;
  --accent-2: #9B8BFF;
  --accent-deep: #4B33C9;
  --accent-glow: rgba(110, 86, 248, 0.45);
  --accent-soft: rgba(110, 86, 248, 0.12);

  --grad: linear-gradient(135deg, #8A6BFF 0%, #6E56F8 45%, #4B33C9 100%);
  --grad-text: linear-gradient(120deg, #FFFFFF 0%, #C9BEFF 55%, #8A6BFF 100%);

  /* type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 92px); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

.display {
  font-size: clamp(46px, 8.4vw, 118px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-wrap: balance;
}
.h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.02em; }
.lead {
  font-size: clamp(18px, 1.65vw, 22px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}
.muted { color: var(--text-dim); }
.accent-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent-2); background: var(--accent-soft); transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- chip / pill ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 13px; border: 1px solid var(--border); border-radius: 100px;
  background: rgba(255,255,255,.02);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #38D39F; box-shadow: 0 0 9px #38D39F; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,7,12,.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand__mark { width: 26px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; }
.brand__mark .brand__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand b { font-weight: 600; white-space: nowrap; }
.brand span { color: var(--accent-2); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 15px; color: var(--text-dim); padding: 9px 15px; border-radius: 100px;
  transition: color .2s, background .2s; font-weight: 500;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__links a.active { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.nav__burger span::before, .nav__burger span::after { content:""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: .3s; }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

@media (max-width: 880px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__menu-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,9,15,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    padding: 18px var(--gutter) 28px; gap: 4px; align-items: stretch;
  }
  .nav__menu-open .nav__links a { padding: 14px 16px; font-size: 18px; }
  .nav__menu-open .nav__cta .btn { display: inline-flex; margin-top: 6px; }
  .nav__menu-open .nav__cta { display: block; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(54px, 7vw, 92px) 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
.footer__brandcol .brand { margin-bottom: 18px; }
.footer__tag { color: var(--text-dim); max-width: 30ch; font-size: 15.5px; }
.footer__col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 500; }
.footer__col a, .footer__col p { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer__bottom p { color: var(--text-faint); font-size: 13.5px; font-family: var(--font-mono); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .4s var(--ease), border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
[data-reveal-d="4"] { transition-delay: .32s; }
[data-reveal-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- decorative grid bg ---------- */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .6;
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 150px; padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__orb1 { top: -180px; left: 50%; transform: translateX(-50%); width: 760px; height: 540px; opacity: .8; animation: drift 16s var(--ease) infinite alternate; }
.hero__orb2 { bottom: -200px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(56,211,159,.18), transparent 70%); animation: drift 20s var(--ease) infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-50%, 40px) scale(1.08); } }
.hero__inner { position: relative; z-index: 2; }
.hero__top { max-width: 980px; }
.hero h1 { margin: 22px 0 0; }
.hero__sub { margin-top: 26px; }
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* hero staggered intro */
.hero [data-intro] { opacity: 0; transform: translateY(20px); }
body.loaded .hero [data-intro] { animation: heroIn .9s var(--ease) forwards; }
body.loaded .hero [data-intro="1"] { animation-delay: .05s; }
body.loaded .hero [data-intro="2"] { animation-delay: .15s; }
body.loaded .hero [data-intro="3"] { animation-delay: .25s; }
body.loaded .hero [data-intro="4"] { animation-delay: .35s; }
body.loaded .hero [data-intro="5"] { animation-delay: .45s; }
body.loaded .hero [data-intro="6"] { animation-delay: .58s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
/* failsafe: if animation is throttled/paused (background tab) or skipped, force visible */
body.anim-ready .hero [data-intro] { animation: none !important; opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero [data-intro] { opacity: 1; transform: none; }
  .hero__orb1, .hero__orb2 { animation: none; }
}

/* inline waitlist field */
.wl {
  display: flex; gap: 8px; padding: 7px; border: 1px solid var(--border-strong); border-radius: 100px;
  background: rgba(255,255,255,.03); max-width: 440px; transition: border-color .25s, box-shadow .25s;
}
.wl:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.wl.err { border-color: #F0556A; box-shadow: 0 0 0 4px rgba(240,85,106,.14); }
.wl input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--font-body); font-size: 16px; padding: 9px 8px 9px 18px; }
.wl input::placeholder { color: var(--text-faint); }
.wl .btn { padding: 12px 22px; }
.wl-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 12px; letter-spacing: .04em; }
.wl-done { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid rgba(56,211,159,.3); background: rgba(56,211,159,.08); border-radius: var(--radius); max-width: 460px; }
/* author display rules override the UA [hidden] rule, so restore it explicitly */
.wl-done[hidden] { display: none; }
.wl-done svg { width: 22px; height: 22px; flex: none; color: #38D39F; }
.wl-done b { color: var(--text); } .wl-done span { color: var(--accent-2); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats__cell { background: var(--bg-2); padding: 30px 26px; }
.stats__scope { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 100px; }
.stats__scope::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); }
.stats__scope--in { color: var(--accent-2); border-color: rgba(110,86,248,.3); }
.stats__scope--in::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.stats__num { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 50px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stats__num .accent-text { display: inline; }
.stats__lab { color: var(--text-dim); font-size: 14px; margin-top: 12px; line-height: 1.45; }
.stats__src { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); margin-top: 8px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { margin: 18px 0 0; }
.sec-head p { margin-top: 20px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { padding: 34px 30px 36px; }
.pillar__ico { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid rgba(110,86,248,.3); margin-bottom: 24px; }
.pillar__ico svg { width: 24px; height: 24px; color: var(--accent-2); }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--text-dim); font-size: 15.5px; }
.pillar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(110,86,248,.10), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.pillar:hover::after { opacity: 1; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prob { padding: 28px; border-left: 2px solid rgba(240,85,106,.5); }
.prob__n { font-family: var(--font-mono); font-size: 12px; color: #F0556A; letter-spacing: .1em; margin-bottom: 14px; }
.prob h4 { font-size: 19px; margin-bottom: 9px; }
.prob p { color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COMMAND CENTER MOCK
   ============================================================ */
.mock {
  border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden;
  background: #0B0A11; box-shadow: 0 50px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02);
  position: relative;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #100E17; border-bottom: 1px solid var(--border); }
.mock__dots { display: flex; gap: 7px; }
.mock__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2A2833; }
.mock__url { margin-left: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.mock__url .lock { width: 11px; height: 11px; opacity: .5; }
.mock__body { display: grid; grid-template-columns: 200px 1fr 280px; min-height: 460px; }
.mock__side { background: #0C0B12; border-right: 1px solid var(--border); padding: 18px 14px; }
.mock__logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 4px 8px 16px; }
.mock__logo svg { width: 22px; height: 22px; }
.mock__navi { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--text-dim); margin-bottom: 3px; }
.mock__navi svg { width: 17px; height: 17px; opacity: .7; }
.mock__navi.on { background: var(--accent-soft); color: var(--text); }
.mock__navi.on svg { opacity: 1; color: var(--accent-2); }
.mock__main { padding: 22px; background: #0B0A11; }
.mock__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mock__h h6 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.mock__search { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; }
.feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 15px 16px; margin-bottom: 12px; }
.feed-card__top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.feed-card__av { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; object-position: 50% 22%; background: var(--surface-2); }
.feed-card__meta { line-height: 1.2; }
.feed-card__meta b { font-size: 13.5px; }
.feed-card__meta span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); display: block; margin-top: 2px; }
.feed-card__tag { margin-left: auto; font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; border-radius: 5px; letter-spacing: .06em; text-transform: uppercase; }
.tag-live { background: rgba(56,211,159,.14); color: #4FE0AE; }
.tag-pitch { background: var(--accent-soft); color: var(--accent-2); }
.tag-verif { background: rgba(110,86,248,.14); color: var(--accent-2); }
.feed-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.mock__ai { background: #0C0B12; border-left: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; }
.mock__ai-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.mock__ai-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 var(--accent-glow);} 70%{box-shadow:0 0 0 10px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.mock__ai-head b { font-size: 13.5px; white-space: nowrap; }
.mock__ai-head span { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-left: auto; }
.ai-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 14px; font-size: 13px; color: var(--text-dim); line-height: 1.55; margin-bottom: 12px; }
.ai-bubble .typed { color: var(--text); }
.ai-bubble .cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.ai-chips span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px; }
@media (max-width: 980px) { .mock__body { grid-template-columns: 1fr; } .mock__side, .mock__ai { display: none; } }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.cap-list { display: flex; flex-direction: column; }
.cap {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 4px; border-top: 1px solid var(--border);
  cursor: default; transition: padding-left .3s var(--ease);
}
.cap:last-child { border-bottom: 1px solid var(--border); }
.cap:hover { padding-left: 14px; }
.cap__ico { width: 42px; height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.cap__ico svg { width: 21px; height: 21px; color: var(--accent-2); }
.cap:hover .cap__ico { background: var(--accent-soft); border-color: rgba(110,86,248,.4); }
.cap h4 { font-size: 18px; margin-bottom: 5px; }
.cap p { color: var(--text-dim); font-size: 14.5px; }
.cap-aside { position: sticky; top: 100px; }
@media (max-width: 940px) { .caps { grid-template-columns: 1fr; gap: 36px; } .cap-aside { position: static; } }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--text); font-weight: 500; }
.cmp .tern-col { background: var(--accent-soft); }
.cmp th.tern-col { color: var(--accent-2); }
.cmp .yes { color: #4FE0AE; } .cmp .no { color: var(--text-faint); }
.cmp svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.cmp-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.cmp tr:last-child td { border-bottom: none; }

/* ============================================================
   SEGMENTS
   ============================================================ */
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seg { padding: 26px 24px 28px; }
.seg__k { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); letter-spacing: .12em; margin-bottom: 16px; }
.seg h4 { font-size: 19px; margin-bottom: 8px; }
.seg p { color: var(--text-dim); font-size: 14px; }
/* photo variant */
.seg--photo { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.seg__img { position: relative; height: 150px; flex: none; overflow: hidden; }
.seg__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.86); transition: transform .6s var(--ease); }
.seg--photo:hover .seg__img img { transform: scale(1.05); }
.seg__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(19,17,25,.18) 0%, rgba(19,17,25,.62) 70%, var(--surface) 100%); }
.seg--photo .seg__body { padding: 22px 24px 26px; }
.seg--photo .seg__k { margin-bottom: 12px; }
@media (max-width: 900px) { .segs { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .seg--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; } }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 84px); overflow: hidden; background: var(--bg-2); text-align: center; }
.cta-banner .glow { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 400px; opacity: .7; }
.cta-banner__in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-banner h2 { margin-bottom: 20px; }
.cta-banner .lead { margin-bottom: 34px; }

/* ============================================================
   PAGE HEADER (sub pages)
   ============================================================ */
.phead { position: relative; padding-top: 140px; padding-bottom: clamp(30px,5vw,60px); overflow: hidden; }
.phead__in { position: relative; z-index: 2; max-width: 880px; }
.phead h1 { margin: 22px 0 0; font-size: clamp(40px, 6.5vw, 86px); }
.phead .lead { margin-top: 24px; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tw { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 290px; background: rgba(16,14,23,.96); backdrop-filter: blur(18px); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); font-family: var(--font-body); transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.tw.open { opacity: 1; transform: none; pointer-events: auto; }
.tw__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.tw__head b { font-family: var(--font-display); font-size: 15px; }
.tw__head .x { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: background .2s, color .2s; }
.tw__head .x:hover { background: rgba(255,255,255,.06); color: var(--text); }
.tw__body { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.tw__group > label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 11px; }
.tw__swatches { display: flex; gap: 10px; }
.tw__sw { width: 38px; height: 38px; border-radius: 11px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, border-color .2s; position: relative; }
.tw__sw:hover { transform: scale(1.08); }
.tw__sw.on { border-color: #fff; }
.tw__seg { display: flex; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.tw__seg button { flex: 1; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; padding: 8px 4px; border-radius: 7px; color: var(--text-dim); transition: background .2s, color .2s; }
.tw__seg button.on { background: var(--accent-soft); color: var(--accent-2); }
body.no-grid .grid-bg { display: none; }
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; transition: none !important; }
body.no-motion [data-reveal], body.no-motion .hero [data-intro] { opacity: 1 !important; transform: none !important; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 13px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; font-family: var(--font-body); box-shadow: 0 18px 44px -12px rgba(0,0,0,.65); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 1200; display: flex; align-items: center; gap: 9px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: #38D39F; flex: none; }
