/* =========================================================
   CatchMyWords — design system v7
   Palette: near-black fading into deep blue · #3b82f6 accent.
   Dark is the brand default; light is a soft daylight variant.
   ========================================================= */

:root {
  /* Page background — mostly black, fading into blue */
  --page-grad: linear-gradient(180deg, #04050a 0%, #060912 38%, #0a1733 70%, #122e6b 100%);
  --page-base: #05060c;

  /* Glass surfaces */
  --surface:       rgba(255, 255, 255, 0.045);
  --surface-2:     rgba(255, 255, 255, 0.08);
  --surface-3:     rgba(255, 255, 255, 0.12);
  --panel-solid:   rgba(13, 19, 38, 0.82);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --inner-light:   rgba(255, 255, 255, 0.06);

  /* Text */
  --text:       #f2f5fb;
  --text-dim:   rgba(226, 233, 246, 0.72);
  --text-faint: rgba(226, 233, 246, 0.46);

  /* Accent — blue */
  --accent:      #3b82f6;
  --accent-2:    #60a5fa;
  --accent-ink:  #ffffff;
  --accent-text: #7cb0ff;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.48);
  --ring:        rgba(96, 165, 250, 0.7);

  /* Component tokens */
  --nav-bg:          rgba(9, 13, 28, 0.55);
  --nav-bg-scrolled: rgba(9, 13, 28, 0.78);
  --demo-bg:   rgba(11, 17, 34, 0.85);
  --dot:       rgba(255, 255, 255, 0.28);
  --logo-grey:       rgba(226, 233, 246, 0.48);
  --logo-grey-hover: #ffffff;
  --shadow-lg: rgba(2, 6, 20, 0.6);
  --stars-opacity: 0.5;
  --grad-hairline: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.45), transparent);
  --grad-border: linear-gradient(135deg, rgba(96, 165, 250, 0.65), rgba(96, 165, 250, 0.06) 45%, rgba(96, 165, 250, 0.30));
  --headline-grad: linear-gradient(120deg, #ffffff 20%, #b7d2ff 55%, #6aa4ff 95%);

  /* Type & layout */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --container: 1140px;
  --radius:    18px;
  --radius-sm: 12px;

  color-scheme: dark;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --page-grad: linear-gradient(180deg, #fbfcff 0%, #f2f6ff 40%, #e7eeff 75%, #dbe7ff 100%);
  --page-base: #f4f7ff;

  --surface:       rgba(255, 255, 255, 0.66);
  --surface-2:     rgba(255, 255, 255, 0.88);
  --surface-3:     #ffffff;
  --panel-solid:   rgba(255, 255, 255, 0.92);
  --border:        rgba(13, 25, 55, 0.10);
  --border-strong: rgba(13, 25, 55, 0.18);
  --inner-light:   rgba(255, 255, 255, 0.85);

  --text:       #0b1530;
  --text-dim:   rgba(11, 21, 48, 0.70);
  --text-faint: rgba(11, 21, 48, 0.48);

  --accent-text: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.35);

  --nav-bg:          rgba(255, 255, 255, 0.60);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.85);
  --demo-bg:   #ffffff;
  --dot:       rgba(13, 25, 55, 0.22);
  --logo-grey:       rgba(11, 21, 48, 0.42);
  --logo-grey-hover: #0b1530;
  --shadow-lg: rgba(24, 45, 100, 0.16);
  --stars-opacity: 0;
  --grad-hairline: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), transparent);
  --grad-border: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(37, 99, 235, 0.05) 45%, rgba(37, 99, 235, 0.22));
  --headline-grad: linear-gradient(120deg, #0b1530 25%, #1d4fd8 75%);

  color-scheme: light;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--page-grad) fixed;
  background-color: var(--page-base);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Starfield (dark theme only, very subtle) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--stars-opacity); transition: opacity 0.3s ease;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px,  rgba(255,255,255,0.8), transparent 100%),
    radial-gradient(1.2px 1.2px at 130px 90px, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1px 1px   at 210px 170px, rgba(255,255,255,0.7), transparent 100%),
    radial-gradient(1px 1px   at 300px 60px,  rgba(255,255,255,0.4), transparent 100%),
    radial-gradient(1.2px 1.2px at 350px 240px, rgba(255,255,255,0.6), transparent 100%),
    radial-gradient(1px 1px   at 90px 300px,  rgba(255,255,255,0.4), transparent 100%);
  background-repeat: repeat; background-size: 420px 420px;
}

