/* ============================================================
   HYPERION — AI Voice Infrastructure
   Monochrome "studio/infra" system · one electric-blue accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:      oklch(0.145 0.006 70);
  --bg-1:    oklch(0.168 0.007 70);
  --panel:   oklch(0.188 0.008 70);
  --panel-2: oklch(0.225 0.009 72);

  --line:   oklch(1 0 0 / 0.09);
  --line-2: oklch(1 0 0 / 0.17);

  --text:  oklch(0.975 0.006 75);
  --muted: oklch(0.72 0.012 72);
  --faint: oklch(0.52 0.012 70);

  --accent:     oklch(0.68 0.215 28);
  --accent-ink: oklch(0.80 0.16 34);
  --accent-12:  oklch(0.68 0.215 28 / 0.16);
  --accent-glow: oklch(0.68 0.215 28 / 0.55);
  --glow-cool:  oklch(0.60 0.17 255 / 0.5);

  --sans:    "Hanken Grotesk", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --r:    14px;
  --r-sm: 8px;

  --ease: cubic-bezier(.22,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: #fff; }

/* fine dotted grid + grain backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
}
/* restrained static grain for atmosphere (rendered once, no per-frame cost) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* animated aurora — living color behind everything */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; display: block; width: 65vw; height: 65vw; border-radius: 50%; filter: blur(100px); opacity: 0.42; will-change: transform; }
.aurora .a1 { background: radial-gradient(circle, var(--accent), transparent 62%); top: -22%; right: -12%; animation: drift1 24s ease-in-out infinite; }
.aurora .a2 { background: radial-gradient(circle, var(--glow-cool), transparent 62%); bottom: -28%; left: -14%; animation: drift2 30s ease-in-out infinite; }
.aurora .a3 { background: radial-gradient(circle, var(--accent), transparent 60%); top: 30%; left: 30%; width: 40vw; height: 40vw; opacity: 0.2; animation: drift3 36s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-9vw,11vh) scale(1.18); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(11vw,-9vh) scale(1.22); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); opacity: 0.16; } 50% { transform: translate(6vw,-7vh) scale(1.3); opacity: 0.28; } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none !important; } }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 56px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.pad   { padding: clamp(90px, 13vh, 160px) 0; }
.pad-sm{ padding: clamp(64px, 9vh, 110px) 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker .idx { color: var(--faint); }
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--line-2);
}

