/* ============ Tokens ============ */
:root {
  --bg: #eef1fb;
  --bg-2: #f6f7fd;
  --ink: #12142b;
  --ink-2: #3c4063;
  --muted: #6b7093;
  --line: rgba(18, 20, 43, 0.08);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 40px -12px rgba(60, 50, 140, 0.22), 0 2px 6px rgba(60, 50, 140, 0.05);
  --shadow-lg: 0 30px 80px -20px rgba(60, 50, 140, 0.35);

  --violet: #7c5cff;
  --violet-soft: #e9e3ff;
  --sky: #22a8ee;
  --sky-soft: #dcf1ff;
  --mint: #14c39a;
  --mint-soft: #d8f7ec;
  --amber: #f5a524;
  --amber-soft: #fff0d6;
  --rose: #ff5c8a;
  --rose-soft: #ffe1ea;
  --green: #18b97a;
  --red: #f0466b;
  --slate: #8a8fb0;

  --grad: linear-gradient(120deg, #7c5cff 0%, #c25cff 35%, #22d3ee 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --_auto-dark: 1; }
}
:root[data-theme="dark"] {
  --bg: #0b0c1a;
  --bg-2: #11132a;
  --ink: #eef0ff;
  --ink-2: #c3c6e6;
  --muted: #8d91b8;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(28, 30, 60, 0.55);
  --glass-strong: rgba(30, 32, 64, 0.85);
  --glass-border: rgba(255, 255, 255, 0.09);
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --violet-soft: rgba(124, 92, 255, 0.18);
  --sky-soft: rgba(34, 168, 238, 0.16);
  --mint-soft: rgba(20, 195, 154, 0.16);
  --amber-soft: rgba(245, 165, 36, 0.16);
  --rose-soft: rgba(255, 92, 138, 0.16);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
::selection { background: var(--violet); color: #fff; }

.grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ============ Ambient background ============ */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; filter: blur(70px) saturate(130%); transform: translateZ(0); will-change: transform; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; opacity: .55; mix-blend-mode: multiply; animation: drift 22s ease-in-out infinite; }
[data-theme="dark"] .blob { mix-blend-mode: screen; opacity: .28; }
.b1 { width: 46vw; height: 46vw; background: #b9a6ff; top: -10vw; left: -8vw; }
.b2 { width: 40vw; height: 40vw; background: #9fe3ff; top: 10vh; right: -10vw; animation-delay: -6s; animation-duration: 26s; }
.b3 { width: 38vw; height: 38vw; background: #b8f3d9; bottom: -12vw; left: 20vw; animation-delay: -12s; animation-duration: 30s; }
.b4 { width: 30vw; height: 30vw; background: #ffd0e0; top: 45vh; left: 45vw; animation-delay: -3s; animation-duration: 24s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1) rotate(0); }
  33% { transform: translate(6vw, 4vh) scale(1.12) rotate(40deg); }
  66% { transform: translate(-4vw, 6vh) scale(.92) rotate(-30deg); }
}
#particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 30% { transform: translate(-5%, 3%); } 60% { transform: translate(4%, -6%); } }
.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(124,92,255,.18), transparent 60%);
  left: -260px; top: -260px; transform: translate3d(-999px, -999px, 0); will-change: transform; transition: opacity .3s;
}
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; background: var(--grad); z-index: 200; box-shadow: 0 0 12px rgba(124,92,255,.6); }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--bg); transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-mark svg, .pl-mark { shape-rendering: geometricPrecision; }
.pl-logo { display: grid; justify-items: center; gap: 18px; }
.pl-mark { width: 150px; height: 150px; display: block; overflow: visible; filter: drop-shadow(0 22px 44px rgba(99,70,229,.45)); }
.pl-mark.flying { will-change: transform; } /* only cache as a layer while it moves */
/* draw timeline: squircle pops in -> ring traces -> tail -> sparkle (~2.3s total) */
.pl-mark > path:nth-of-type(-n+2) { transform-origin: 32px 32px; transform: scale(.6); opacity: 0; animation: plIn .7s var(--spring) forwards; }
.pl-ring { stroke-dasharray: 79; stroke-dashoffset: 79; transform-origin: 29px 30px; transform: rotate(-90deg); animation: plDraw 1.1s cubic-bezier(.65,0,.35,1) forwards .35s; }
.pl-tail { stroke-dasharray: 13; stroke-dashoffset: 13; animation: plDraw .45s var(--ease) forwards 1.35s; }
.pl-spark { transform-box: view-box; transform-origin: 46.5px 16px; transform: scale(0) rotate(-90deg); animation: sparkPop .7s var(--spring) forwards 1.65s; }
/* once popped, drop the animation so the star is painted as plain vector like the magnifier */
.pl-spark.settled { animation: none; transform: none; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plPop { from { transform: scale(.9) rotate(-6deg); } to { transform: scale(1.05) rotate(6deg); } }
@keyframes plIn { to { transform: none; opacity: 1; } }
@keyframes sparkPop { to { transform: scale(1) rotate(0); } }
.pl-word { font-weight: 800; font-size: 2rem; letter-spacing: -.055em; opacity: 0; transform: translateY(8px); animation: plWord .6s var(--ease) forwards 1.8s; }
@keyframes plWord { to { opacity: 1; transform: none; } }
.pl-word, .pl-bar { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.preloader { transition: background-color .9s var(--ease), opacity .6s var(--ease), visibility .6s; }
.preloader.leaving { background-color: transparent; pointer-events: none; }
.preloader.leaving .pl-word, .preloader.leaving .pl-bar { opacity: 0; transform: translateY(10px); animation: none; }
@keyframes brandLand { 0% { transform: scale(1.18); } 60% { transform: scale(.94); } 100% { transform: none; } }
.brand-mark.landed { animation: brandLand .5s var(--spring); }
.pl-bar { width: 160px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: plBar 1s ease-in-out infinite; }
@keyframes plBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ============ Glass ============ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.6);
  border-radius: var(--radius);
}
[data-theme="dark"] .glass { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); }