.nav, main, .footer { position: relative; z-index: 1; }

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

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

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 100px; border: 3px solid transparent; background-clip: padding-box; }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0 0; position: relative; }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 20px;
  padding: 7px 14px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid var(--border);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-glow); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.section-head p { margin-top: 18px; color: var(--text-dim); font-size: 1.075rem; line-height: 1.6; }

/* Serif-italic accent word, tinted blue */
.accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--accent-text);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 0.8rem 1.5rem; border-radius: 100px; white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 28px -10px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 16px 38px -12px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 var(--inner-light);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.btn-sm { padding: 0.58rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

/* ---------- Navbar (floating glass pill) ---------- */
.nav { position: sticky; top: 0; z-index: 40; padding: 18px 20px 0; }
.nav-inner {
  max-width: 1080px; margin: 0 auto; height: 62px;
  padding: 0 10px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--nav-bg); border: 1px solid var(--border); border-radius: 100px;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--inner-light), 0 14px 38px -18px var(--shadow-lg);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav.scrolled .nav-inner { background: var(--nav-bg-scrolled); border-color: var(--border-strong); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .logo { width: 29px; height: 29px; color: var(--text); flex-shrink: 0; }
.brand .wordmark { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.03em; }
.brand .wordmark span { color: var(--accent-text); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-dim); font-weight: 500; font-size: 0.92rem;
  padding: 8px 13px; border-radius: 100px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-2); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: grid; place-items: center;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 0; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 50% -4%, rgba(59, 130, 246, 0.26), transparent 70%),
    radial-gradient(1100px 560px at 50% 8%, rgba(59, 130, 246, 0.10), transparent 72%);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 26%, #000 0%, transparent 100%);
  mask-image: radial-gradient(58% 52% at 50% 26%, #000 0%, transparent 100%);
}
.hero-beam {
  position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 620px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 176, 255, 0.20), transparent);
  filter: blur(52px);
}