h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: 22px; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.section-head { max-width: 760px; }
.section-head h2 { margin: 22px 0 18px; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--text); color: #0b0b0d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px oklch(1 0 0 / 0.5); }
.btn-primary:hover .ico { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 0 0 1px var(--accent-glow), 0 16px 44px -18px var(--accent-glow); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-accent:hover .ico { transform: translateX(3px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: oklch(1 0 0 / 0.05); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
/* shine sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn-accent::after, .btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, oklch(1 0 0 / 0.35) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .65s var(--ease);
}
.btn-accent:hover::after, .btn-primary:hover::after { transform: translateX(130%); }

/* ============================================================
   INTRO
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .9s var(--ease), visibility .9s;
}
#intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.intro-bars { display: flex; align-items: center; gap: 5px; height: 64px; }
.intro-bars span { width: 4px; border-radius: 4px; background: var(--text); animation: introBar 1s ease-in-out infinite; }
.intro-bars span:nth-child(3n) { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
@keyframes introBar { 0%,100% { height: 8px; opacity:.35; } 50% { height: 54px; opacity:1; } }
.intro-word { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 80px); letter-spacing: -0.045em; color: var(--text);
  opacity: 0; animation: introWord .9s var(--ease) .35s both; }
@keyframes introWord { from { opacity: 0; transform: translateY(22px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.intro-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--faint); padding-left: 0.42em;
  opacity: 0; animation: fadeIn .7s ease .72s both; }
.intro-line { width: 0; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: introLine 1.7s var(--ease) .45s both; }
@keyframes introLine { from { width: 0; } to { width: 190px; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   NAV
   ============================================================ */
header.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
header.nav.scrolled { background: oklch(0.145 0.006 70 / 0.72); backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: oklch(1 0 0 / 0.05); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .login { font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 9px 12px; transition: color .2s; }
.nav-cta .login:hover { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--text); margin: 4px auto; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 170px 0 70px; position: relative; }

/* cinematic hero entrance — plays once the intro lifts (body.revealed) */
@keyframes heroIn { from { opacity: 0; transform: translateY(36px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
.hero-eyebrow, .hero-title, .hero-lead-col, .console, .hero .marquee { opacity: 0; }
body.revealed .hero-eyebrow { animation: heroIn .8s .05s var(--ease) both; }
body.revealed .hero-title   { animation: heroIn 1.05s .18s var(--ease) both; }
body.revealed .hero-lead-col{ animation: heroIn .9s .4s var(--ease) both; }
body.revealed .console      { animation: heroIn 1s .56s var(--ease) both; }
body.revealed .hero .marquee{ animation: heroIn .9s .76s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .hero-eyebrow,.hero-title,.hero-lead-col,.console,.hero .marquee { opacity: 1 !important; animation: none !important; } }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.hero-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.hero-eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(54px, 10.5vw, 150px); line-height: 0.88; letter-spacing: -0.05em;
  max-width: 16ch; text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }
.hero-title .dim { color: var(--faint); }

.hero-foot { margin-top: 64px; display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 56px; align-items: flex-end; }
.hero-lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 30px; }
.hero-meta { margin-top: 30px; display: flex; gap: 14px 30px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta b { color: var(--text); font-weight: 500; }
.hero-meta .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* product console */
.console {
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  box-shadow: 0 50px 110px -50px #000, inset 0 1px 0 oklch(1 0 0 / 0.05);
}
.console-bar { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: oklch(1 0 0 / 0.14); }
.console-bar .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.console-bar .live { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 7px; }
.console-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.console-body { padding: 24px 22px 22px; }
.console-wave { display: flex; align-items: center; gap: 4px; height: 84px; }
.console-wave i { flex: 1; background: linear-gradient(180deg, var(--accent-ink), var(--accent)); border-radius: 3px; min-height: 6px; }
.console-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.console-line { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.console-line .who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent-ink); }
.console-line p { font-size: 16px; line-height: 1.5; margin-top: 8px; color: var(--text); }
.console-line .caller { color: var(--faint); }

/* multilingual marquee */
.marquee { margin-top: 90px; border-block: 1px solid var(--line); padding: 24px 0; overflow: hidden; --gap: 14px; position: relative; }
.marquee::before, .marquee::after { content:""; position:absolute; top:0; bottom:0; width: 140px; z-index: 2; pointer-events:none; }
.marquee::before { left:0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right:0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; align-items: center; gap: var(--gap); width: max-content; animation: scrollx 42s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--faint); white-space: nowrap; letter-spacing: -0.015em; }
.marquee-track .sep { color: var(--accent); font-size: 12px; }
@keyframes scrollx { to { transform: translateX(calc(-50% - var(--gap)/2)); } }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.04em; }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 6px; }
.trust-line { display: flex; align-items: center; gap: 14px 36px; flex-wrap: wrap; margin-top: 40px; }
.trust-line .t-lab { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.trust-line .lg { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--faint); opacity: .8; transition: .25s; }
.trust-line .lg:hover { color: var(--text); opacity: 1; }

/* ============================================================
   STEPS (How it works)
   ============================================================ */
.steps { border-top: 1px solid var(--line); margin-top: 56px; }
.step {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 32px; align-items: center;
  padding: 34px 8px; border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background .4s;
}
.step:hover { padding-left: 24px; background: linear-gradient(90deg, oklch(1 0 0 / 0.025), transparent 60%); }
.step .s-n { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.step .s-body h3 { margin-bottom: 6px; }
.step .s-body p { color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.step .s-ic { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 13px; display: grid; place-items: center; color: var(--muted); transition: color .3s, border-color .3s; }
.step:hover .s-ic { color: var(--accent-ink); border-color: var(--accent); }
.step .s-ic svg { width: 24px; height: 24px; }

/* ============================================================
   FEATURES (bento)
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 56px; }
.feat {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1);
  padding: 30px; position: relative; overflow: hidden; transition: border-color .3s, background .3s;
}
.feat:hover { border-color: var(--line-2); background: var(--panel); }
.feat .f-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.feat .f-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; }
.feat .f-tag { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.feat h3 { margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.feat .tags span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; }
.feat.row { display: grid; grid-template-columns: 1fr 0.9fr; gap: 28px; align-items: center; }

.live-wave { display: flex; align-items: flex-end; gap: 4px; height: 96px; }
.live-wave i { flex: 1; background: linear-gradient(180deg, var(--accent-ink), var(--accent)); border-radius: 3px; min-height: 5px; opacity: .9; }

.sent { display: flex; flex-direction: column; gap: 11px; }
.sent .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sent .bar { height: 8px; border-radius: 999px; background: oklch(1 0 0 / 0.06); overflow: hidden; }
.sent .bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s var(--ease); }

/* ============================================================
   USE CASES
   ============================================================ */
.uc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 44px 0 36px; }
.uc-tab { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: .25s; }
.uc-tab.active { background: var(--text); color: #0b0b0d; border-color: var(--text); }
.uc-tab:hover:not(.active) { color: var(--text); border-color: var(--line-2); }
.uc-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.uc-panel.active { display: grid; animation: fadeUp .5s var(--ease); }
.uc-panel h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.uc-panel > div > p { color: var(--muted); margin-bottom: 24px; max-width: 46ch; }
.uc-list { display: flex; flex-direction: column; gap: 13px; }
.uc-list li { display: flex; gap: 13px; align-items: flex-start; list-style: none; font-size: 15.5px; }
.uc-list .check { width: 20px; height: 20px; flex: none; color: var(--accent-ink); margin-top: 2px; }
.uc-visual { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--bg-1); min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform:none;} }

.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 13px; font-size: 14px; line-height: 1.45; }
.msg.ai { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .who { display: block; font-family: var(--mono); font-size: 10.5px; opacity: .65; margin-bottom: 4px; letter-spacing: 0.05em; }

/* ============================================================
   LIVE DEMO
   ============================================================ */
.demo { background: var(--bg-1); border-block: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.player { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); padding: 26px; box-shadow: 0 40px 90px -50px #000; margin-top: 30px; }
.player-top { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.player-top .avatar { width: 44px; height: 44px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent-ink); }
.player-top .avatar svg { width: 22px; height: 22px; }
.player-top .meta b { font-size: 15.5px; }
.player-top .meta span { font-family: var(--mono); font-size: 12px; color: var(--faint); display: block; }
.player-top .scenario { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
#demoWave { width: 100%; height: 92px; }
.player-controls { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.play-btn { width: 54px; height: 54px; border-radius: 50%; background: var(--text); display: grid; place-items: center; color: #0b0b0d; flex: none; transition: transform .2s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 20px; height: 20px; }
.progress { flex: 1; }
.progress .track { height: 5px; border-radius: 999px; background: oklch(1 0 0 / 0.1); overflow: hidden; cursor: pointer; }
.progress .track i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; }
.progress .time { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 8px; }

.transcript { display: flex; flex-direction: column; gap: 16px; }
.t-line { display: flex; gap: 16px; opacity: 0.3; transition: opacity .4s; }
.t-line.active { opacity: 1; }
.t-line .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; flex: none; width: 70px; padding-top: 4px; }
.t-line.ai .tag { color: var(--accent-ink); }
.t-line.caller .tag { color: var(--faint); }
.t-line p { font-size: 17px; line-height: 1.5; }
.t-line.caller p { color: var(--muted); }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.intg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intg-tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile { aspect-ratio: 1.8; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--faint); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .3s; }
.intg-tiles .tile:nth-child(3n) { border-right: 0; }
.intg-tiles .tile:nth-last-child(-n+3) { border-bottom: 0; }
.tile:hover { color: var(--text); background: var(--panel); }
.api-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: oklch(0.122 0.006 70); margin-top: 24px; }
.api-card .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.api-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: oklch(1 0 0 / 0.13); }
.api-card .bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.api-card pre { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--muted); overflow-x: auto; }
.api-card .k { color: var(--accent-ink); } .api-card .s { color: oklch(0.82 0.11 150); } .api-card .c { color: var(--faint); }