/* ============ Buttons ============ */
.btn {
  --pad: 14px 24px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: var(--pad);
  border-radius: 999px; font-weight: 700; font-size: .95rem; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.sm { --pad: 9px 16px; font-size: .85rem; }
.btn-primary { color: #fff; background: var(--grad); background-size: 200% 200%; animation: gradShift 6s ease infinite; box-shadow: 0 12px 30px -8px rgba(124,92,255,.6); }
.btn-primary:hover { box-shadow: 0 18px 40px -8px rgba(124,92,255,.75); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(124,92,255,.4); box-shadow: 0 8px 24px -10px rgba(124,92,255,.5); }
.btn:active { transform: scale(.96); }
.shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.55); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); transition: transform .3s var(--spring); }
.icon-btn:hover { transform: rotate(-10deg) scale(1.06); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; z-index: 100;
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  /* own compositor layer + only paint-cheap properties transition => no flicker while scrolling */
  transform: translateZ(0); backface-visibility: hidden; contain: layout style;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  animation: navIn .9s var(--ease) backwards .3s;
}
@keyframes navIn { from { transform: translate3d(0, -140%, 0); opacity: 0; } }
.nav.scrolled { background: var(--glass-strong); box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark { font-weight: 800; font-size: 1.32rem; letter-spacing: -.055em; line-height: 1; padding-bottom: 2px; }
.brand-mark { width: 36px; height: 36px; display: block; transition: transform .6s var(--spring), filter .4s; filter: drop-shadow(0 6px 14px rgba(99,70,229,.35)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.sm { width: 28px; height: 28px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 10px 20px rgba(99,70,229,.55)); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: color .25s, background .25s; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .3s var(--ease), left .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(124,92,255,.08); }
.nav-links a:hover::after, .nav-links a.active::after { width: 40%; left: 30%; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.team { position: relative; }
#teamToggle[aria-expanded="true"] { background: var(--violet); color: #fff; border-color: transparent; transform: none; box-shadow: 0 8px 20px -8px rgba(124,92,255,.7); }
.team-menu {
  position: absolute; top: calc(100% + 14px); right: -4px; width: 290px; padding: 14px; border-radius: 18px; z-index: 120;
  background: var(--glass-strong); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  transform-origin: calc(100% - 24px) -8px; transform: translateY(-8px) scale(.92); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .45s var(--spring), opacity .25s var(--ease), visibility 0s linear .45s;
}
.team-menu::before { content: ""; position: absolute; top: -7px; right: 18px; width: 14px; height: 14px; background: inherit; border-left: 1px solid var(--glass-border); border-top: 1px solid var(--glass-border); border-radius: 3px 0 0 0; transform: rotate(45deg); }
.team.open .team-menu { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .45s var(--spring), opacity .25s var(--ease), visibility 0s; }
.team-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.team-head .eyebrow { font-size: .68rem; padding: 4px 10px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .45s var(--spring), border-color .25s, background .25s; }
.team.open .team-list li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .08s), calc(.08s + var(--i) * .08s), 0s, 0s; }
.team-list li:hover { border-color: rgba(124,92,255,.35); background: var(--violet-soft); }
.team-list b { display: block; font-size: .92rem; letter-spacing: -.01em; }
.team-list small { color: var(--muted); font-size: .76rem; }
.team-list code { font-family: "JetBrains Mono", monospace; font-weight: 600; color: var(--violet); letter-spacing: .02em; }
.avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f46e5, #8b5cf6); box-shadow: 0 6px 14px -6px rgba(99,70,229,.6); }
.avatar.a2 { background: linear-gradient(135deg, #8b5cf6, #06b6d4); }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh; width: min(1180px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  padding: 120px 0 60px; position: relative;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); font-size: .82rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow);
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(20,195,154,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(20,195,154,0); } 100% { box-shadow: 0 0 0 0 rgba(20,195,154,0); } }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; margin: 22px 0 20px; letter-spacing: -0.04em; }
/* own line + fixed height so changing word lengths never reflow the hero */
.typer { display: flex; align-items: center; height: 1.12em; color: var(--ink); white-space: nowrap; }
.caret { display: inline-block; flex-shrink: 0; width: 4px; height: .9em; margin-left: 6px; background: var(--violet); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; perspective: 1200px; transform-style: preserve-3d; }
.mock { position: relative; z-index: 1; padding: 0; overflow: hidden; transform: rotateY(-8deg) rotateX(6deg); box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff6b81; } .dot.y { background: #ffc34d; } .dot.g { background: #3fd99a; }
.mock-title { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: .72rem; color: var(--muted); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk { background: var(--glass-strong); border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); }
.mk small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.mk b { font-size: 1.4rem; font-weight: 800; }
.pos { color: var(--green); } .neu { color: var(--slate); } .neg { color: var(--red); }
.mock-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.mock-card { background: var(--glass-strong); border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.donut-wrap { position: relative; display: grid; place-items: center; }
.donut { width: 110px; height: 110px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5; }
.donut .ring { stroke: var(--line); }
.donut .seg { stroke-linecap: round; stroke-dasharray: 0 100; animation: seg 1.6s var(--ease) forwards 1.2s; }
.donut .s1 { stroke: var(--green); --d: 66 34; --o: 0; }
.donut .s2 { stroke: var(--slate); --d: 17 83; stroke-dashoffset: -68; }
.donut .s3 { stroke: var(--red); --d: 11 89; stroke-dashoffset: -87; }
@keyframes seg { to { stroke-dasharray: var(--d); } }
.donut-center { position: absolute; text-align: center; line-height: 1; }
.donut-center b { font-size: 1.4rem; display: block; }
.donut-center small { font-size: .65rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 134px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--violet), #b49cff); transform-origin: bottom; animation: barUp 1.2s var(--spring) both, barWave 3s ease-in-out infinite 2.4s; }
.bars i:nth-child(2n) { background: linear-gradient(180deg, var(--sky), #9fe3ff); }
.bars i:nth-child(3n) { background: linear-gradient(180deg, var(--mint), #b8f3d9); }
.bars i:nth-child(1) { animation-delay: 1s, 2.4s; } .bars i:nth-child(2) { animation-delay: 1.1s, 2.6s; } .bars i:nth-child(3) { animation-delay: 1.2s, 2.8s; }
.bars i:nth-child(4) { animation-delay: 1.3s, 3s; } .bars i:nth-child(5) { animation-delay: 1.4s, 3.2s; } .bars i:nth-child(6) { animation-delay: 1.5s, 3.4s; } .bars i:nth-child(7) { animation-delay: 1.6s, 3.6s; }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes barWave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.75); } }
.line svg { width: 100%; height: 70px; display: block; }
.line .stroke { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2.4s var(--ease) forwards 1.4s; }
.line .area { opacity: 0; animation: fadeIn 1s forwards 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; font-style: normal; white-space: nowrap; }
.c-green { background: rgba(24,185,122,.14); color: var(--green); }
.c-blue { background: rgba(34,168,238,.14); color: var(--sky); }
.c-red { background: rgba(240,70,107,.14); color: var(--red); }
.c-amber { background: rgba(245,165,36,.16); color: #d98b05; }
.c-gray { background: rgba(138,143,176,.16); color: var(--slate); }
.c-violet { background: rgba(124,92,255,.14); color: var(--violet); }
.mock-chips .chip { animation: chipIn .6s var(--spring) both; }
.mock-chips .chip:nth-child(1) { animation-delay: 2s; } .mock-chips .chip:nth-child(2) { animation-delay: 2.15s; } .mock-chips .chip:nth-child(3) { animation-delay: 2.3s; } .mock-chips .chip:nth-child(4) { animation-delay: 2.45s; }
@keyframes chipIn { from { opacity: 0; transform: scale(.4) translateY(10px); } }

.float-card { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; font-size: .8rem; box-shadow: var(--shadow-lg); z-index: 3; }
.float-card b { display: block; font-size: .82rem; }
.float-card small { color: var(--muted); }
.float-card .emoji { font-size: 1.4rem; }
.fc1 { left: -40px; bottom: 60px; animation: floaty 6s ease-in-out infinite -2s, slideInL 1s var(--spring) both 1.8s; }
.fc2 { right: -24px; top: 30px; animation: floaty 5s ease-in-out infinite -1s, slideInR 1s var(--spring) both 2.1s; }
@keyframes slideInL { from { opacity: 0; transform: translateX(-40px) scale(.8); } }
@keyframes slideInR { from { opacity: 0; transform: translateX(40px) scale(.8); } }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--muted); opacity: .7; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheel 1.8s ease infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Marquee ============ */
.marquee-wrap { padding: 10px 0 30px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 10px 20px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); font-weight: 600; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 100px 0 40px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 14px; }
.section-head p { margin-top: 14px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Tilt */
[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease); position: relative; }
[data-tilt]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.45), transparent 45%);
}
[data-theme="dark"] [data-tilt]::before { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.22), transparent 45%); }
[data-tilt]:hover::before { opacity: 1; }
.hero-visual[data-tilt]::before { display: none; }
/* flatten so float cards stack by z-index instead of intersecting the tilted mock in 3D */
.hero-visual, .hero-visual[data-tilt] { transform-style: flat; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-line { position: absolute; top: 74px; left: 8%; width: 84%; height: 20px; z-index: -1; overflow: visible; }
.steps-line path { stroke: var(--violet); stroke-width: 2; stroke-dasharray: 8 8; fill: none; opacity: .5; animation: dash 1.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.step { padding: 28px 24px; overflow: hidden; }
.step::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(30px); top: -60px; right: -60px; transition: transform .6s var(--ease), opacity .4s; }
.step:hover::after { transform: scale(1.8); opacity: .22; }
.step-num { font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: .8rem; color: var(--accent); }
.step-icon { width: 76px; height: 76px; margin: 14px 0 18px; border-radius: 22px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); transition: transform .5s var(--spring); }
.step:hover .step-icon { transform: translateZ(40px) rotate(-8deg) scale(1.08); }
.step-icon svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step.in .step-icon svg * { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.6s var(--ease) forwards .3s; }
/* replayed when the cursor comes near; two identical keyframes so each flip restarts the animation */
.step.in .step-icon.redraw-a svg * { animation: drawA 1.2s var(--ease) both; }
.step.in .step-icon.redraw-b svg * { animation: drawB 1.2s var(--ease) both; }
.step.in .step-icon.redraw-a svg *:nth-child(2n), .step.in .step-icon.redraw-b svg *:nth-child(2n) { animation-delay: .12s; }
@keyframes drawA { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@keyframes drawB { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .93rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { padding: 28px; overflow: hidden; background: linear-gradient(160deg, var(--tint), var(--glass) 60%); }
.t-wide { grid-column: span 2; }
.tile-icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--glass-strong); box-shadow: var(--shadow); margin-bottom: 16px; transition: transform .5s var(--spring); }
.tile:hover .tile-icon { transform: translateZ(30px) scale(1.12) rotate(8deg); }
.tile h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: .95rem; max-width: 560px; }
.sent-demo { margin-top: 18px; display: grid; gap: 8px; }
.sd-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--glass-strong); font-size: .88rem; border: 1px solid var(--line); opacity: 0; transform: translateX(-20px); transition: all .6s var(--spring); }
.tile.in .sd-row { opacity: 1; transform: none; }
.tile.in .sd-row:nth-child(2) { transition-delay: .15s; } .tile.in .sd-row:nth-child(3) { transition-delay: .3s; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.topic-cloud span { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--glass-strong); border: 1px solid var(--line); animation: bob 3s ease-in-out infinite; }
.topic-cloud span:nth-child(2n) { animation-delay: -1s; } .topic-cloud span:nth-child(3n) { animation-delay: -2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.issue-bars { display: grid; gap: 8px; margin-top: 18px; }
.issue-bars div { position: relative; height: 30px; border-radius: 10px; background: var(--glass-strong); overflow: hidden; }
.issue-bars div::before { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, rgba(255,92,138,.35), rgba(255,92,138,.15)); transition: width 1.4s var(--ease); }
.tile.in .issue-bars div::before { width: var(--w); }
.issue-bars span { position: relative; padding-left: 12px; line-height: 30px; font-size: .8rem; font-weight: 700; }
.trend-demo { position: relative; margin-top: auto; padding-top: 18px; }
.mini-trend { width: 100%; height: auto; display: block; overflow: visible; }
.mini-trend .grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.mini-trend .line { fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 4px 8px rgba(20,195,154,.35)); }
.mini-trend .area { opacity: 0; }
.mini-trend .dot { fill: #fff; stroke: var(--mint); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.mini-trend .ring { fill: none; stroke: var(--mint); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mini-trend .labels text { font: 600 10px "JetBrains Mono", monospace; fill: var(--muted); text-anchor: middle; }
.mini-trend .labels text:first-child { text-anchor: start; } .mini-trend .labels text:last-child { text-anchor: end; }
.trend-badge { position: absolute; top: 0; right: 0; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; color: var(--green); background: var(--mint-soft); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease) 1.9s, transform .5s var(--spring) 1.9s; }
.tile.in .trend-badge { opacity: 1; transform: none; }
.tile.in .mini-trend .line { animation: draw 1.8s cubic-bezier(.65,0,.35,1) forwards .3s; }
.tile.in .mini-trend .area { animation: fadeIn .9s var(--ease) forwards 1.2s; }
.tile.in .mini-trend .dot { animation: dotPop .5s var(--spring) forwards 2s; }
.tile.in .mini-trend .ring { animation: ringPulse 2.2s ease-out infinite 2.4s; }
@keyframes dotPop { to { transform: scale(1); } }
@keyframes ringPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.tile { display: flex; flex-direction: column; }
.topic-share { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
.topic-share div { position: relative; display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--glass-strong); overflow: hidden; font-size: .8rem; font-weight: 700; }
.topic-share div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--c) 28%, transparent); transition: width 1.4s var(--ease); }
.tile.in .topic-share div::before { width: var(--w); }
.tile.in .topic-share div:nth-child(2)::before { transition-delay: .15s; } .tile.in .topic-share div:nth-child(3)::before { transition-delay: .3s; }
.topic-share span, .topic-share b { position: relative; }
.topic-share b { color: var(--c); font-family: "JetBrains Mono", monospace; }
.emo-meters { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
.emo-meters div { display: flex; align-items: center; gap: 10px; }
.emo-meters span { font-size: 1.2rem; width: 26px; animation: bob 3s ease-in-out infinite; }
.emo-meters div:nth-child(2) span { animation-delay: -.7s; } .emo-meters div:nth-child(3) span { animation-delay: -1.4s; } .emo-meters div:nth-child(4) span { animation-delay: -2.1s; }
.emo-meters i { flex: 1; height: 8px; border-radius: 6px; background: var(--glass-strong); position: relative; overflow: hidden; }
.emo-meters i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--c); transition: width 1.4s var(--ease); }
.tile.in .emo-meters i::before { width: var(--w); }
.tile.in .emo-meters div:nth-child(2) i::before { transition-delay: .12s; } .tile.in .emo-meters div:nth-child(3) i::before { transition-delay: .24s; } .tile.in .emo-meters div:nth-child(4) i::before { transition-delay: .36s; }
.export-demo { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 18px; }
.doc { position: relative; width: 64px; height: 80px; padding: 14px 10px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; align-content: start; gap: 7px; animation: floaty 5s ease-in-out infinite; }
.doc i { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--amber) 45%, transparent); }
.doc i.short { width: 60%; }
.doc .dl { position: absolute; right: -12px; bottom: -10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -4px rgba(124,92,255,.6); animation: dlBounce 1.8s ease-in-out infinite; }
@keyframes dlBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.export-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.export-chips .chip { font-size: .8rem; padding: 6px 12px; animation: bob 3s ease-in-out infinite; }
.export-chips .chip:nth-child(2) { animation-delay: -1s; } .export-chips .chip:nth-child(3) { animation-delay: -2s; }
.shield { position: absolute; right: 36px; bottom: 24px; width: 110px; height: 110px; display: grid; place-items: center; }
.shield b { font-size: 3rem; position: relative; z-index: 1; }
.shield span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); opacity: 0; animation: sonar 3s ease-out infinite; }
.shield span:nth-child(2) { animation-delay: 1s; } .shield span:nth-child(3) { animation-delay: 2s; }
@keyframes sonar { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* ============ Analyzer ============ */
.analyzer { position: relative; padding: 22px; overflow: hidden; }
.analyzer::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang, 0deg), #7c5cff, #22d3ee, #14c39a, #ff5c8a, #7c5cff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateAng 6s linear infinite; opacity: .7; pointer-events: none; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rotateAng { to { --ang: 360deg; } }
.tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: color .35s var(--ease); -webkit-tap-highlight-color: transparent; outline: none; }
.tab:not(.active):hover { color: var(--ink); }
.tab:focus-visible { box-shadow: 0 0 0 3px rgba(124,92,255,.35); }
.tab.active { color: #fff; }
.tab-indicator { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 12px; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(124,92,255,.6); pointer-events: none; will-change: transform, width; opacity: 0; }
.tabs.ready .tab-indicator { opacity: 1; transition: transform .45s cubic-bezier(.65,0,.35,1), width .45s cubic-bezier(.65,0,.35,1), height .45s cubic-bezier(.65,0,.35,1); }
.panel { display: none; animation: panelIn .5s var(--ease); }
.panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.field-label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 8px; color: var(--ink-2); }
textarea, input[type="search"], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
textarea:focus, input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding: 10px 44px 10px 14px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d91b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  transition: border-color .25s, box-shadow .25s, background-position .3s var(--spring);
}
select:hover { border-color: rgba(124,92,255,.35); }
select:focus, select:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select:active { background-position: right 14px calc(50% + 2px); }
select option { background: var(--bg-2); color: var(--ink); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.sample-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-btn { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--glass-strong); border: 1px solid var(--line); transition: transform .3s var(--spring), border-color .2s, background .2s; }
.chip-btn:hover { transform: translateY(-2px) scale(1.04); border-color: var(--violet); background: var(--violet-soft); }