/* Floating 3D AI-platform chips — depth via tilt, blur & scale */
.float-chips { position: absolute; inset: 0; pointer-events: none; }
.fchip {
  position: absolute; display: grid; place-items: center;
  border-radius: 24%; border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, var(--surface-3), var(--surface));
  box-shadow: inset 0 1px 0 var(--inner-light), 0 30px 50px -24px var(--shadow-lg);
  color: var(--text); opacity: var(--op, 0.5);
  transform: var(--tilt);
  animation: chipFloat var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
}
.fchip svg { width: 48%; height: 48%; opacity: 0.85; }
.fc1 { left: 6%;   top: 110px; width: 68px; height: 68px; --tilt: perspective(700px) rotateX(16deg) rotateY(-20deg) rotateZ(-6deg); --dur: 11s; --op: 0.55; }
.fc2 { right: 7%;  top: 150px; width: 58px; height: 58px; --tilt: perspective(700px) rotateX(-10deg) rotateY(18deg) rotateZ(8deg);  --dur: 13s; --delay: -4s; --op: 0.5;  filter: blur(1px); }
.fc3 { left: 12%;  top: 400px; width: 54px; height: 54px; --tilt: perspective(700px) rotateX(12deg) rotateY(14deg) rotateZ(-10deg); --dur: 15s; --delay: -7s; --op: 0.55; filter: blur(0.8px); }
.fc4 { right: 13%; top: 440px; width: 54px; height: 54px; --tilt: perspective(700px) rotateX(-14deg) rotateY(-16deg) rotateZ(6deg); --dur: 12s; --delay: -2s; --op: 0.45; filter: blur(1.5px); }
.fc5 { left: 4%;   top: 680px; width: 52px; height: 52px; --tilt: perspective(700px) rotateX(10deg) rotateY(22deg) rotateZ(12deg);  --dur: 16s; --delay: -9s; --op: 0.5;  filter: blur(1px); }
.fc6 { right: 4%;  top: 720px; width: 62px; height: 62px; --tilt: perspective(700px) rotateX(-12deg) rotateY(-24deg) rotateZ(-8deg); --dur: 14s; --delay: -5s; --op: 0.5; filter: blur(0.5px); }
@keyframes chipFloat {
  0%, 100% { transform: var(--tilt) translateY(0); }
  50%      { transform: var(--tilt) translateY(-18px); }
}
:root[data-theme="light"] .fchip { opacity: 0.42; }
@media (max-width: 1200px) { .float-chips { display: none; } }
.hero-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 6px 14px 6px 7px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 var(--inner-light);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hero-chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.hero-chip .tag {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff;
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hero-chip .chip-label { color: var(--text-dim); transition: color 0.15s; }
.hero-chip:hover .chip-label { color: var(--text); }
.hero-chip svg { width: 13px; height: 13px; color: var(--text-faint); }

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem); margin: 0;
  background: var(--headline-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero h1 .accent {
  font-size: 1.04em;
  background: none; -webkit-text-fill-color: currentColor; color: var(--accent-text);
}
.hero .subhead {
  margin: 26px auto 0; max-width: 620px;
  color: var(--text-dim); font-size: clamp(1.05rem, 1.6vw, 1.19rem); line-height: 1.65;
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-micro { margin-top: 20px; color: var(--text-faint); font-size: 0.88rem; }
.hero-micro b { color: var(--text-dim); font-weight: 600; }

/* ---------- Product mockup ---------- */
.mockup { position: relative; z-index: 1; max-width: 780px; margin: 72px auto 0; }
.mockup-glow {
  position: absolute; inset: -50px -30px 0; z-index: -1;
  background: radial-gradient(62% 58% at 50% 28%, var(--accent-glow), transparent 70%);
  filter: blur(52px); opacity: 0.3;
}
.window {
  border: 1px solid transparent; border-radius: 20px; overflow: hidden;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    var(--grad-border) border-box;
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 var(--inner-light), 0 44px 96px -34px var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.window-bar .tab {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 12px;
  font-size: 0.76rem; font-weight: 500; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 9px;
}
.window-bar .tab svg { width: 12px; height: 12px; color: var(--text-faint); }
.window-bar .url {
  margin-left: auto; font-size: 0.74rem; color: var(--text-faint);
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 14px; border-radius: 100px;
}
.window-body { padding: 26px 28px 30px; text-align: left; position: relative; }

.compose-head { margin-bottom: 4px; }
.compose-field { font-size: 0.88rem; color: var(--text-dim); padding: 10px 2px; border-bottom: 1px solid var(--border); }
.compose-field .cf-label { display: inline-block; width: 62px; color: var(--text-faint); }

.compose-area { position: relative; padding: 18px 2px 14px; min-height: 80px; }
.compose-text { font-size: 0.96rem; line-height: 1.65; color: var(--text); max-width: 88%; }
.compose-text .caret {
  display: inline-block; width: 2px; height: 1.05em; background: var(--accent-2);
  transform: translateY(2px); margin-left: 1px; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Grammarly-style badge in the corner of the text field */
.field-badge {
  position: absolute; right: 6px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -6px var(--accent-glow);
  transition: transform 0.18s ease;
}
.field-badge:hover { transform: scale(1.08); }
.field-badge .logo { width: 18px; height: 18px; }
.field-badge::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; animation: badgePulse 2.8s ease-out infinite; }
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.badge-count {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #ffffff; color: var(--accent); font-size: 0.62rem; font-weight: 700; line-height: 1;
  border-radius: 100px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Summoned panel */
.cmw-panel {
  margin-top: 22px; border: 1px solid transparent; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    var(--grad-border) border-box;
  box-shadow: inset 0 1px 0 var(--inner-light), 0 26px 54px -22px var(--shadow-lg);
}
.cmw-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.cmw-head .logo { width: 20px; height: 20px; color: var(--accent-text); }
.cmw-head .name { font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; }
.cmw-head .key {
  margin-left: auto; font-size: 0.72rem; font-weight: 600; color: var(--text-faint);
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 3px 9px;
  background: var(--surface); box-shadow: inset 0 -2px 0 var(--border);
}
.cmw-prompt { padding: 15px 16px 13px; font-size: 0.95rem; color: var(--text); display: flex; align-items: baseline; gap: 9px; }
.cmw-prompt .you {
  color: var(--accent-text); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; flex-shrink: 0;
  background: var(--accent-soft); padding: 3px 8px; border-radius: 6px;
}
.cmw-result { padding: 4px 16px 14px; border-top: 1px solid var(--border); }
.cmw-result .res-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 600; color: var(--accent-text);
  text-transform: uppercase; letter-spacing: 0.1em; margin: 13px 0 10px;
}
.cmw-result .res-label svg { width: 13px; height: 13px; }
.cmw-result .res-text { font-size: 0.93rem; line-height: 1.62; color: var(--text-dim); }
.cmw-result .res-text b { color: var(--text); font-weight: 600; }
.cmw-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 14px; flex-wrap: wrap; }
.source-chip {
  font-size: 0.72rem; font-weight: 500; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 4px 11px; display: inline-flex; align-items: center; gap: 6px;
}
.source-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px var(--accent-glow); }
.cmw-foot .paste { margin-left: auto; }

/* ---------- Marquee ---------- */
.marquee-wrap { margin-top: 88px; position: relative; z-index: 1; }
.marquee-label {
  text-align: center; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 28px; font-weight: 600;
}
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { display: inline-flex; align-items: center; gap: 11px; color: var(--logo-grey); transition: color 0.2s ease; flex-shrink: 0; }
.logo-item:hover { color: var(--logo-grey-hover); }
.logo-item svg { width: 23px; height: 23px; }
.logo-item span { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 34px 30px 36px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--inner-light);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-5px); background: var(--surface-2); }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--grad-hairline); opacity: 0; transition: opacity 0.25s ease;
}
.step:hover::before { opacity: 1; }
.step-ghost {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-serif); font-style: italic; font-size: 3.4rem; line-height: 1;
  color: var(--text); opacity: 0.07; user-select: none;
}
.step-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); border: 1px solid var(--border);
  color: var(--accent-text); margin-bottom: 22px;
  box-shadow: inset 0 1px 0 var(--inner-light);
}
.step-ico svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.16rem; margin-bottom: 9px; letter-spacing: -0.02em; }
.step p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.62; }