/* ============================================================
   SECURITY
   ============================================================ */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 12px; }
.badge-card { padding: 28px; border-right: 1px solid var(--line); }
.badge-card:last-child { border-right: 0; }
.badge-card .b-ic { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-ink); }
.badge-card .b-ic svg { width: 21px; height: 21px; }
.badge-card h3 { font-size: 17px; margin-bottom: 8px; }
.badge-card p { font-size: 13.5px; color: var(--muted); }
.compliance-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.compliance-row .pill { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; }

/* ============================================================
   PRICING
   ============================================================ */
.price-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; }
.price-toggle button { font-family: var(--mono); font-size: 13px; padding: 9px 18px; border-radius: 999px; color: var(--muted); transition: .25s; }
.price-toggle button.active { background: var(--text); color: #0b0b0d; }
.price-toggle .save { color: var(--accent-ink); font-weight: 600; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 32px; background: var(--bg-1); position: relative; }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-12), transparent 50%), var(--panel); }
.plan .pop { position: absolute; top: -11px; left: 32px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 999px; }
.plan .pname { font-family: var(--display); font-weight: 600; font-size: 19px; }
.plan .pdesc { font-size: 13.5px; color: var(--muted); margin: 8px 0 24px; min-height: 38px; }
.plan .price { display: flex; align-items: baseline; gap: 5px; }
.plan .price .amt { font-family: var(--display); font-weight: 600; font-size: 46px; letter-spacing: -0.04em; }
.plan .price .per { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.plan .price .yr { display: none; }
.plan .meta-line { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 8px; min-height: 16px; }
.plan ul { list-style: none; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.plan ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.plan ul .check { width: 17px; height: 17px; flex: none; color: var(--accent-ink); margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 24px 0; text-align: left; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.faq-q .plus { margin-left: auto; flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--muted); }
.faq-q .plus::before { width: 13px; height: 1.6px; }
.faq-q .plus::after { width: 1.6px; height: 13px; transition: transform .3s; }
.faq-item.open .plus { transform: rotate(90deg); }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 0 24px; color: var(--muted); font-size: 15.5px; max-width: 60ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-box { position: relative; border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(56px, 8vw, 110px) 40px; text-align: center; overflow: hidden; background: var(--bg-1); }
.cta-box::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 320px at 50% 130%, var(--accent-12), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box .kicker { justify-content: center; }
.cta-box h2 { font-size: clamp(36px, 5.4vw, 68px); margin: 20px 0 0; }
.cta-box p { color: var(--muted); max-width: 50ch; margin: 22px auto 34px; font-size: 18px; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.ft { border-top: 1px solid var(--line); padding: 72px 0 38px; background: oklch(0.122 0.006 70); }
.ft-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 36px; }
.ft-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0 20px; max-width: 30ch; }
.ft-social { display: flex; gap: 9px; }
.ft-social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: .25s; }
.ft-social a:hover { color: var(--text); border-color: var(--line-2); }
.ft-social svg { width: 16px; height: 16px; }
.ft-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 500; }
.ft-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 6px 0; transition: color .2s; }
.ft-col a:hover { color: var(--text); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.ft-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-bottom .legal a:hover { color: var(--text); }

/* ============================================================
   REVEAL
   ============================================================ */
/* Content is visible by default. The hidden pre-state only applies while
   body.anim is present; a JS failsafe always removes body.anim, so content
   can never get stuck invisible. */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
body.anim .reveal:not(.in) { opacity: 0; transform: translateY(30px); filter: blur(5px); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { body.anim .reveal:not(.in) { opacity:1; transform:none; } *{ animation: none!important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-foot { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: clamp(48px, 12vw, 84px); }
  .feat-grid .col-6, .feat-grid .col-4, .feat-grid .col-8 { grid-column: span 12; }
  .feat.row { grid-template-columns: 1fr; }
  .demo-grid, .intg-grid, .uc-panel.active, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .sec-grid .badge-card:nth-child(2) { border-right: 0; }
  .sec-grid .badge-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip .stat:nth-child(2) { border-right: 0; }
  .stats-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step { grid-template-columns: 60px 1fr; }
  .step .s-ic { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: span 2; }
}
@media (max-width: 700px) {
  .nav-links, .nav-cta .login { display: none; }
  .nav-toggle { display: block; }
  .nav-menu-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: oklch(0.145 0.006 70 / 0.97); backdrop-filter: blur(16px); padding: 16px 28px 24px; border-bottom: 1px solid var(--line); gap: 2px; }
  .nav-menu-open .nav-links a { padding: 12px 14px; }
  .wrap { width: min(100% - 36px, var(--maxw)); }
  .hero { padding: 120px 0 0; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid .badge-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .uc-tabs { gap: 6px; }
  .marquee { margin-top: 64px; }
}