.dropzone { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border-radius: var(--radius); border: 2px dashed rgba(124,92,255,.35); background: var(--glass-strong); cursor: pointer; text-align: center; transition: all .3s var(--ease); }
.dropzone:hover, .dropzone.over { border-color: var(--violet); background: var(--violet-soft); transform: scale(1.01); }
.dropzone.over .dz-icon { transform: translateY(-8px) scale(1.15); }
.dz-icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 14px 30px -10px rgba(124,92,255,.6); transition: transform .4s var(--spring); animation: floaty 4s ease-in-out infinite; }
.dz-icon svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.file-meta { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--line); animation: panelIn .5s var(--ease); }
.fm-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fm-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fm-cols label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }

.yt-dot { display: inline-block; width: 16px; height: 11px; border-radius: 3.5px; background: #ff0033; position: relative; vertical-align: -1px; margin-right: 2px; }
.yt-dot::after { content: ""; position: absolute; left: 6px; top: 3px; border-left: 5px solid #fff; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }
.yt-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.yt-input:focus-within { border-color: #ff0033; box-shadow: 0 0 0 4px rgba(255,0,51,.12); }
.yt-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; padding: 10px 0; box-shadow: none; }
.yt-logo { width: 28px; height: 20px; flex-shrink: 0; transition: transform .4s var(--spring); }
.yt-input:focus-within .yt-logo { transform: scale(1.12); }
.yt-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.yt-options label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.yt-preview { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 12px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--line); animation: panelIn .5s var(--ease); }
.yt-thumb { position: relative; flex-shrink: 0; width: 176px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--line); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.yt-preview:hover .yt-thumb img { transform: scale(1.06); }
.yt-play { position: absolute; inset: 0; margin: auto; width: 42px; height: 30px; border-radius: 9px; background: rgba(255,0,51,.92); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.yt-play::after { content: ""; position: absolute; left: 17px; top: 9px; border-left: 11px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.yt-meta { display: grid; gap: 4px; min-width: 0; }
.yt-meta b { font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.yt-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: .86rem; font-weight: 600; background: var(--rose-soft); color: var(--red); animation: panelIn .4s var(--ease); }
.yt-msg.info { background: var(--sky-soft); color: var(--sky); }
.yt-note { margin-top: 12px; }
.yt-loading .yt-meta b { background: linear-gradient(90deg, var(--line), rgba(124,92,255,.15), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; color: transparent; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.manual-form { display: grid; gap: 14px; }
.manual-form > label, .mf-grid label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stars { display: flex; gap: 4px; padding: 6px 0; }
.stars button { font-size: 1.7rem; line-height: 1; color: var(--line); filter: grayscale(1); transition: transform .3s var(--spring), color .2s; color: #c9cbe0; }
.stars button:hover { transform: scale(1.3) rotate(-10deg); }
.stars button.on { color: #ffbf2e; filter: none; text-shadow: 0 0 12px rgba(255,191,46,.6); }
.live-sent { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--line); }
.ls-face { font-size: 1.6rem; transition: transform .4s var(--spring); }
.live-sent.bump .ls-face { transform: scale(1.3) rotate(10deg); }
.ls-meter { flex: 1; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--red), #c9cbe0 50%, var(--green)); position: relative; }
.ls-meter i { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%, -50%); transition: left .5s var(--spring); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ls-label { font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 160px; text-align: right; }
.manual-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 240px; overflow: auto; }
.manual-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); font-size: .88rem; animation: chipIn .5s var(--spring); }
.manual-list li p { flex: 1; }
.manual-list li button { color: var(--muted); font-size: 1rem; padding: 2px 6px; border-radius: 8px; }
.manual-list li button:hover { color: var(--red); background: var(--rose-soft); }

.analyze-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

.processing { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: inherit; animation: fadeIn .3s forwards; opacity: 0; }
.brain { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.brain span { font-size: 3rem; animation: plPop .8s ease-in-out infinite alternate; }
.brain .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--violet); animation: spin 1.2s linear infinite; }
.brain .r2 { inset: 12px; border-top-color: var(--sky); animation-duration: 1.6s; animation-direction: reverse; }
.brain .r3 { inset: 24px; border-top-color: var(--mint); animation-duration: 2s; }
.proc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.proc-steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .3s; }
.proc-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all .3s var(--spring); }
.proc-steps li.active { color: var(--ink); }
.proc-steps li.active::before { border-color: var(--violet); border-top-color: transparent; animation: spin .8s linear infinite; }
.proc-steps li.done { color: var(--green); }
.proc-steps li.done::before { background: var(--green) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12l4 4 8-8' stroke='white' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") center/12px no-repeat; border-color: var(--green); transform: scale(1.1); }
.proc-bar { width: 260px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.proc-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s var(--ease); }

/* ============ Results ============ */
.results { margin-top: 40px; display: grid; gap: 20px; }
.results.show > * { animation: resultIn .8s var(--ease) both; }
.results.show > *:nth-child(2) { animation-delay: .08s; } .results.show > *:nth-child(3) { animation-delay: .16s; } .results.show > *:nth-child(4) { animation-delay: .24s; }
.results.show > *:nth-child(5) { animation-delay: .32s; } .results.show > *:nth-child(6) { animation-delay: .4s; } .results.show > *:nth-child(7) { animation-delay: .48s; } .results.show > *:nth-child(8) { animation-delay: .56s; }
@keyframes resultIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.results-head h3 { font-size: 1.8rem; margin-top: 10px; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.kpi { padding: 18px; position: relative; overflow: hidden; transition: transform .4s var(--spring); }
.kpi:hover { transform: translateY(-6px); }
.kpi::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: var(--c); opacity: .15; filter: blur(20px); right: -30px; top: -30px; }
.kpi-icon { font-size: 1.4rem; }
.kpi small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; margin-top: 6px; }
.kpi b { font-size: 2rem; font-weight: 800; color: var(--c); letter-spacing: -.03em; }
.gauge { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.gauge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); background-size: 260px 100%; transition: width 1.6s var(--ease); }
.summary { padding: 24px; position: relative; overflow: hidden; }
.summary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(124,92,255,.08), rgba(34,211,238,.08)); pointer-events: none; }
.summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.ai-badge { padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--grad); background-size: 200% 200%; animation: gradShift 4s ease infinite; }
.typewriter { font-size: 1.05rem; color: var(--ink-2); min-height: 3em; }
.typewriter.typing::after { content: "▍"; color: var(--violet); animation: blink 1s steps(1) infinite; }
.takeaways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.takeaway { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); font-size: .88rem; animation: chipIn .6s var(--spring) both; }
.takeaway span { font-size: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { padding: 22px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h4 { font-size: 1.05rem; }
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 300px; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.issues li { position: relative; padding: 12px 14px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); overflow: hidden; animation: chipIn .6s var(--spring) both; }
.issues li .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(240,70,107,.16), rgba(240,70,107,.04)); transition: width 1.2s var(--ease); }
.issues.praise li .bar { background: linear-gradient(90deg, rgba(24,185,122,.18), rgba(24,185,122,.04)); }
.issues .row { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.issues b { font-size: .92rem; }
.issues .count { font-family: "JetBrains Mono", monospace; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--rose-soft); color: var(--red); }
.issues.praise .count { background: var(--mint-soft); color: var(--green); }
.issues q { position: relative; display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); font-style: italic; }
.empty { color: var(--muted); font-size: .9rem; padding: 12px; text-align: center; }
.wordcloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 280px; padding: 10px; }
.wordcloud span { font-weight: 800; line-height: 1.1; cursor: default; transition: transform .3s var(--spring); animation: wordIn .7s var(--spring) both; letter-spacing: -.02em; }
.wordcloud span:hover { transform: scale(1.25) rotate(-3deg); }
@keyframes wordIn { from { opacity: 0; transform: scale(0) rotate(-20deg); } }
.table-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-tools input { width: 220px; padding: 9px 14px; }
.table-tools select { width: auto; }
.seg-filter { display: flex; padding: 4px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--line); }
.seg-filter button { padding: 5px 10px; border-radius: 8px; font-size: .85rem; font-weight: 700; transition: background .2s; }
.seg-filter button.active { background: var(--violet); color: #fff; }
.table-wrap { overflow: auto; max-height: 520px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.fb-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fb-table th { position: sticky; top: 0; background: var(--glass-strong); backdrop-filter: blur(10px); text-align: left; padding: 12px 14px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); z-index: 1; }
.fb-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.fb-table tr { transition: background .2s; }
.fb-table tbody tr:hover { background: rgba(124,92,255,.06); }
.fb-table td:nth-child(2) { min-width: 300px; }
.fb-table .chip { margin: 0 4px 4px 0; }
.score-pill { font-family: "JetBrains Mono", monospace; font-weight: 600; }
.table-foot { margin-top: 10px; }
mark { background: rgba(255,191,46,.4); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ============ Why / CTA ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { padding: 26px; }
.why-check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--green), #6be3b2); box-shadow: 0 10px 20px -6px rgba(24,185,122,.6); margin-bottom: 16px; transition: transform .6s var(--spring); }
.why:hover .why-check { transform: rotate(360deg) scale(1.1); }
.why h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why p { color: var(--ink-2); font-size: .92rem; margin-bottom: 16px; }
.why-num { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta { margin-top: 70px; padding: 64px 24px; text-align: center; position: relative; overflow: hidden; display: grid; justify-items: center; gap: 14px; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; position: relative; }
.cta p, .cta .btn { position: relative; }
.cta-glow { position: absolute; width: 140%; height: 200%; left: -20%; top: -50%; background: conic-gradient(from 0deg, transparent, rgba(124,92,255,.25), transparent 30%, rgba(34,211,238,.25), transparent 60%); animation: spin 10s linear infinite; }

.footer { width: min(1180px, calc(100% - 32px)); margin: 60px auto 0; padding: 30px 0 28px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: center; margin-top: 26px; }
.bog-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .78rem; color: var(--muted); background: var(--glass-strong); border: 1px solid var(--line); transition: transform .35s var(--spring), border-color .3s, box-shadow .3s, color .3s; }
.bog-badge:hover { transform: translateY(-2px); color: var(--ink); border-color: rgba(1,66,253,.35); box-shadow: 0 10px 24px -12px rgba(1,66,253,.55); }
.bog-mark { height: 15px; width: auto; aspect-ratio: 276.2 / 202.5; display: block; transition: transform .5s var(--spring); }
/* wordmark box includes the g descender (baseline at 70.5/92.2), so nudge down to sit on the text baseline */
.bog-word { height: 16px; width: auto; aspect-ratio: 396 / 92.2; display: block; color: var(--ink); transform: translateY(2.5px); }
.bog-badge:hover .bog-mark { transform: rotate(-12deg) scale(1.15); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); padding: 12px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .9rem; z-index: 300; transition: transform .5s var(--spring); box-shadow: var(--shadow-lg); }
.toast.show { transform: translate(-50%, 0); }