/* ---------- Use cases ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.use-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--inner-light);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.use-card:hover { border-color: var(--border-strong); transform: translateY(-5px); }
.use-demo {
  position: relative; height: 190px; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 110% at 12% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  display: grid; place-items: center;
}
.demo-card {
  width: 82%; border: 1px solid var(--border-strong); border-radius: 13px; text-align: left;
  background: var(--demo-bg); padding: 16px 17px;
  box-shadow: inset 0 1px 0 var(--inner-light), 0 16px 34px -16px var(--shadow-lg);
  transition: transform 0.35s ease;
}
.use-card:hover .demo-card { transform: translateY(-6px) scale(1.02); }
.demo-tag {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 100px; margin-bottom: 11px;
}
.demo-snippet { font-size: 0.83rem; line-height: 1.58; color: var(--text-dim); }
.demo-snippet b { color: var(--text); font-weight: 600; }
.use-body { padding: 24px 26px 28px; }
.use-body h3 { font-size: 1.16rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.use-body p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.62; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px; margin: 0 auto; padding: 10px 30px;
  border: 1px solid var(--border); border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--inner-light);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 23px 2px; text-align: left; font-size: 1.05rem; font-weight: 600;
  letter-spacing: -0.015em; color: var(--text); transition: color 0.15s;
}
.faq-q:hover { color: var(--accent-text); }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; position: relative;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
  transition: transform 0.3s ease, border-color 0.2s, background 0.2s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--text-dim); border-radius: 2px;
  top: 50%; left: 50%; transition: transform 0.3s ease, background 0.2s;
}
.faq-icon::before { width: 11px; height: 1.6px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.6px; height: 11px; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon { border-color: var(--accent); background: var(--accent-soft); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--accent-text); }
.faq-a { overflow: hidden; height: 0; transition: height 0.32s ease; }
.faq-a-inner { padding: 0 2px 24px; color: var(--text-dim); font-size: 0.98rem; line-height: 1.66; max-width: 640px; }

/* ---------- Closing CTA ---------- */
.cta-band { padding-bottom: 120px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid transparent; border-radius: 28px; padding: 84px 32px;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    var(--grad-border) border-box;
  box-shadow: inset 0 1px 0 var(--inner-light), 0 40px 90px -40px var(--shadow-lg);
}
.cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 120% at 50% -20%, var(--accent-soft), transparent 62%),
    radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000, transparent 85%);
  mask-image: radial-gradient(80% 90% at 50% 0%, #000, transparent 85%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.cta-card p { margin: 18px auto 34px; max-width: 520px; color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 38px 0; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad-hairline); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 0.9rem; }
.footer-left .logo { width: 24px; height: 24px; color: var(--text-dim); }
.footer-right { display: flex; gap: 26px; }
.footer-right a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.15s; }
.footer-right a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Pricing page ---------- */
.pricing-hero { text-align: center; padding: 84px 0 0; position: relative; }
.pricing-hero .hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(680px 380px at 50% -8%, rgba(59, 130, 246, 0.24), transparent 70%);
}
.pricing-hero > .container { position: relative; z-index: 1; }
.pricing-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  background: var(--headline-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pricing-hero h1 .accent { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-text); }
.pricing-hero .subhead { margin: 20px auto 0; max-width: 560px; color: var(--text-dim); font-size: 1.08rem; line-height: 1.6; }

