/* PromptFork — marketing site v2 (animated, cinematic) */
:root {
  --p1: #6d5dfc;
  --p2: #4f46e5;
  --p3: #8b5cf6;
  --c1: #22d3ee;
  --c2: #a78bfa;
  --bg: #07091a;
  --bg2: #0d1029;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(109, 93, 252, 0.35);
  --fg: #ecedf5;
  --mut: #9ba0b5;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 60px rgba(109, 93, 252, 0.4);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
::selection { background: var(--p1); color: #fff; }


/* ---------- Spotlight cursor follower (hero only) ---------- */
.spotlight {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 93, 252, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  left: 50%; top: 30%;
  filter: blur(40px);
  transition: opacity 0.4s;
  opacity: 0;
}
.spotlight.active { opacity: 1; }

/* ---------- Floating emoji bubbles ---------- */
.bubbles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  height: 100vh;
}
.bubble {
  position: absolute;
  opacity: 0;
  filter: drop-shadow(0 0 24px rgba(109, 93, 252, 0.7));
  animation: bubbleRise 11s linear infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}
.bubble:nth-child(1) { left: 6%;  animation-delay: -0.5s; font-size: 36px; }
.bubble:nth-child(2) { left: 16%; animation-delay: -2s;   font-size: 44px; }
.bubble:nth-child(3) { left: 28%; animation-delay: -4s;   font-size: 30px; }
.bubble:nth-child(4) { left: 40%; animation-delay: -6s;   font-size: 38px; }
.bubble:nth-child(5) { left: 56%; animation-delay: -1s;   font-size: 32px; }
.bubble:nth-child(6) { left: 70%; animation-delay: -3s;   font-size: 42px; }
.bubble:nth-child(7) { left: 82%; animation-delay: -5s;   font-size: 36px; }
.bubble:nth-child(8) { left: 92%; animation-delay: -7s;   font-size: 30px; }
@keyframes bubbleRise {
  0%   { opacity: 0; transform: translateY(105vh) scale(0.6) rotate(0deg); }
  8%   { opacity: 0.85; }
  50%  { transform: translateY(45vh) scale(1.15) rotate(180deg); }
  92%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-20vh) scale(0.7) rotate(360deg); }
}

