/* ============================================================
   PULSE — AI Churn Analytics
   Original template for portfolio showcase purposes.
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-2: #0b0b18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.18);

  --text: #f4f4f8;
  --muted: #9a9ab0;
  --dim: #6a6a82;

  --violet: #7c5cff;
  --indigo: #5b7cfa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --lime: #a3e635;
  --coral: #fb7185;

  --grad-brand: linear-gradient(115deg, var(--violet), var(--cyan) 55%, var(--pink));
  --grad-warm: linear-gradient(115deg, var(--amber), var(--coral));

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --maxw: 1200px;
  --radius: 18px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body.is-locked { overflow: hidden; }

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

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

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

/* ---------- ambient layers ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* mouse-responsive lighting */
.spotlight {
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  left: 0; top: 0;
  margin: -310px 0 0 -310px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.06) 45%, transparent 68%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .spotlight { opacity: 1; }
}

/* ---------- shared ---------- */

.wrap {
  width: min(100% - 3rem, var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 2.4s var(--ease-out) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

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

.section-head { max-width: 720px; margin-bottom: 4rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 1.4rem 0 1rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 54ch; }

/* Emphasis by colour, not by gradient fill. The tri-stop brand gradient across
   display type is this category's most worn device, and it works against the
   sentence: the violet and pink stops sit far darker than the cyan, so the
   phrase meant to land hardest reads unevenly and loses contrast at its ends.
   One solid signal colour is louder and holds at every size. The gradient is
   still the brand's own — it stays on the mark, the meters and the rules. */
.accent-text { color: var(--cyan); }

/* reveal-on-scroll baseline (JS adds .in) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.6rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
  will-change: transform;
}

/* One solid brand violet, deep enough to clear 4.5:1 against its own white
   label at this size. The previous fill was the brand gradient on a 7s loop,
   which put the page's only permanent animation on the primary action and
   made the button read as decoration rather than as the thing to press. */
.btn-primary {
  background: #6b48f5;
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(107, 72, 245, 0.9);
}
.btn-primary:hover {
  background: #7c5cff;
  box-shadow: 0 16px 40px -14px rgba(107, 72, 245, 1);
}

.btn-ghost {
  border: 1px solid var(--border-bright);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--surface-2); }

/* liquid hover sheen */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
}
.btn:hover::after { transform: translateX(130%); }

.btn .play {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  transition: background 0.3s ease;
}
.btn-ghost:hover .play { background: var(--cyan); color: #04040a; border-color: var(--cyan); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  padding: 1.1rem 0;
  transition: padding 0.45s var(--ease-out), background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 0.6rem 0;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: min(100% - 3rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}
.logo-mark {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  flex: none;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulseRing 2.6s var(--ease-out) infinite;
}
@keyframes pulseRing {
  0% { opacity: 0.6; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.85); }
}
.logo-mark i {
  position: relative;
  z-index: 1;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions .btn { padding: 0.62rem 1.25rem; font-size: 0.88rem; }
.nav-signin { font-size: 0.92rem; color: var(--muted); transition: color 0.3s ease; }
.nav-signin:hover { color: var(--text); }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(7, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }

/* back to portfolio */
.back-link {
  position: fixed;
  left: 1.5rem; bottom: 1.5rem;
  z-index: 120;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(7, 7, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.back-link:hover { color: var(--text); border-color: var(--border-bright); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

/* AI-generated ambient plate, blurred into pure atmosphere */
.hero-ambient {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.34;
  filter: blur(38px) saturate(150%);
  transform: scale(1.06);
  will-change: transform;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent, rgba(7, 7, 15, 0.72) 78%),
    linear-gradient(to bottom, rgba(7,7,15,0.55), transparent 22%, transparent 62%, var(--bg));
}
/* keeps the headline readable where the assembling dashboard sits behind it */
@media (min-width: 1180px) {
  /* z-index 1 ties with the canvas but paints after it, and stays below the
     floating cards (z-index 2) and the copy (z-index 3) */
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, rgba(7,7,15,0.82), rgba(7,7,15,0.4) 34%, transparent 58%);
  }
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .wrap { z-index: 3; }
.hero-content { max-width: 900px; }

/* sized so "Know who's leaving—" holds on one line at every width;
   the word joiner in the markup stops the em dash breaking off alone */
.hero h1 {
  font-size: clamp(1.85rem, 8.6vw, 4.6rem);
  margin: 1.7rem 0 1.5rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out);
}
.hero.ready h1 .line > span { transform: none; }
.hero.ready h1 .line:nth-child(2) > span { transition-delay: 0.1s; }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 50ch;
  text-wrap: pretty;   /* the measure was stranding "it." on a line of its own */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out) 0.28s, transform 0.9s var(--ease-out) 0.28s;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out) 0.4s, transform 0.9s var(--ease-out) 0.4s;
}
.hero-eyebrow {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out) 0.1s, transform 0.8s var(--ease-out) 0.1s;
}
.hero.ready .hero-sub,
.hero.ready .hero-actions,
.hero.ready .hero-eyebrow { opacity: 1; transform: none; }