.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; margin: 34px auto 0; padding: 5px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 var(--inner-light);
}
.bt-opt {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 100px;
  font-weight: 600; font-size: 0.92rem; color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.bt-opt:hover { color: var(--text); }
.bt-opt.active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px -6px var(--accent-glow);
}
.bt-opt .save {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; background: var(--accent-soft); color: var(--accent-text);
}
.bt-opt.active .save { background: rgba(255, 255, 255, 0.22); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 840px; margin: 58px auto 0; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); padding: 36px 32px 38px; text-align: left;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--inner-light);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.plan:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.plan.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    var(--grad-border) border-box;
  box-shadow: inset 0 1px 0 var(--inner-light), 0 34px 74px -34px var(--accent-glow);
}
.plan-badge {
  position: absolute; top: -13px; left: 30px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 14px -6px var(--accent-glow);
}
.plan-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.plan-tag { color: var(--text-dim); font-size: 0.92rem; margin-top: 5px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 24px 0 5px; }
.plan-price .currency { font-size: 1.5rem; font-weight: 600; color: var(--text); align-self: flex-start; margin-top: 8px; }
.plan-price .amount { font-size: 3.6rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text); }
.plan-price .per { font-size: 1rem; color: var(--text-faint); font-weight: 500; }
.plan-billing-note { color: var(--text-faint); font-size: 0.85rem; min-height: 1.2em; }
.plan .btn { width: 100%; justify-content: center; margin: 26px 0 28px; }
.plan-features { display: grid; gap: 13px; }
.plan-features li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-dim); font-size: 0.94rem; line-height: 1.5; }
.plan-features .feat-head { color: var(--text); font-weight: 600; }
.plan-features .check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--border);
  display: grid; place-items: center; margin-top: 1px;
}
.plan-features .check svg { width: 11px; height: 11px; color: var(--accent-text); }

.assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 940px; margin: 80px auto 0; }
.assure {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 22px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 var(--inner-light);
}
.assure .ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.assure .ico svg { width: 20px; height: 20px; color: var(--accent-text); }
.assure h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.assure p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 880px) {
  .section { padding: 90px 0 0; }
  .cta-band { padding-bottom: 90px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .marquee-track { gap: 42px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .assurance { grid-template-columns: 1fr; max-width: 460px; gap: 16px; }
}
@media (max-width: 560px) {
  .nav { padding: 10px 12px 0; }
  .nav-inner { padding: 0 8px 0 16px; height: 58px; }
  .hero { padding: 56px 0 0; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .window-body { padding: 20px 16px 24px; }
  .window-bar .url { display: none; }
  .faq { padding: 6px 18px; }
  .cta-card { padding: 56px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  /* Exempted: a tiny live-status pulse, not decorative motion — kept on
     even with reduced motion so the "live" signal still reads as live. */
  .wl-pill .live, .wl-pill .live::after {
    animation-duration: 2s !important; animation-iteration-count: infinite !important;
  }
}

/* =========================================================
   Waitlist — standalone single-screen page (no navbar)
   ========================================================= */
.wl-page {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  position: relative; padding: 34px 0 30px; text-align: center;
}
/* Middle block grows and self-centers; footer stays pinned at the bottom.
   The small top padding keeps the group just below true centre. */
.wl-inner {
  position: relative; z-index: 1; max-width: 660px; margin: 0 auto; width: 100%;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-top: 34px;
}

/* Joined-count pill */
.wl-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 7px 16px 7px 10px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 var(--inner-light);
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
}
.wl-pill[hidden] { display: none; }
/* The dot breathes; a ring ripples out from it on the same 2s beat. */
.wl-pill .live {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; flex-shrink: 0;
  animation: liveDot 2s ease-in-out infinite;
}
.wl-pill .live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.6); animation: livePulse 2s ease-out infinite;
}
@keyframes liveDot {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 7px rgba(52, 211, 153, 0.7); }
  50%      { transform: scale(1.22); box-shadow: 0 0 15px rgba(52, 211, 153, 1); }
}
@keyframes livePulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wl-pill b { color: var(--text); font-weight: 700; }