/* Particle canvas */
.particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Nav entrance */
.nav { animation: navDown 0.7s ease backwards; }
@keyframes navDown { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* ---------- Animated background ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #11142a 0%, #07091a 60%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 { width: 540px; height: 540px; background: #6d5dfc; top: -180px; left: -120px; animation: drift 22s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; background: #8b5cf6; top: 30%; right: -120px; animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 420px; height: 420px; background: #22d3ee; bottom: -120px; left: 30%; animation: drift 30s ease-in-out infinite alternate; opacity: 0.35; }
.orb-4 { width: 360px; height: 360px; background: #4f46e5; top: 65%; left: -100px; animation: drift 24s ease-in-out infinite alternate-reverse; opacity: 0.45; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Common ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7c0ff;
  border-radius: 999px;
  background: rgba(109, 93, 252, 0.12);
  border: 1px solid rgba(109, 93, 252, 0.3);
}
.eyebrow.center { display: block; text-align: center; max-width: max-content; margin: 0 auto; color: var(--mut); background: transparent; border-color: var(--line); }
.grad { background: linear-gradient(135deg, var(--p1), var(--c2)); -webkit-background-clip: text; color: transparent; }
.grad-2 { background: linear-gradient(135deg, var(--c2), var(--c1)); -webkit-background-clip: text; color: transparent; }
.grad-3 { background: linear-gradient(135deg, var(--c1), var(--p1)); -webkit-background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn.lg { padding: 16px 30px; font-size: 16px; }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.btn.block { display: flex; justify-content: center; width: 100%; }
.btn.primary {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.btn.primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--p3), var(--c2));
  opacity: 0;
  transition: opacity 0.25s;
}
.btn.primary > * { position: relative; z-index: 1; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(109, 93, 252, 0.6), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn.primary:hover::before { opacity: 1; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-bright); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 26, 0.7);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}
.logo-mark svg { width: 20px; height: 20px; }
.brand-text { background: linear-gradient(135deg, #fff, #c7c0ff); -webkit-background-clip: text; color: transparent; }
.nav nav { display: flex; gap: 28px; align-items: center; font-weight: 500; font-size: 14px; }
.nav nav a { color: var(--mut); transition: color 0.2s; }
.nav nav a:hover { color: #fff; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 24px 80px;
  display: flex; align-items: center;
}
.hero-inner {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 24px 0 22px;
}
/* Hero h1 stagger entrance — pure CSS, autoplay */
.hero-h1 .line { display: block; overflow: visible; }
.anim-h1 .w, .anim-h1 .rotator {
  display: inline-block;
  animation: wordIn 0.9s cubic-bezier(.22,.99,.4,1) backwards;
}
.anim-h1 .line:nth-child(1) .w:nth-child(1)        { animation-delay: 0.10s; }
.anim-h1 .line:nth-child(1) .rotator               { animation-delay: 0.22s; }
.anim-h1 .line:nth-child(2) .w:nth-child(1)        { animation-delay: 0.34s; }
.anim-h1 .line:nth-child(2) .w:nth-child(2)        { animation-delay: 0.42s; }
.anim-h1 .line:nth-child(2) .w:nth-child(3)        { animation-delay: 0.52s; }
.anim-h1 .line:nth-child(3) .w:nth-child(1)        { animation-delay: 0.66s; }
.anim-h1 .line:nth-child(3) .w:nth-child(2)        { animation-delay: 0.76s; }
@keyframes wordIn {
  0%   { opacity: 0; transform: translateY(60%) rotateX(-40deg); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

/* Rotating word ticker — 4 words, each visible 22% of a 9s loop */
.rotator {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
  min-width: 4.5ch;
  height: 1em;
}
.rotator .rot-word {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40%);
  animation: rotWords 9s cubic-bezier(.65,0,.35,1) infinite;
}
.rotator .rot-word:nth-child(1) { animation-delay: 1.0s;  }
.rotator .rot-word:nth-child(2) { animation-delay: 3.25s; }
.rotator .rot-word:nth-child(3) { animation-delay: 5.5s;  }
.rotator .rot-word:nth-child(4) { animation-delay: 7.75s; }
@keyframes rotWords {
  0%   { opacity: 0; transform: translateY(60%); filter: blur(6px); }
  6%   { opacity: 1; transform: translateY(0);    filter: blur(0); }
  22%  { opacity: 1; transform: translateY(0);    filter: blur(0); }
  28%  { opacity: 0; transform: translateY(-60%); filter: blur(6px); }
  100% { opacity: 0; transform: translateY(-60%); }
}

.shimmer {
  background-size: 200% 100% !important;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.shimmer.grad   { background-image: linear-gradient(120deg, var(--p1), var(--c2), var(--p1)) !important; }
.shimmer.grad-2 { background-image: linear-gradient(120deg, var(--c2), var(--c1), var(--c2)) !important; }
.shimmer.grad-3 { background-image: linear-gradient(120deg, var(--c1), var(--p1), var(--c1)) !important; }

/* CTA glow ring */
.btn.glow {
  position: relative;
  isolation: isolate;
}
.btn.glow::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 14px;
  background: conic-gradient(from 0deg, var(--p1), var(--c2), var(--c1), var(--p1));
  filter: blur(10px);
  opacity: 0.7;
  z-index: -1;
  animation: glowSpin 4s linear infinite;
}
@keyframes glowSpin { to { transform: rotate(360deg); } }

/* Stagger entrance for hero text + demo — autoplay, no JS required */
.hero-text .announce        { animation: rise 0.7s ease 0.05s backwards; }
.hero-text .lede             { animation: rise 0.7s ease 0.85s backwards; }
.hero-text .hero-actions     { animation: rise 0.7s ease 1.0s backwards; }
.hero-text .trust            { animation: rise 0.7s ease 1.15s backwards; }
.hero-demo                   { animation: riseScale 1s ease 0.5s backwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes riseScale {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
.lede { font-size: 18px; color: var(--mut); max-width: 560px; margin: 0 0 36px; line-height: 1.6; }
.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: rgba(109, 93, 252, 0.15);
  border: 1px solid rgba(109, 93, 252, 0.35);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: #d6cfff;
  transition: background 0.2s, transform 0.2s;
}
.announce:hover { background: rgba(109, 93, 252, 0.25); transform: translateY(-1px); }
.announce .dot { width: 6px; height: 6px; background: var(--c1); border-radius: 50%; box-shadow: 0 0 10px var(--c1); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.announce .arr { color: var(--c2); transition: transform 0.2s; }
.announce:hover .arr { transform: translateX(4px); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.trust { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  margin-left: -8px;
  border: 2px solid var(--bg);
  color: #fff;
}
.av:first-child { margin-left: 0; }
.av1 { background: linear-gradient(135deg, #f472b6, #ec4899); }
.av2 { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.av3 { background: linear-gradient(135deg, #a78bfa, #6d5dfc); }
.av4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av5 { background: linear-gradient(135deg, #1e293b, #334155); }
.stars { color: #fbbf24; font-size: 14px; letter-spacing: 1px; }
.trust-text { color: var(--mut); font-size: 13px; margin-top: 2px; }
.trust-text b { color: var(--fg); }

/* ---------- Hero demo window ---------- */
.hero-demo {
  position: relative;
  perspective: 1200px;
}
.window {
  background: #0f1226;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: rotateY(-8deg) rotateX(5deg);
  transition: transform 0.4s ease;
}
.hero-demo:hover .window { transform: rotateY(-4deg) rotateX(2deg); }
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.window-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.window-bar .d1 { background: #ef4444; }
.window-bar .d2 { background: #f59e0b; }
.window-bar .d3 { background: #10b981; }

/* Platform row above chat input */
.platform-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  flex-wrap: wrap;
}
.plat-label { color: var(--mut); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.plat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mut);
  font-weight: 500;
  font-size: 12px;
  transition: all 0.4s ease;
}
.plat-chip.pulse {
  background: rgba(109, 93, 252, 0.18);
  border-color: rgba(109, 93, 252, 0.55);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(109, 93, 252, 0.4);
}
.plat-chip.dim { opacity: 0.4; }

/* Button click pulse + ripple animation */
@keyframes fabClick {
  0%, 100% { transform: translateY(0) scale(1); }
  35%      { transform: translateY(-2px) scale(0.93); }
  70%      { transform: translateY(-1px) scale(1.05); }
}
.fab.click-pulse { animation: fabClick 0.55s cubic-bezier(.5,1.7,.35,1); }
.fab.click-pulse::after {
  content: ""; position: absolute; inset: -4px;
  border: 2px solid var(--c1);
  border-radius: 999px;
  animation: ripple 0.7s ease-out;
}
@keyframes ripple {
  0%   { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* Overlay card — content is in flow when shown so card sizes naturally */
.overlay-card {
  background: rgba(15, 18, 38, 0.96);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  padding: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.4s cubic-bezier(.22,.99,.4,1), transform 0.45s cubic-bezier(.22,1.2,.4,1), padding 0.4s ease, margin 0.4s ease;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
}
.overlay-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  padding: 16px;
  height: auto;
  pointer-events: auto;
  margin-top: 8px;
  animation: cardOpen 0.5s cubic-bezier(.22,1.2,.4,1);
}
@keyframes cardOpen {
  from { max-height: 0; }
  to   { max-height: 600px; }
}
.window-title { margin-left: 14px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--mut); }
.window-body {
  padding: 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Chat stage — vertically centers the input and parks the ✨ fab above it */
.chat-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}
.chat-input.center {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.chat-input .send-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  bottom: auto;
  margin-top: -16px;
  transform: scale(1);
}
.chat-input .send-btn.click { animation: sendClick 0.4s cubic-bezier(.5,1.7,.35,1); transform: scale(1); }
@keyframes sendClick {
  0%   { transform: scale(1); background: linear-gradient(135deg, #fff, #e2e8f0); color: #07091a; }
  40%  { transform: scale(0.85); background: var(--p1); color: #fff; }
  100% { transform: scale(1); background: linear-gradient(135deg, #fff, #e2e8f0); color: #07091a; }
}
.prompt-text.center {
  text-align: center;
}
.prompt-text.center:not(:empty) {
  text-align: left; /* once the user has typed, left-align the actual content */
}

/* (chat-history / chat-bubble / bubble-fork CSS removed — input-driven flow now) */

.chat-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 56px 14px 18px;
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.chat-input .prompt-text { flex: 1; }
.chat-input .send-btn { right: 12px; bottom: 50%; transform: translateY(50%); }
.chat-input .send-btn.click { transform: translateY(50%) scale(0.85); }
.chat-input:focus-within {
  border-color: var(--line-bright);
  background: rgba(109, 93, 252, 0.06);
}
.prompt-text {
  font-size: 14px; line-height: 1.55;
  font-family: "Inter", sans-serif;
  color: var(--fg);
  white-space: pre-wrap;
  min-height: 22px;
  outline: none;
  caret-color: var(--c1);
}
.prompt-text:empty::before {
  content: attr(data-placeholder);
  color: var(--mut);
  pointer-events: none;
}
.prompt-text.swap-out {
  animation: swapOut 0.35s ease forwards;
}
.prompt-text.swap-in {
  animation: swapIn 0.5s cubic-bezier(.22,1.4,.4,1);
}
@keyframes swapOut {
  to { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
}
@keyframes swapIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); background: rgba(34, 211, 238, 0.15); }
  60%  { background: rgba(34, 211, 238, 0.15); }
  to   { opacity: 1; transform: none; filter: blur(0); background: transparent; }
}
.hint {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-size: 11px;
  color: var(--mut);
  letter-spacing: 0.04em;
  font-weight: 500;
  opacity: 0.85;
}
/* Fab is wrapped in a positioner so we can pulse the inner without fighting position transforms */
.fab {
  position: absolute;
  left: 50%;
  top: calc(50% - 70px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px) scale(0.8);
  transition:
    opacity 0.4s cubic-bezier(.22,1.4,.4,1),
    transform 0.45s cubic-bezier(.22,1.4,.4,1),
    visibility 0.4s;
  cursor: pointer;
  border: 0;
  z-index: 3;
  white-space: nowrap;
}
.fab.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.fab .sparkle { animation: sparkle 2s ease-in-out infinite; display: inline-block; }
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(15deg); } }

/* Pulse using box-shadow + ripple rings so it never fights the position transform */
.fab.pulsing { box-shadow: 0 0 0 0 rgba(109, 93, 252, 0.55); animation: fabGlow 1.6s ease-in-out infinite; }
.fab.pulsing::before, .fab.pulsing::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--p1);
  pointer-events: none;
  animation: fabRing 1.6s cubic-bezier(.4,0,.2,1) infinite;
}
.fab.pulsing::after {
  inset: -8px;
  border-color: var(--c2);
  opacity: 0.55;
  animation-delay: 0.6s;
}
@keyframes fabGlow {
  0%,100% { box-shadow: 0 10px 28px rgba(79, 70, 229, 0.5);  }
  50%     { box-shadow: 0 16px 38px rgba(109, 93, 252, 0.85); }
}
@keyframes fabRing {
  0%   { opacity: 0.85; transform: scale(0.92); }
  100% { opacity: 0;    transform: scale(1.55); }
}

/* Send button (ChatGPT-style ↑) */
.send-btn {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff, #e2e8f0);
  color: #07091a;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25); }
.send-btn.click {
  animation: sendClick 0.4s cubic-bezier(.5,1.7,.35,1);
}
@keyframes sendClick {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.85); background: var(--p1); color: #fff; }
  100% { transform: scale(1); }
}

/* (overlay-card styles defined later with full open/close transition) */
.overlay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.oh-title { font-weight: 700; font-size: 13px; }
.meta-pill { font-size: 11px; color: var(--mut); padding: 3px 9px; background: rgba(255,255,255,0.05); border-radius: 999px; }
.orig-box, .result-text { font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.5; color: var(--mut); padding: 10px 12px; background: rgba(0,0,0,0.25); border-radius: 8px; max-height: 80px; overflow: hidden; }
.actions { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.action {
  padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.action:hover {
  color: #fff;
  border-color: var(--line-bright);
  background: rgba(109, 93, 252, 0.12);
  transform: translateY(-1px);
}
.action.active {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}
.action.loading { pointer-events: none; opacity: 0.7; }
.action.loading::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-box { transition: opacity 0.4s ease; }
.result-meta { font-size: 11px; color: var(--mut); margin-bottom: 6px; }
.result-text { color: var(--fg); border: 1px solid rgba(34, 211, 238, 0.25); background: rgba(34, 211, 238, 0.05); }
.savings { margin-top: 10px; font-size: 13px; color: var(--c1); font-weight: 600; line-height: 1.6; }
.savings .badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  margin: 3px 4px 3px 0;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  font-size: 12px;
  color: var(--c1);
  animation: badgePop 0.5s cubic-bezier(.22,1.4,.4,1) backwards;
}
.savings .badge.warm { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }
.savings .badge.purple { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.4); color: #c4b5fd; }
.savings .badge.green { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.savings .badge:nth-child(1) { animation-delay: 0.05s; }
.savings .badge:nth-child(2) { animation-delay: 0.18s; }
.savings .badge:nth-child(3) { animation-delay: 0.31s; }
.savings .badge:nth-child(4) { animation-delay: 0.44s; }
@keyframes badgePop {
  from { opacity: 0; transform: translateY(8px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Confetti emojis fly upward from the result on a successful rewrite */
.confetti-host { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.confetti {
  position: absolute;
  bottom: 50%; left: 50%;
  font-size: 24px;
  opacity: 0;
  animation: confettiFly 1.6s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}
@keyframes confettiFly {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.4) rotate(0deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -200px) scale(1.2) rotate(var(--rot, 360deg)); }
}

.float-card {
  position: absolute;
  background: rgba(15, 18, 38, 0.9);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cost-card { top: -22px; left: -22px; animation-delay: 0s; }
.fc-label { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.fc-value { font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--c1), var(--p1)); -webkit-background-clip: text; color: transparent; font-family: "JetBrains Mono", monospace; }
.fc-spark { margin-top: 4px; }
.fc-spark svg { width: 80px; height: 24px; display: block; }
.fc-small { font-size: 12px; color: var(--mut); }
.streak-icon { font-size: 26px; }

.scroll-hint {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--mut); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  animation: hintBob 2.6s ease-in-out infinite;
}
@keyframes hintBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--mut);
  border-radius: 11px;
  position: relative;
}
.mouse span {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--mut);
  border-radius: 2px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel { 0%,100% { opacity: 1; transform: translate(-50%, 0); } 50% { opacity: 0.4; transform: translate(-50%, 8px); } }

/* ---------- Logos / supports ---------- */
.logos { padding: 60px 0 30px; }
.logo-row {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 24px;
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  color: var(--mut);
  transition: all 0.2s;
}
.logo-chip:hover { color: #fff; border-color: var(--line-bright); }

/* ---------- Stats ---------- */
.stats { padding: 60px 0; }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 4px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.big-num {
  font-size: 44px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--p1), var(--c2));
  -webkit-background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-card span { font-size: 28px; font-weight: 800; color: var(--c2); }
.stat-card p { width: 100%; margin: 6px 0 0; color: var(--mut); font-size: 13px; }

/* ---------- Sections ---------- */
section { position: relative; }
section.container { padding: 90px 24px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 18px 0 14px;
  line-height: 1.1;
}
.section-head .lede { margin: 0 auto; }

/* ---------- Features ---------- */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feat::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 93, 252, 0.15), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.feat:hover { transform: translateY(-4px); border-color: var(--line-bright); background: var(--card-hover); }
.feat:hover::before { opacity: 1; }
.feat-art {
  height: 80px; margin-bottom: 18px;
  display: flex; align-items: center;
}
.feat-art svg { width: 100%; height: 100%; }
.feat h3 { margin: 0 0 8px; font-size: 19px; }
.feat p { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.6; }
.pulse { animation: pulseR 2s ease-in-out infinite; transform-origin: center; }
@keyframes pulseR { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }
.cut { animation: cutAnim 4s ease-in-out infinite; transform-origin: 6px 60px; }
@keyframes cutAnim { 0%,40%,100% { transform: scale(1, 1); } 50% { transform: scale(1, 0); } }

/* ---------- How ---------- */
.steps { position: relative; max-width: 720px; margin: 0 auto; padding: 24px 0; }
.step-line { position: absolute; left: 26px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--p1), transparent); opacity: 0.4; }
.step { display: flex; gap: 20px; padding: 20px 0; position: relative; z-index: 1; }
.step-num {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4);
  position: relative;
}
.step-num::after {
  content: ""; position: absolute; inset: -4px;
  border: 1px solid rgba(109, 93, 252, 0.4);
  border-radius: 18px;
  animation: stepRing 2.4s ease-in-out infinite;
}
@keyframes stepRing { 0%,100% { opacity: 0; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
.step-body h4 { margin: 0 0 6px; font-size: 18px; }
.step-body p { margin: 0; color: var(--mut); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin: 0;
  transition: border-color 0.3s, transform 0.3s;
}
.testi:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.testi blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi figcaption b { display: block; font-size: 14px; }
.testi figcaption span { color: var(--mut); font-size: 12px; }

/* ---------- Pricing ---------- */
.toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 24px;
}
.t-opt { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--mut); transition: all 0.25s; }
.t-opt:hover { color: #fff; }
.t-opt.active { background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; }
.t-opt .save { display: inline-block; margin-left: 6px; padding: 2px 7px; background: rgba(34, 211, 238, 0.2); border-radius: 999px; font-size: 10px; color: var(--c1); }
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch; max-width: 1100px; margin: 0 auto;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-bright); }
.plan.featured {
  border-color: rgba(109, 93, 252, 0.5);
  background: linear-gradient(180deg, rgba(109, 93, 252, 0.12), var(--card));
  box-shadow: 0 20px 50px rgba(109, 93, 252, 0.25);
}
.ribbon {
  position: absolute; top: -12px; left: 24px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}
.plan h3 { margin: 0 0 14px; font-size: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.plan-price .amt { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .per { color: var(--mut); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan ul li { padding: 7px 0; color: var(--mut); font-size: 14.5px; }
.plan ul li b { color: var(--fg); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.faq-list details:hover { border-color: var(--line-bright); }
.faq-list details[open] { background: var(--card-hover); border-color: var(--line-bright); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev { font-size: 22px; color: var(--mut); transition: transform 0.25s; }
.faq-list details[open] .chev { transform: rotate(45deg); color: var(--p1); }
.faq-list p { margin: 14px 0 0; color: var(--mut); line-height: 1.6; }
.faq-list code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ---------- Signup ---------- */
.signup { padding: 110px 24px; position: relative; overflow: hidden; }
.signup-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 30% 30%, rgba(109, 93, 252, 0.3), transparent 60%),
    radial-gradient(500px circle at 70% 70%, rgba(34, 211, 238, 0.2), transparent 60%);
}
.signup-card {
  max-width: 560px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-bright);
  border-radius: var(--r-lg);
  padding: 44px 36px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.signup-card h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0; }
.signup-form { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.signup-form input {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font: inherit;
  transition: all 0.2s;
}
.signup-form input:focus { outline: 0; border-color: var(--p1); background: rgba(0, 0, 0, 0.4); }
.signup-result { text-align: left; margin-top: 24px; }
.signup-result h3 { margin: 0 0 8px; }
.key-row { display: flex; gap: 10px; align-items: center; background: rgba(0, 0, 0, 0.4); padding: 10px 14px; border-radius: 12px; margin: 10px 0; }
.kr-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); flex: 0 0 80px; }
.key-row code { flex: 1; font-family: "JetBrains Mono", monospace; font-size: 12px; word-break: break-all; }
.connect { padding-left: 22px; color: var(--mut); margin: 18px 0; }
.connect li { margin: 6px 0; }
.connect b { color: var(--fg); }
.mut { color: var(--mut); }
.mut a, a.mut { color: var(--p1); }

/* ---------- Install ---------- */
.install-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.install-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
}
.install-card.featured { border-color: rgba(109, 93, 252, 0.4); }
.ic-badge {
  position: absolute; top: 18px; right: 18px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px;
}
.ic-badge.live { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.ic-badge.soon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.install-card h3 { margin: 0 0 12px; }
.install-card ol { padding-left: 20px; color: var(--mut); margin: 0 0 20px; }
.install-card ol li { margin: 6px 0; }
.install-card a { color: var(--p1); }
.install-card code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 90px 24px; }
.cta-card {
  text-align: center;
  padding: 70px 40px;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--line-bright);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cta-card::before { width: 360px; height: 360px; background: rgba(109, 93, 252, 0.4); top: -120px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.cta-card::after { width: 320px; height: 320px; background: rgba(34, 211, 238, 0.3); bottom: -120px; right: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.cta-card h2 { font-size: clamp(28px, 3.5vw, 44px); margin: 0 0 12px; position: relative; z-index: 1; }
.cta-card p { color: var(--mut); font-size: 17px; margin: 0 0 28px; position: relative; z-index: 1; }
.cta-card .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer { padding: 60px 24px 30px; border-top: 1px solid var(--line); }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 30px;
}
.foot-brand p { color: var(--mut); margin: 14px 0 0; max-width: 280px; }
.foot-grid h5 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); }
.foot-grid a { display: block; padding: 5px 0; color: var(--mut); font-size: 14px; transition: color 0.2s; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--mut); font-size: 13px;
}
.status-dot { display: inline-block; width: 8px; height: 8px; background: #10b981; border-radius: 50%; margin: 0 4px; box-shadow: 0 0 10px #10b981; animation: pulseDot 2s infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .window { transform: none; }
  .float-card { display: none; }
  .stat-grid, .feat-grid, .testi-grid, .plans, .install-cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 110px 16px 60px; }
  section.container { padding: 70px 16px; }
  .nav-cta .btn.ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