.hero-note {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.9s ease 0.62s;
}
.hero.ready .hero-note { opacity: 1; }

/* floating AI notification cards (parallax to mouse) */
.float-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.float-card {
  position: absolute;
  width: 234px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border-bright);
  background: rgba(16, 16, 30, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: transform;
}
.hero.ready .float-card { opacity: 1; transform: none; }
.hero.ready .float-card:nth-child(1) { transition-delay: 0.55s; }
.hero.ready .float-card:nth-child(2) { transition-delay: 0.72s; }
.hero.ready .float-card:nth-child(3) { transition-delay: 0.88s; }

.float-card .fc-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.45rem;
}
.fc-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.fc-dot.risk { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.fc-dot.good { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.fc-dot.info { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.float-card .fc-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.15rem; }
.float-card .fc-body { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.float-card .fc-meter {
  margin-top: 0.6rem;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.float-card .fc-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-warm);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}
.hero.ready .float-card .fc-meter i { transform: scaleX(var(--w, 70%)); transition-delay: 1.1s; }

.fc-1 { top: 17%; right: 5%; }
.fc-2 { top: 44%; right: 15%; }
.fc-3 { bottom: 15%; right: 7%; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.9s ease 0.9s;
}
.hero.ready .scroll-hint { opacity: 1; }

/* The fixed "Portfolio" badge and this centred hint both sit at the bottom of
   the hero and collide once the viewport is narrow enough that the hint reaches
   the left gutter. The hint is decorative and only ever shows on the first
   screen, so it yields. Declared after the base rule on purpose — a media query
   adds no specificity, so an earlier `display: none` would lose to the
   `display: flex` above. */
@media (max-width: 620px) {
  .scroll-hint { display: none; }
}

.scroll-hint .rail {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--border-bright), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .rail::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--cyan);
  animation: railRun 2s var(--ease-out) infinite;
}
@keyframes railRun {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ============================================================
   SOCIAL PROOF — drifting logos
   ============================================================ */

.proof {
  position: relative;
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.proof-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2.6rem;
}
/* The gap belongs on the row, not the track. On the track it made -50% land
   half a gap short every cycle, so the seam jumped. The row's trailing
   padding supplies the space between the last logo and the next copy's
   first, which is what makes the row width exactly one period. See PATTERNS.md. */
.proof-track {
  display: flex;
  width: max-content;
  animation: drift 34s linear infinite;
}
.proof-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3.4rem;
  padding-right: 3.4rem;
}
.proof:hover .proof-track { animation-play-state: paused; }
@keyframes drift {
  to { transform: translateX(-50%); }
}
.proof-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.4s ease, transform 0.4s var(--ease-out);
  animation: bob 6s ease-in-out infinite;
}
.proof-logo:nth-child(even) { animation-delay: -3s; }
.proof-logo:nth-child(3n) { animation-delay: -1.6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.proof-logo:hover { color: var(--text); }
.proof-logo .glyph {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-bright);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  flex: none;
}
.proof-logo:nth-child(1) .glyph { background: rgba(124, 92, 255, 0.16); color: var(--violet); }
.proof-logo:nth-child(2) .glyph { background: rgba(34, 211, 238, 0.16); color: var(--cyan); }
.proof-logo:nth-child(3) .glyph { background: rgba(244, 114, 182, 0.16); color: var(--pink); }
.proof-logo:nth-child(4) .glyph { background: rgba(251, 191, 36, 0.16); color: var(--amber); }
.proof-logo:nth-child(5) .glyph { background: rgba(163, 230, 53, 0.16); color: var(--lime); }
.proof-logo:nth-child(6) .glyph { background: rgba(91, 124, 250, 0.16); color: var(--indigo); }

/* ============================================================
   FEATURES — pinned scroll panels
   ============================================================ */

.features { position: relative; }

/* sticky backdrop — the three panels scroll over one held image */
.features-bg {
  position: sticky;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  z-index: 0;
  overflow: hidden;
}
.features-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(3px) saturate(140%);
}
.features-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(7,7,15,0.72) 22%, rgba(7,7,15,0.72) 78%, var(--bg));
}