/* confetti */
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 400; pointer-events: none; border-radius: 2px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: left; }
  .hero-visual { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile:last-child { grid-column: span 2; }
}
@media (max-width: 780px) {
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all .3s var(--ease); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .burger { display: flex; }
  .nav-actions .btn-dark { display: none; }
  .team { position: static; }
  .team-menu { top: calc(100% + 12px); left: 0; right: 0; width: auto; transform-origin: calc(100% - 128px) -8px; }
  .team-menu::before { right: 121px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide, .bento .tile:last-child { grid-column: auto; }
  .shield { display: none; }
  .grid-2, .fm-cols, .mf-grid { grid-template-columns: 1fr; }
  .yt-preview { flex-direction: column; align-items: stretch; }
  .yt-thumb { width: 100%; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .score-kpi { grid-column: span 2; }
  .float-card { display: none; }
  .mock { transform: none; }
  .table-tools input { width: 100%; }
  .ls-label { min-width: 0; }
}
@media (max-width: 520px) {
  .steps, .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .analyzer { padding: 16px; }
  .tabs { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .tab { padding: 8px 6px; font-size: .78rem; line-height: 1.25; text-align: center; }
  .analyze-bar .btn-primary { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
@media print {
  .aurora, #particles, .grain, .cursor-glow, .nav, .hero, .marquee-wrap, #how, #features, #why, .footer, .analyzer, .section-head, .results-actions, .scroll-progress { display: none !important; }
  #analyzer { padding: 0; }
  .glass { box-shadow: none; backdrop-filter: none; background: #fff; border: 1px solid #ddd; }
}

/* ============ Phone optimisation (≤780px only — laptop/desktop layout is untouched) ============ */
.carousel-dots { display: none; }
@media (max-width: 780px) {
  /* tighter vertical rhythm */
  .section { padding: 56px 0 12px; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 1.75rem; margin-top: 10px; }
  .section-head p { margin-top: 8px; font-size: .92rem; }
  .marquee-wrap { padding: 0 0 8px; }

  /* hero: no forced full-screen height, compact stats and preview */
  .hero { min-height: 0; padding: 104px 0 24px; gap: 26px; }
  .hero-title { font-size: 2.55rem; margin: 16px 0 14px; }
  .hero-sub { font-size: .98rem; }
  .hero-cta { margin: 22px 0 24px; gap: 10px; flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; white-space: nowrap; --pad: 14px 18px; }
  .hero-stats { gap: 0; justify-content: space-between; flex-wrap: nowrap; }
  .hero-stats div { flex: 1; }
  .hero-stats b { font-size: 1.45rem; }
  .hero-stats span { font-size: .7rem; line-height: 1.3; padding-right: 6px; }
  .hero-visual { margin-top: 0; }
  .mock-body { padding: 12px; gap: 10px; }
  .mock-card.line, .mock-chips { display: none; }
  .bars { height: 96px; }
  .donut { width: 84px; height: 84px; }
  .scroll-hint { display: none; }

  /* card sections become swipeable carousels */
  .steps, .bento, .why-grid {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -16px; padding: 6px 16px 10px; scroll-padding: 0 16px;
  }
  .steps::-webkit-scrollbar, .bento::-webkit-scrollbar, .why-grid::-webkit-scrollbar { display: none; }
  .steps > *, .bento > *, .why-grid > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  .bento .tile, .bento .t-wide, .bento .tile:last-child { grid-column: auto; }
  .step { padding: 22px 20px; }
  .step-icon { width: 60px; height: 60px; margin: 10px 0 14px; border-radius: 18px; }
  .step-icon svg { width: 34px; height: 34px; }
  .tile { padding: 22px 20px; }
  .tile h3 { font-size: 1.15rem; }
  .tile p { font-size: .9rem; }
  .tile-icon { width: 48px; height: 48px; font-size: 1.6rem; margin-bottom: 12px; border-radius: 14px; }
  .why { padding: 22px 20px; }
  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .carousel-dots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; background: var(--line); border: 0; transition: width .35s var(--spring), background .3s; }
  .carousel-dots button.on { width: 22px; background: var(--violet); }
  [data-theme="dark"] .carousel-dots button:not(.on) { background: rgba(255,255,255,.18); }

  /* analyzer + results */
  .analyzer { padding: 16px; }
  #pasteInput { min-height: 150px; height: 170px; }
  .dropzone { padding: 30px 16px; }
  .results { margin-top: 26px; gap: 14px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 1.6rem; }
  .card { padding: 16px; }
  .chart-box, .chart-box.tall { height: 230px; }
  .wordcloud { min-height: 200px; }
  .table-wrap { max-height: 420px; }

  /* CTA + footer */
  .cta { margin-top: 36px; padding: 40px 20px; }
  .footer { margin-top: 32px; padding: 22px 0 22px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-bottom { margin-top: 18px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 2.3rem; }
  .steps > *, .bento > *, .why-grid > * { flex-basis: 86%; }
}