.wl-page h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem); margin: 0;
  background: var(--headline-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.wl-page h1 .accent {
  font-size: 1.04em;
  background: none; -webkit-text-fill-color: currentColor; color: var(--accent-text);
}
.wl-page .subhead {
  margin: 22px auto 0; max-width: 520px;
  color: var(--text-dim); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.65;
}

/* ---------- Signup form ---------- */
.wl-form {
  display: flex; gap: 10px; max-width: 480px; margin: 32px auto 0;
  padding: 7px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--inner-light), 0 18px 44px -22px var(--shadow-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.wl-form:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 var(--inner-light), 0 0 0 4px var(--accent-soft), 0 18px 44px -22px var(--shadow-lg);
}
.wl-form.busy { opacity: 0.65; pointer-events: none; }
.wl-input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-family: var(--font-sans); font-size: 0.98rem; color: var(--text);
  padding: 0 8px 0 18px;
}
.wl-input::placeholder { color: var(--text-faint); }
.wl-form .btn { flex-shrink: 0; }

/* Honeypot — hidden from humans, bots fill it in */
.wl-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.wl-note { margin-top: 16px; color: var(--text-faint); font-size: 0.86rem; }
.wl-note b { color: var(--text-dim); font-weight: 600; }

/* Inline message (error / already-signed-up) */
.wl-msg {
  margin-top: 14px; font-size: 0.88rem; font-weight: 500;
  min-height: 1.2em; opacity: 0; transition: opacity 0.2s ease;
}
.wl-msg.show { opacity: 1; }
.wl-msg.error { color: #fca5a5; }
.wl-msg.info  { color: var(--accent-text); }
:root[data-theme="light"] .wl-msg.error { color: #d43d3d; }

/* ---------- Success state ---------- */
.wl-success {
  display: none; max-width: 480px; margin: 32px auto 0;
  padding: 30px 28px 32px; border-radius: 20px; text-align: center;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
    var(--grad-border) border-box;
  box-shadow: inset 0 1px 0 var(--inner-light), 0 24px 54px -26px var(--shadow-lg);
}
.wl-success.show { display: block; animation: wlPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes wlPop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.wl-success .tick {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px -8px var(--accent-glow);
}
.wl-success .tick svg { width: 25px; height: 25px; }
.wl-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.wl-success p { color: var(--text-dim); font-size: 0.96rem; line-height: 1.6; }

/* Minimal footer line — sits at the bottom of the screen */
.wl-foot {
  position: relative; z-index: 1; flex-shrink: 0;
  margin-top: 24px; color: var(--text-faint); font-size: 0.82rem;
}
.wl-foot a { color: var(--text-dim); transition: color 0.15s; }
.wl-foot a:hover { color: var(--text); }
.wl-foot .sep { opacity: 0.4; margin: 0 8px; }

@media (max-width: 560px) {
  .wl-page { padding: 26px 0 22px; }
  .wl-inner { padding-top: 20px; }
  .wl-form { flex-direction: column; border-radius: 20px; padding: 10px; }
  .wl-input { padding: 10px 12px; text-align: center; }
  .wl-form .btn { width: 100%; justify-content: center; }
  .wl-foot { margin-top: 20px; }
}