.feature-panel {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.feature-panel.flip .feature-copy { order: 2; }

.feature-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feature-index::after {
  content: '';
  height: 1px;
  width: 54px;
  background: var(--border-bright);
}
.feature-copy h2 {
  font-size: clamp(2.6rem, 6.6vw, 4.8rem);
  margin-bottom: 1.3rem;
}
.feature-copy p { color: var(--muted); font-size: 1.06rem; max-width: 46ch; }
.feature-points { list-style: none; margin-top: 2rem; display: grid; gap: 0.85rem; }
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--muted);
}
.feature-points li::before {
  content: '';
  width: 16px; height: 16px;
  margin-top: 4px;
  flex: none;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  background-image: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: 0.85;
}

/* feature visual — live mini dashboards */
.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 22px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(160deg, rgba(20,20,38,0.9), rgba(10,10,22,0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9);
  padding: 1.4rem;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}
.feature-visual:hover {
  transform: translateY(-8px) scale(1.014);
  box-shadow: 0 55px 110px -40px rgba(124, 92, 255, 0.4);
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 12%, rgba(124,92,255,0.22), transparent 55%);
  pointer-events: none;
}

.fv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.fv-title { font-size: 0.82rem; font-weight: 600; }
.fv-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.fv-tag.live { color: var(--lime); border-color: rgba(163,230,53,0.35); background: rgba(163,230,53,0.08); }

/* risk rows (Predict) */
.risk-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out);
  position: relative;
  z-index: 1;
}
.risk-row:hover { background: var(--surface); border-color: var(--border); transform: translateX(4px); }
.risk-row.alert { background: rgba(251,113,133,0.09); border-color: rgba(251,113,133,0.3); }
.rr-avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #0a0a14;
}
.rr-name { font-size: 0.8rem; font-weight: 500; }
.rr-meta { font-size: 0.66rem; color: var(--dim); font-family: var(--font-mono); }
.rr-score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
}
.rr-score.high { color: var(--coral); background: rgba(251,113,133,0.14); }
.rr-score.mid { color: var(--amber); background: rgba(251,191,36,0.14); }
.rr-score.low { color: var(--lime); background: rgba(163,230,53,0.14); }

/* reason bars (Explain) */
.reason { margin-bottom: 1rem; position: relative; z-index: 1; }
.reason-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.42rem;
}
.reason-top span:last-child { font-family: var(--font-mono); color: var(--muted); }
.reason-bar {
  height: 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
/* scaleX rather than an animated width, so the fill runs on the compositor
   instead of relaying out the track on every frame. --w stays a percentage;
   scaleX accepts one and resolves it to the same ratio. */
.reason-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 100%;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease-out);
}
.feature-visual.in .reason-bar i { transform: scaleX(var(--w)); }
.reason:nth-child(3) .reason-bar i { transition-delay: 0.1s; }
.reason:nth-child(4) .reason-bar i { transition-delay: 0.2s; }
.reason:nth-child(5) .reason-bar i { transition-delay: 0.3s; }

/* playbook (Prevent) */
.play-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), background 0.35s ease;
}
.play-row:hover { border-color: var(--border-bright); transform: translateX(4px); background: var(--surface-2); }
.play-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-bright);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  flex: none;
  transition: background 0.4s var(--ease-spring), border-color 0.4s ease, color 0.4s ease;
}
.play-row.done .play-check { background: var(--lime); border-color: var(--lime); color: #0a0a14; }
.play-label { font-size: 0.82rem; flex: 1; }
.play-row.done .play-label { color: var(--muted); }
.play-gain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lime);
}

/* ============================================================
   STATS
   ============================================================ */

.stats {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(124,92,255,0.04), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 2.6rem 1.8rem;
  text-align: center;
  transition: background 0.5s ease;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,92,255,0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.stat:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 0.7rem;
  position: relative;
}
.stat:nth-child(1) .stat-num { color: var(--violet); }
.stat:nth-child(2) .stat-num { color: var(--cyan); }
.stat:nth-child(3) .stat-num { color: var(--lime); }
.stat:nth-child(4) .stat-num { color: var(--pink); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  position: relative;
}

/* ============================================================
   SHOWCASE — living browser frame
   ============================================================ */

.showcase { position: relative; padding: 8rem 0; overflow: hidden; }
.showcase .section-head { margin-inline: auto; text-align: center; }
.showcase .section-head p { margin-inline: auto; }

