/* ─────────────────────────────────────────────────────────────────────
   Tsunami — marketing site.

   Restraint is the point. Near-black canvas, one accent, generous space,
   motion only where it explains something. Serious software for people who
   ship, not a carnival.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #08080a;
  --bg-2:      #0d0d11;
  --panel:     #121217;
  --panel-2:   #17171d;
  --line:      rgba(255,255,255,.085);
  --line-2:    rgba(255,255,255,.14);
  --ink:       #edecf2;
  --ink-2:     #a9adbf;
  --muted:     #7b8095;
  --blue:      #6ea8ff;
  --blue-2:    #3f7fe0;
  --teal:      #38d6c4;
  --amber:     #ffb545;
  --rose:      #ff8fa8;
  --serif:     "Fraunces", Georgia, "Times New Roman", serif;
  --sans:      ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  --mono:      ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap:      1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(8,8,10,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(8,8,10,.92); }
.nav-in { display: flex; align-items: center; gap: 30px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; }
.brand-mark {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(150deg, #1c1c24, #101014);
  border: 1px solid var(--line-2); font-size: 13px; color: var(--blue);
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 13.5px; color: var(--ink-2); transition: color .16s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 20px; cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 11px; padding: 11px 20px; font-size: 14px; font-weight: 650;
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,.045);
  cursor: pointer; transition: all .16s; font-family: inherit; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), #5b93ea);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 22px rgba(63,127,224,.32);
}
.btn-primary:hover { background: linear-gradient(135deg, #4a8bec, #6ea8ff); box-shadow: 0 10px 30px rgba(63,127,224,.42); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 13px; }
.btn-ghost { background: none; border-color: var(--line); }

/* ── Type ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { letter-spacing: -.028em; line-height: 1.12; font-weight: 600; }
.h-display { font-family: var(--serif); font-size: clamp(42px, 6.4vw, 76px); line-height: 1.03; }
.h-1 { font-family: var(--serif); font-size: clamp(33px, 4.4vw, 50px); }
.h-2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); }
.h-3 { font-size: clamp(18px, 2vw, 21px); font-weight: 650; letter-spacing: -.018em; }
.lede { font-size: clamp(16.5px, 1.75vw, 19.5px); color: var(--ink-2); line-height: 1.62; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--blue); opacity: .55; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }

/* ── Sections ───────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: clamp(74px, 10vw, 130px) 0; }
.sec-tight { padding: clamp(54px, 7vw, 86px) 0; }
.sec-head { max-width: 720px; margin-bottom: 54px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .lede { margin-top: 18px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 158px 0 96px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 72% -8%, rgba(63,127,224,.20), transparent 60%),
    radial-gradient(800px 520px at 8% 4%, rgba(56,214,196,.09), transparent 58%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 30%, transparent 78%);
}
.hero-in { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 56ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 9px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255,255,255,.035);
  font-size: 12.5px; color: var(--ink-2); margin-bottom: 26px;
}
.pill b { color: var(--ink); font-weight: 650; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(56,214,196,.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

/* ── Product frame (fake app chrome) ────────────────────────────────── */
.frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--panel); box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02);
}
.frame-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.frame-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.frame-title { margin-left: 10px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.frame-body { padding: 20px; }

/* ── Cards / grids ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line); border-radius: 15px; padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card-ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 16px; font-size: 16px; color: var(--blue);
  background: rgba(110,168,255,.1); border: 1px solid rgba(110,168,255,.2);
}
.card-ic.teal { color: var(--teal); background: rgba(56,214,196,.1); border-color: rgba(56,214,196,.2); }
.card-ic.amber { color: var(--amber); background: rgba(255,181,69,.1); border-color: rgba(255,181,69,.2); }
.card-ic.rose { color: var(--rose); background: rgba(255,143,168,.1); border-color: rgba(255,143,168,.2); }

/* ── Split feature rows ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.12fr; gap: 60px; align-items: center; }
.split.flip .split-media { order: -1; }
.split + .split { margin-top: clamp(70px, 9vw, 118px); }
.split-copy .h-2 { margin-bottom: 16px; }
.split-copy p { color: var(--ink-2); font-size: 15.5px; }
.checks { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.checks li::before {
  content: "→"; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── Stats ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.stat { background: var(--bg-2); padding: 28px 24px; }
.stat-v { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.stat-l { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* ── Pricing ────────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  border: 1px solid var(--line); border-radius: 17px; padding: 32px 28px;
  display: flex; flex-direction: column; background: var(--bg-2);
}
.tier.featured {
  border-color: rgba(110,168,255,.45);
  background: linear-gradient(180deg, rgba(63,127,224,.11), rgba(63,127,224,.03));
  box-shadow: 0 24px 70px rgba(63,127,224,.16);
  position: relative;
}
.tier-tag {
  position: absolute; top: -11px; left: 28px; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: var(--blue-2); border-radius: 20px; padding: 4px 12px;
}
.tier-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.tier-price { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 4px; }
.tier-price span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier-desc { font-size: 13.5px; color: var(--ink-2); min-height: 44px; }
.tier ul { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: flex; gap: 10px; font-size: 13.8px; color: var(--ink-2); line-height: 1.5; }
.tier li::before { content: "✓"; color: var(--teal); font-weight: 800; flex-shrink: 0; }
.tier .btn { margin-top: auto; width: 100%; }

/* ── Timeline ───────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 22px; padding-bottom: 34px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 22px; top: 42px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.step:last-child::before { display: none; }
.step-n {
  width: 45px; height: 45px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--panel); font-family: var(--serif);
  font-size: 17px; color: var(--blue); position: relative; z-index: 1;
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

/* ── Chat mock ──────────────────────────────────────────────────────── */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; }
.msg-av {
  width: 28px; height: 28px; min-width: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--muted);
}
.msg-av.ai { background: rgba(110,168,255,.14); border-color: rgba(110,168,255,.3); color: var(--blue); }
.msg-body { font-size: 14px; color: var(--ink-2); line-height: 1.6; padding-top: 3px; }
.plan-box { border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: var(--bg-2); }
.plan-title { font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.plan-step { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.plan-mark {
  width: 19px; height: 19px; min-width: 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; border: 1.5px solid var(--line-2); color: var(--muted); margin-top: 1px;
}
.plan-mark.done { background: var(--teal); border-color: var(--teal); color: #06251f; }
.plan-mark.run { border-color: var(--blue); color: var(--blue); }
.plan-note { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Reveal on scroll ───────────────────────────────────────────────── */
.rv { transition: opacity .7s cubic-bezier(.22,.9,.3,1), transform .7s cubic-bezier(.22,.9,.3,1); }
/* Only hide when JS is running, so a script failure can never leave the page
   blank. The inline snippet in <head> adds .js before first paint. */
.js .rv { opacity: 0; transform: translateY(22px); }
.rv.in, .js .rv.in { opacity: 1 !important; transform: none !important; }
.rv-2 { transition-delay: .09s; }
.rv-3 { transition-delay: .18s; }
.rv-4 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── CTA band ───────────────────────────────────────────────────────── */
.cta-band {
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(40px, 6vw, 68px);
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(63,127,224,.13), rgba(56,214,196,.05));
}
.cta-band .h-1 { max-width: 20ch; margin: 0 auto 16px; }
.cta-band .lede { max-width: 54ch; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 58px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot a { font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.foot a:hover { color: var(--ink); }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); }
.foot-blurb { font-size: 13.5px; color: var(--ink-2); max-width: 34ch; margin-top: 14px; }

/* ── Misc ───────────────────────────────────────────────────────────── */
.kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink-2); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  background: rgba(255,255,255,.06); color: var(--muted); }
.tag.blue { background: rgba(110,168,255,.13); color: var(--blue); }
.tag.teal { background: rgba(56,214,196,.13); color: var(--teal); }
code { font-family: var(--mono); font-size: .92em; background: rgba(255,255,255,.06);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: #e2c7a0; }
pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; background: #0a0a0e;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; color: #cfd3e0; }
pre .c { color: var(--muted); }
pre .g { color: var(--teal); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: rgba(10,10,14,.98); border-bottom: 1px solid var(--line); padding: 18px 28px; gap: 16px;
  }
  .split, .split.flip .split-media { grid-template-columns: 1fr; order: 0; }
  .split { gap: 36px; }
  .g-3, .g-4, .tiers, .stats { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats { border-radius: 15px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 122px 0 68px; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
}