.browser {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(165deg, rgba(18,18,34,0.96), rgba(9,9,19,0.96));
  box-shadow: 0 60px 130px -50px rgba(0,0,0,0.95), 0 0 90px -50px rgba(124,92,255,0.5);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.browser-dots { display: flex; gap: 0.42rem; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  padding: 0.32rem 0.8rem;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.app {
  display: grid;
  grid-template-columns: 190px 1fr 250px;
  min-height: 500px;
}

.app-side {
  border-right: 1px solid var(--border);
  padding: 1.2rem 0.9rem;
}
.app-side-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 0.6rem;
  margin-bottom: 0.75rem;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.18rem;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.app-nav-item:hover { background: var(--surface); color: var(--text); }
.app-nav-item.active { background: rgba(124,92,255,0.16); color: var(--text); }
.app-nav-item .ico {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: var(--surface-2);
  flex: none;
}
.app-nav-item.active .ico { background: var(--grad-brand); }

.app-main { padding: 1.4rem 1.5rem; border-right: 1px solid var(--border); }
.app-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}
.app-h { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em; }
.app-sub { font-size: 0.72rem; color: var(--dim); font-family: var(--font-mono); }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.3rem; }
.kpi {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
}
.kpi:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.35rem;
}
.kpi-val { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.03em; }
.kpi-delta { font-family: var(--font-mono); font-size: 0.62rem; margin-top: 0.2rem; }
.kpi-delta.up { color: var(--lime); }
.kpi-delta.down { color: var(--coral); }

.chart-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.chart-title { font-size: 0.76rem; font-weight: 600; }
.chart-legend { display: flex; gap: 0.85rem; }
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--dim);
}
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; display: block; }
#appChart { width: 100%; height: 150px; }

.app-feed { padding: 1.2rem 1rem; display: flex; flex-direction: column; }
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.feed-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.live-pip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--lime);
}
.live-pip i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 1.8s ease infinite;
}

.feed-list { display: flex; flex-direction: column; gap: 0.55rem; overflow: hidden; flex: 1; }
.feed-item {
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  animation: feedIn 0.6s var(--ease-out) both;
}
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.feed-item.leaving { animation: feedOut 0.4s var(--ease-out) both; }
@keyframes feedOut {
  to { opacity: 0; transform: translateY(8px); }
}
.feed-top {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.28rem;
}
.feed-text { font-size: 0.72rem; line-height: 1.42; color: var(--muted); }
.feed-text b { color: var(--text); font-weight: 600; }

.ai-box {
  margin-top: 0.9rem;
  padding: 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(124,92,255,0.32);
  background: rgba(124,92,255,0.08);
}
.ai-box-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.4rem;
}
.ai-spark { width: 10px; height: 10px; flex: none; }
#aiType { font-size: 0.73rem; line-height: 1.5; min-height: 3.2em; color: var(--text); }
#aiType::after {
  content: '';
  display: inline-block;
  width: 6px; height: 12px;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: -1px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ghost cursor drifting across the app */
.ghost-cursor {
  position: absolute;
  width: 16px; height: 16px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.ghost-cursor svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6)); }
.ghost-cursor::after {
  content: 'PULSE AI';
  position: absolute;
  left: 15px; top: 13px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.38rem;
  border-radius: 5px;
  background: var(--violet);
  color: #fff;
  white-space: nowrap;
}
.browser.in .ghost-cursor { opacity: 1; }

/* ============================================================
   FLOW — workspace
   ============================================================ */

.flow { position: relative; padding: 7rem 0 8rem; }
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.flow-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: 0 50px 100px -45px rgba(0,0,0,0.9);
}
.flow-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.flow-media:hover img { transform: scale(1.1); }
.flow-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.65), transparent 55%);
  pointer-events: none;
}
.flow-badge {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  background: rgba(10,10,20,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flow-badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: blink 2s ease infinite;
}
.flow h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: 1.2rem; }
.flow p { color: var(--muted); font-size: 1.04rem; }
.flow-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.1rem; }
.flow-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.flow-list .n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--violet);
  padding-top: 3px;
  flex: none;
}
.flow-list h3 { font-size: 0.98rem; margin-bottom: 0.18rem; letter-spacing: -0.02em; }
.flow-list p { font-size: 0.88rem; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing { position: relative; padding: 7rem 0; border-top: 1px solid var(--border); }
.pricing .section-head { margin-inline: auto; text-align: center; }
.pricing .section-head p { margin-inline: auto; }

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.4rem;
}
.toggle-label {
  font-size: 0.9rem;
  color: var(--dim);
  transition: color 0.35s ease;
  cursor: pointer;
}
.toggle-label.on { color: var(--text); }
.toggle {
  position: relative;
  width: 54px; height: 30px;
  border-radius: 100px;
  border: 1px solid var(--border-bright);
  background: var(--surface-2);
  transition: background 0.4s ease;
}
.toggle i {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  transition: transform 0.45s var(--ease-spring);
}
.toggle.annual i { transform: translateX(24px); }
.save-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
  color: var(--lime);
  background: rgba(163,230,53,0.1);
  border: 1px solid rgba(163,230,53,0.3);
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.plan {
  position: relative;
  padding: 2rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), border-color 0.5s ease, background 0.5s ease;
  will-change: transform;
}
.plan:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  background: var(--surface-2);
}
.plan.featured {
  border-color: rgba(124,92,255,0.45);
  background: linear-gradient(170deg, rgba(124,92,255,0.1), rgba(255,255,255,0.03));
}
.plan.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradShift 7s ease infinite;
  pointer-events: none;
}
.plan-flag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--grad-brand);
  color: #fff;
  white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -0.03em; }
.plan-desc { font-size: 0.83rem; color: var(--dim); margin-top: 0.3rem; min-height: 2.5em; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 1.4rem 0 0.3rem;
}
.plan-amount {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan-amount .cur { font-size: 1.3rem; vertical-align: super; margin-right: 1px; }
.plan-per { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); }
.plan-billed { font-size: 0.72rem; color: var(--dim); min-height: 1.2em; margin-bottom: 1.5rem; }
.plan .btn { width: 100%; }
.plan-features { list-style: none; margin-top: 1.7rem; display: grid; gap: 0.72rem; }
.plan-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}
.plan-features li svg { flex: none; margin-top: 3px; color: var(--violet); }

/* ============================================================
   FAQ
   ============================================================ */

.faq { padding: 7rem 0; border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.faq-item.open { border-color: rgba(124,92,255,0.4); background: var(--surface-2); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.3rem;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-icon {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.45s var(--ease-out), background 0.4s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-icon::before { background: var(--violet); }
.faq-item.open .faq-icon::after { transform: rotate(90deg); background: var(--violet); }

/* Animated pixel height, driven from scrollHeight in main.js. The grid
   0fr -> 1fr technique is the better-behaved pattern and was tried here, but
   padding sits outside min-height, so the row floors at .faq-a-inner's padding
   and closed panels keep a visible strip. It needs a padding-free wrapper
   inside .faq-a-inner. Worth doing if this markup is ever touched; not worth
   the churn for a transition that runs once per click. */
.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.5s var(--ease-out);
}
.faq-a-inner {
  padding: 0 1.3rem 1.3rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta {
  position: relative;
  padding: 9rem 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
#ctaCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, transparent, var(--bg) 82%);
  pointer-events: none;
}
.cta .wrap { z-index: 2; }
.cta h2 {
  font-size: clamp(2.4rem, 6.6vw, 4.6rem);
  margin: 1.6rem 0 1.3rem;
}
.cta p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 auto 2.6rem;
}
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta-note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer { padding: 4.5rem 0 3rem; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p {
  font-size: 0.86rem;
  color: var(--dim);
  margin-top: 1rem;
  max-width: 34ch;
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: 0.65rem; }
/* contact entries are plain <li>, so match them to the link columns */
.footer ul li { font-size: 0.88rem; color: var(--muted); }
.footer ul a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
  display: inline-block;
}
.footer ul a:hover { color: var(--text); transform: translateX(3px); }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--dim);
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .feature-grid, .flow-grid, .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
  .feature-panel.flip .feature-copy { order: 0; }
  .app { grid-template-columns: 1fr 260px; }
  .app-side { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn, .nav-signin { display: none; }
  .nav-toggle { display: block; }
  .float-card { display: none; }
  .hero { padding-top: 7.5rem; }
  .app { grid-template-columns: 1fr; }
  .app-feed { display: none; }
  .app-main { border-right: none; }
  .feature-panel { min-height: auto; padding: 4.5rem 0; }
}

@media (max-width: 620px) {
  .wrap, .nav-inner { width: min(100% - 2.2rem, var(--maxw)); }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .back-link { left: 1rem; bottom: 1rem; }
  .kpi-row { grid-template-columns: 1fr; }
  .browser-url { display: none; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero-sub, .hero-actions, .hero-eyebrow, .hero-note, .float-card, .scroll-hint { opacity: 1; transform: none; }
  .proof-track { animation: none; }
}
