/* =========================================================
   PromptLab — site styles
   ========================================================= */
:root {
  --bg: #06081A;
  --bg2: #0B0F2C;
  --surface: rgba(19, 24, 58, .55);
  --surface-solid: #11163A;
  --surface2: #171E4A;
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .13);
  --text: #F6F7FF;
  --muted: #A1A9D2;
  --dim: #666E96;
  --violet: #7C5CFF;
  --violet2: #A08CFF;
  --blue: #5B8CFF;
  --cyan: #22D3EE;
  --gold: #F5B941;
  --green: #34D399;
  --pink: #F472B6;
  --grad: linear-gradient(120deg, #7C5CFF 0%, #5B8CFF 50%, #22D3EE 100%);
  --radius: 22px;
  --max: 1180px;
  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(124, 92, 255, .45); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.015em; word-spacing: .06em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- announcement + nav ---------- */
#announce { background: var(--grad); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; font-weight: 500; }
#announce b { background: rgba(255,255,255,.2); padding: 1px 8px; border-radius: 6px; letter-spacing: .04em; }
nav { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); background: rgba(6, 8, 26, .68); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 18px rgba(124, 92, 255, .45); }
.nav-links { display: flex; gap: 6px; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav-links a { padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 15.5px; transition: transform .15s, box-shadow .25s, background .25s, border-color .2s; cursor: pointer; border: 0; white-space: nowrap; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 34px -8px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 48px -8px rgba(124, 92, 255, .85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255,255,255,.25); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 30px; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before { /* grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(100px); z-index: -2; pointer-events: none; }
.blob.b1 { width: 640px; height: 640px; background: #6B4BFF; opacity: .5; top: -280px; left: 50%; margin-left: -560px; animation: float1 16s ease-in-out infinite; }
.blob.b2 { width: 560px; height: 560px; background: #0FB5D9; opacity: .32; top: -200px; left: 50%; margin-left: 60px; animation: float2 18s ease-in-out infinite; }
.blob.b3 { width: 460px; height: 460px; background: #E04FA8; opacity: .16; top: 420px; left: 50%; margin-left: -140px; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,60px) scale(.94); } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-size: 14px; color: var(--muted); font-weight: 500; transition: border-color .2s, background .2s; }
.pill:hover { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.08); }
.pill b { background: var(--grad); color: #fff; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.04; font-weight: 800; margin: 28px auto 24px; max-width: 1000px; letter-spacing: -.025em; }
.lead { font-size: clamp(17px, 2vw, 20.5px); color: var(--muted); max-width: 660px; margin: 0 auto; }
.lead b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin: 38px 0 22px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { color: var(--green); }
.tools { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 13px; }
.tools span.t { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-weight: 600; font-size: 13px; }

/* animated gradient border helper */
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0deg, rgba(124,92,255,.9) 60deg, rgba(34,211,238,.9) 120deg, transparent 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }

/* app mockup */
.mock-wrap { position: relative; margin: 70px auto 0; max-width: 1060px; perspective: 1800px; }
.mock-wrap::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; background: radial-gradient(closest-side, rgba(124,92,255,.45), transparent); filter: blur(20px); z-index: -1; }
.mock { position: relative; display: grid; grid-template-columns: 230px 1fr; text-align: left; border-radius: 22px; background: rgba(11, 15, 40, .94); border: 1px solid var(--line2); box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .75); transform: rotateX(10deg) scale(.97); transform-origin: center top; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.mock-wrap.in .mock { transform: none; }
.mock > * { position: relative; z-index: 1; }
.mock-side { background: rgba(255,255,255,.022); border-right: 1px solid var(--line); padding: 18px 12px; border-radius: 22px 0 0 22px; }
.mock-side .ms-brand { display: flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 800; font-size: 15px; padding: 4px 8px 18px; }
.mock-side .ms-brand img { width: 26px; height: 26px; border-radius: 8px; }
.ms-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.ms-item img { width: 22px; height: 22px; border-radius: 6px; }
.ms-item.active { background: rgba(124, 92, 255, .16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(124,92,255,.32); }
.ms-item .cnt { margin-left: auto; font-size: 11px; color: var(--dim); font-weight: 600; }
.ms-label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 14px 10px 6px; }
.mock-main { padding: 22px 26px 26px; min-width: 0; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.crumbs { font-size: 13px; color: var(--dim); }
.crumbs b { color: var(--muted); font-weight: 600; }
.dots { display: flex; gap: 7px; } .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.mock-main h3 { font-size: 24px; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.chip.c { color: var(--cyan); border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.08); }
.code { font-family: "JetBrains Mono", Consolas, monospace; font-size: 13.5px; line-height: 1.75; color: #DDE3FF; background: rgba(0, 0, 0, .32); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; white-space: pre-wrap; word-break: break-word; }
.code .v { color: var(--cyan); background: rgba(34, 211, 238, .12); border-radius: 5px; padding: 1px 5px; }
.code .k { color: var(--violet2); }
.mock-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fake-btn { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 10px; background: var(--grad); color: #fff; }
.fake-btn.g { background: rgba(255,255,255,.06); border: 1px solid var(--line2); color: var(--text); }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(17, 22, 56, .9); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0,0,0,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: left; font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 14px; color: var(--text); }
.float span { color: var(--muted); }
.float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.float.f1 { top: 74px; right: -48px; } .float.f1 .ic { background: rgba(52,211,153,.16); color: var(--green); }
.float.f2 { bottom: -26px; right: 90px; animation-delay: -3s; } .float.f2 .ic { background: rgba(245,185,65,.16); color: var(--gold); }
.float.f3 { top: -34px; left: 36%; animation-delay: -1.5s; } .float.f3 .ic { background: rgba(124,92,255,.2); color: var(--violet2); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- marquee + stats ---------- */
.marquee { margin-top: 90px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { width: 320px; height: auto; aspect-ratio: 16/9; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
@keyframes scroll { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 56px auto 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); backdrop-filter: blur(8px); overflow: hidden; }
.stat { text-align: center; padding: 26px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 84px 0; position: relative; }
section.band { background: linear-gradient(180deg, transparent, rgba(124,92,255,.05) 20%, rgba(124,92,255,.05) 80%, transparent); }
.section-head { text-align: center; max-width: 920px; margin: 0 auto 50px; }
h1, h2, .section-head p, .lead { text-wrap: balance; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; margin: 16px 0 16px; font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 18.5px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); padding: 6px 14px; border-radius: 999px; background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.18); }

/* spotlight cards */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, .14), transparent 45%); }
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ---------- personas ---------- */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.persona { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .25s, transform .25s; }
.persona:hover { border-color: rgba(124,92,255,.4); transform: translateY(-3px); }
.persona .pi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.persona .pi svg { width: 22px; height: 22px; }
.persona h3 { font-size: 18px; margin-bottom: 6px; }
.persona p { color: var(--muted); font-size: 14.5px; }
.persona .ex { margin-top: 14px; font-size: 12.5px; color: var(--dim); font-family: "JetBrains Mono", monospace; }
.pi-pink { background: rgba(244,114,182,.14); color: var(--pink); }
.pi-violet { background: rgba(124,92,255,.18); color: var(--violet2); }
.pi-cyan { background: rgba(34,211,238,.13); color: var(--cyan); }
.pi-gold { background: rgba(245,185,65,.14); color: var(--gold); }

/* ---------- before / after ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.vs-card { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 16px; }
.vs-card.bad { opacity: .88; }
.vs-card.good { background: var(--surface-solid); box-shadow: 0 30px 80px -30px rgba(124,92,255,.55); border-color: transparent; }
.vs-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--head); font-size: 18px; }
.vs-label i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.bad .vs-label i { background: rgba(255, 95, 87, .15); color: #FF7A73; }
.good .vs-label i { background: rgba(52, 211, 153, .15); color: var(--green); }
.vs-sub { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 800; }
.vs .code { font-size: 13px; }
.out { font-size: 14.5px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px dashed var(--line2); border-radius: 14px; padding: 16px 18px; flex: 1; }
.out ol { padding-left: 20px; display: grid; gap: 7px; }
.good .out { color: #E3E7FF; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.04); }
.tl { font-size: 10.5px; font-weight: 800; color: var(--cyan); letter-spacing: .07em; margin-right: 6px; }
.vs-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }

/* ---------- demo ---------- */
.demo { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { font-size: 20px; margin-bottom: 4px; }
.panel > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { font-size: 11.5px; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.22); }
.field select option { background: var(--bg2); }
.demo-out { display: grid; gap: 16px; }
.ai { min-height: 250px; }
.ai-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.ai-head .av { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.ai ol { padding-left: 20px; display: grid; gap: 9px; font-size: 15px; color: #E3E7FF; }
.ai small { display: block; margin-top: 16px; color: var(--dim); font-size: 12.5px; }
.cursor { display: inline-block; width: 8px; height: 17px; background: var(--cyan); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 26px; padding: 30px; transition: border-color .25s, transform .25s; }
.tile:hover { border-color: rgba(124,92,255,.42); transform: translateY(-3px); }
.tile.s4 { grid-column: span 4; } .tile.s3 { grid-column: span 3; } .tile.s2 { grid-column: span 2; }
.tile .ti { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.tile h3 { font-size: 23px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag-cyan { background: rgba(34, 211, 238, .13); color: var(--cyan); }
.tag-violet { background: rgba(124, 92, 255, .18); color: var(--violet2); }
.tag-gold { background: rgba(245, 185, 65, .14); color: var(--gold); }
.tag-green { background: rgba(52, 211, 153, .14); color: var(--green); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cats span { font-size: 13px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #D5DAF5; font-weight: 500; transition: border-color .2s, color .2s; }
.cats span:hover { border-color: rgba(34,211,238,.4); color: #fff; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.thumbs img { border-radius: 12px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .3s; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.thumbs img:first-child { grid-column: span 2; }
.thumbs img:hover { transform: scale(1.04); }
.chain { margin-top: 20px; display: grid; gap: 8px; }
.chain div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #D5DAF5; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.chain b { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--gold); }
.big-num { font-family: var(--head); font-size: 72px; font-weight: 800; line-height: 1; margin: 4px 0 10px; letter-spacing: -.04em; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 52px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, rgba(124,92,255,.5), rgba(34,211,238,.5), transparent); z-index: 0; }
.step { padding: 30px; border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--line); position: relative; z-index: 1; text-align: center; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 14px; background: var(--grad); font-family: var(--head); font-weight: 800; font-size: 18px; box-shadow: 0 10px 26px -6px rgba(124,92,255,.7); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- pricing ---------- */
.toggle { display: flex; justify-content: center; margin-bottom: 50px; }
.toggle-inner { display: inline-flex; background: var(--surface-solid); border: 1px solid var(--line2); border-radius: 999px; padding: 5px; }
.toggle button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; padding: 10px 24px; border-radius: 999px; cursor: pointer; transition: color .2s; }
.toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -4px rgba(124,92,255,.6); }
.toggle .save { font-size: 11px; background: rgba(52, 211, 153, .18); color: var(--green); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.toggle button.active .save { background: rgba(255, 255, 255, .25); color: #fff; }
/* sliding pill (added by JS); without JS the active button keeps its own background */
.toggle-inner { position: relative; isolation: isolate; }
.toggle-pill { position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 6px 20px -4px rgba(124,92,255,.6); transition: transform .6s cubic-bezier(.65,0,.25,1), width .6s cubic-bezier(.65,0,.25,1); pointer-events: none; }
.toggle-inner.has-pill button.active { background: none; box-shadow: none; }
.toggle-inner.has-pill button { transition: color .4s ease .1s; }
.toggle-inner.has-pill button .save { transition: background .4s ease .1s, color .4s ease .1s; }
.toggle-inner.no-anim .toggle-pill { transition: none; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 28px; padding: 36px 30px 30px; display: flex; flex-direction: column; position: relative; transition: transform .25s, border-color .25s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line2); }
.plan.featured { background: linear-gradient(180deg, #161C4A, #0F1438); border-color: transparent; box-shadow: 0 30px 90px -20px rgba(124, 92, 255, .6); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; padding: 6px 14px; border-radius: 999px; white-space: nowrap; z-index: 2; }
.badge.b-violet { background: var(--grad); box-shadow: 0 6px 20px -4px rgba(124,92,255,.7); }
.badge.b-green { background: linear-gradient(120deg, #10B981, #22D3EE); box-shadow: 0 6px 20px -4px rgba(16,185,129,.6); }
.plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.plan-head img { width: 40px; height: 40px; border-radius: 12px; }
.plan h3 { font-size: 14.5px; letter-spacing: .16em; text-transform: uppercase; font-family: "Inter", sans-serif; font-weight: 800; }
.plan.starter h3 { color: var(--cyan); } .plan.pro h3 { color: var(--violet2); } .plan.elite h3 { color: var(--gold); }
.plan .desc { color: var(--muted); font-size: 15px; margin: 10px 0 22px; min-height: 46px; }
.price-top { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-bottom: 8px; }
.price-top s { color: var(--dim); font-size: 18px; font-weight: 600; text-decoration-color: rgba(255,107,107,.85); text-decoration-thickness: 2px; }
.price-top .save { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--green); background: rgba(52,211,153,.13); border: 1px solid rgba(52,211,153,.3); padding: 3px 9px; border-radius: 999px; }
.price-top .pt-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--head); font-size: 64px; font-weight: 800; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 16px; font-weight: 500; }
.price-note { font-size: 14px; color: var(--muted); min-height: 22px; margin: 12px 0 24px; font-weight: 500; }
.price-note em { font-style: normal; font-weight: 700; color: var(--gold); white-space: nowrap; }
.plan.starter .price b { background: linear-gradient(120deg, #fff 30%, #9BEAF7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan.pro .price b { background: linear-gradient(120deg, #fff 30%, #C9BCFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan.elite .price b { background: linear-gradient(120deg, #fff 30%, #FFE1A1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan hr { border: 0; height: 1px; background: var(--line); margin: 0 0 22px; }
.plan ul { list-style: none; display: grid; gap: 13px; margin-bottom: 28px; font-size: 15px; flex: 1; align-content: start; }
.plan li b { color: #fff; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: rgba(52, 211, 153, .16); color: var(--green); }
.plan li.dim { color: var(--dim); } .plan li.dim::before { content: "\2013"; background: rgba(255,255,255,.05); color: var(--dim); }
.plan .fine { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 12px; }
.free-strip { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-radius: 22px; background: linear-gradient(120deg, rgba(52,211,153,.09), rgba(34,211,238,.05)); border: 1px solid rgba(52, 211, 153, .28); flex-wrap: wrap; }
.free-strip .fs { display: flex; align-items: center; gap: 16px; }
.free-strip img { width: 46px; height: 46px; border-radius: 12px; }
.free-strip b { display: block; font-family: var(--head); font-size: 18px; }
.free-strip span { color: var(--muted); font-size: 15px; }
.trust { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--violet2); }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 56px; font-size: 15px; background: var(--surface-solid); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; font-weight: 700; }
.compare tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare th:first-child, .compare td:first-child { text-align: left; color: #D5DAF5; }
.compare thead th { background: var(--surface2); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare thead th.hl { color: var(--violet2); }
.compare td.hl { background: rgba(124,92,255,.07); }
.compare .y { color: var(--green); font-weight: 800; } .compare .n { color: #3E466B; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq-col { display: grid; gap: 14px; }
.faq details { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: border-color .3s, background .3s, box-shadow .4s, transform .25s; }
.faq details:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(0,0,0,.8); }
.faq details[open] { border-color: rgba(124,92,255,.45); background: rgba(124,92,255,.06); box-shadow: 0 18px 50px -22px rgba(124,92,255,.65); }
/* gradient accent bar grows down the left edge of the open item */
.faq details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.faq details[open]::before { transform: scaleY(1); }
.faq details.closing::before { transform: scaleY(0); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 17px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; color: #DCE1FA; transition: color .25s; }
.faq summary:hover, .faq details[open] summary { color: #fff; }
.faq summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
/* round icon: "+" whose vertical bar collapses into a "−" while spinning; fills with the gradient when open */
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--cyan);
  border: 1px solid rgba(34,211,238,.35); background-color: rgba(34,211,238,.06);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: center; background-size: 12px 2px, 2px 12px;
  transition: transform .5s cubic-bezier(.3,1.5,.5,1), background-size .35s ease, background-color .35s, border-color .35s, color .35s, box-shadow .35s;
}
.faq summary:hover::after { border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 4px rgba(34,211,238,.08); }
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 2px, 2px 0; color: #fff; background-color: var(--violet); border-color: transparent; box-shadow: 0 6px 18px -4px rgba(124,92,255,.8); }
.faq details.closing summary::after { transform: none; background-size: 12px 2px, 2px 12px; color: var(--cyan); background-color: rgba(34,211,238,.06); border-color: rgba(34,211,238,.35); box-shadow: none; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15.5px; }
.faq a { color: var(--cyan); }

/* ---------- final cta ---------- */
.final { position: relative; overflow: hidden; text-align: center; padding: 90px 30px; border-radius: 34px; background: var(--surface-solid); border: 1px solid var(--line2); isolation: isolate; }
.final::before { content: ""; position: absolute; inset: -40% -10% auto; height: 130%; background: radial-gradient(closest-side, rgba(124, 92, 255, .5), transparent); z-index: -1; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.final img.logo { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 18px 44px rgba(124,92,255,.55); }
.final h2 { font-size: clamp(32px, 4.8vw, 56px); margin-bottom: 14px; line-height: 1.06; letter-spacing: -.025em; }
.final p { color: var(--muted); margin-bottom: 32px; font-size: 18px; }
.final .hero-cta { margin: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 70px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-grid h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .about { max-width: 340px; }
.footer-grid .about p { margin-top: 14px; font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }

.mobile-cta { display: none; }

/* ---------- black friday ---------- */
#announce.is-bf { background: linear-gradient(90deg, #0B0B12, #2A1206 50%, #0B0B12); border-bottom: 1px solid rgba(245,185,65,.35); }
#announce.is-bf a { display: block; color: #FFE7B0; }
#announce.is-bf b { background: var(--gold); color: #1A1204; }
.bf[hidden] { display: none; }
.bf { max-width: 980px; margin: -18px auto 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 20px; border-radius: 20px; background: linear-gradient(120deg, rgba(245,185,65,.14), rgba(251,146,60,.08) 60%, rgba(124,92,255,.08)); border: 1px solid rgba(245,185,65,.4); box-shadow: 0 20px 60px -30px rgba(245,185,65,.6); }
.bf-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15.5px; color: #F3E8CF; }
.bf-l b { color: #fff; }
.bf-tag { font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #1A1204; background: linear-gradient(120deg, #F5B941, #FB923C); padding: 5px 10px; border-radius: 8px; }
.bf-code { font: inherit; font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 700; color: var(--gold); background: rgba(0,0,0,.3); border: 1px dashed rgba(245,185,65,.6); padding: 3px 10px; border-radius: 8px; cursor: pointer; margin-left: 4px; }
.bf-code:hover { background: rgba(245,185,65,.12); }
.bf-r { display: flex; align-items: center; gap: 14px; }
.bf-timer { display: flex; gap: 6px; }
.bf-timer span { min-width: 46px; text-align: center; font-size: 11px; color: var(--muted); background: rgba(0,0,0,.3); border: 1px solid var(--line2); border-radius: 10px; padding: 5px 6px; line-height: 1.1; }
.bf-timer b { display: block; font-family: var(--head); font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- keyboard focus ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }

/* ---------- mobile menu ---------- */
.menu-btn { display: none; width: 42px; height: 40px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; }
nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .menu-btn span:nth-child(2) { opacity: 0; }
nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
.pill-short { display: none; }

/* ---------- free prompt library ---------- */
.v-inline { font-family: "JetBrains Mono", monospace; font-size: .85em; color: var(--cyan); background: rgba(34,211,238,.12); padding: 1px 6px; border-radius: 6px; }
.lib { max-width: 940px; margin: 0 auto; }
.lib-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.lib-tabs button { font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line2); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .15s; }
.lib-tabs button:hover { color: var(--text); border-color: rgba(124,92,255,.5); transform: translateY(-1px); }
.lib-tabs button.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -8px rgba(124,92,255,.8); }
.lib-panel { background: var(--surface-solid); border-radius: 24px; padding: 28px; box-shadow: 0 40px 100px -40px rgba(124,92,255,.6); }
.lib-panel > * { position: relative; z-index: 1; }
.lib-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lib-top h3 { font-size: 24px; margin-top: 10px; }
.lib-top .btn.ok { background: linear-gradient(120deg, #10B981, #22D3EE); }
.lib .code { font-size: 14px; min-height: 150px; }
.lib-tip { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.lt-ic { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--gold); background: rgba(245,185,65,.14); padding: 3px 8px; border-radius: 6px; margin-top: 2px; }
.lib-more { max-width: 940px; margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.lib-more b { color: var(--text); }
.lib-more-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- community ---------- */
.community { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.comm-copy h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin: 16px 0 14px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.comm-copy > p { color: var(--muted); font-size: 17.5px; margin-bottom: 26px; }
.comm-list { list-style: none; display: grid; gap: 16px; margin-bottom: 30px; }
.comm-list li { padding-left: 34px; position: relative; }
.comm-list li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: rgba(124,92,255,.2); color: var(--violet2); }
.comm-list b { display: block; font-size: 16px; }
.comm-list span { color: var(--muted); font-size: 15px; }
.dc { display: grid; grid-template-columns: 190px 1fr; border-radius: 20px; overflow: hidden; background: #1E1F3A; border: 1px solid var(--line2); box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(124,92,255,.08); font-size: 14px; }
.dc-side { background: #17182F; padding: 14px 10px; }
.dc-server { display: flex; align-items: center; gap: 9px; font-weight: 800; font-family: var(--head); padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dc-server img { width: 24px; height: 24px; border-radius: 7px; }
.dc-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 800; padding: 12px 6px 4px; }
.dc-cat.pro { color: var(--violet2); } .dc-cat.elite { color: var(--gold); }
.dc-ch { color: var(--muted); padding: 5px 8px; border-radius: 7px; display: flex; gap: 7px; font-weight: 500; }
.dc-ch i { font-style: normal; color: var(--dim); }
.dc-ch.active { background: rgba(255,255,255,.07); color: var(--text); }
.dc-main { display: flex; flex-direction: column; min-width: 0; }
.dc-head { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dc-head i { font-style: normal; color: var(--dim); }
.dc-head span { color: var(--dim); font-weight: 400; font-size: 13px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-msg { display: flex; gap: 12px; padding: 20px 18px; flex: 1; }
.dc-av { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.dc-body { min-width: 0; flex: 1; }
.dc-name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dc-bot { font-size: 10px; font-weight: 800; background: #5865F2; color: #fff; padding: 1px 5px; border-radius: 4px; }
.dc-name time { color: var(--dim); font-size: 12px; font-weight: 400; margin-left: 4px; }
.dc-embed { margin-top: 8px; border-left: 4px solid var(--gold); background: rgba(0,0,0,.22); border-radius: 6px; padding: 12px 14px; display: grid; gap: 8px; }
.dc-embed code { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: #DDE3FF; background: rgba(0,0,0,.3); border-radius: 6px; padding: 10px; white-space: pre-wrap; line-height: 1.6; }
.dc-embed small { color: var(--muted); font-size: 13px; }
.dc-thread { margin-top: 10px; display: inline-flex; gap: 6px; font-size: 13px; color: var(--cyan); background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.2); padding: 5px 10px; border-radius: 8px; }
.dc-input { margin: 0 18px 18px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--dim); }

/* reveal */
/* content is visible by default; animation only when JS is running (html.anim) */
/* uses the individual translate/scale properties so it never fights the :hover transforms */
html.anim .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s cubic-bezier(.2,.8,.2,1), translate .8s cubic-bezier(.2,.8,.2,1), scale .8s cubic-bezier(.2,.8,.2,1), filter .8s ease, transform .25s, border-color .25s, background .2s; transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
html.anim .reveal.from-left { translate: -48px 0; }
html.anim .reveal.from-right { translate: 48px 0; }
html.anim .reveal.zoom { translate: 0 30px; scale: .94; filter: blur(6px); }
html.anim .reveal.in { opacity: 1; translate: none; scale: none; filter: none; }

/* =========================================================
   Motion layer (progressive: only when JS adds html.anim)
   ========================================================= */
/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(124,92,255,.8); pointer-events: none; }
/* nav condenses after scrolling */
nav { transition: background .3s, box-shadow .3s, border-color .3s; }
nav.scrolled { background: rgba(6, 8, 26, .86); box-shadow: 0 10px 40px -12px rgba(0,0,0,.7); border-bottom-color: rgba(124,92,255,.25); }

/* hero headline: words rise out of a blur */
html.anim h1.split .w { display: inline-block; opacity: 0; filter: blur(12px); translate: 0 .35em; animation: wordIn .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 75ms + .1s); }
html.anim h1.split .grad-text.w { animation: wordIn .9s cubic-bezier(.2,.8,.2,1) forwards, shimmer 8s ease-in-out infinite; animation-delay: calc(var(--i) * 75ms + .1s), 0s; }
@keyframes wordIn { to { opacity: 1; filter: blur(0); translate: 0 0; } }

/* pointer glow + scroll parallax in the hero */
.hero-glow { position: absolute; z-index: -1; width: 620px; height: 620px; left: 0; top: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(124,92,255,.22), transparent); translate: calc(var(--hx, 50vw) - 310px) calc(var(--hy, 200px) - 310px); transition: translate .5s cubic-bezier(.2,.8,.2,1), opacity .4s; opacity: 0; }
.hero:hover .hero-glow { opacity: 1; }
.hero .blob { translate: 0 calc(var(--sy, 0) * .35px); }
.hero .blob.b2 { translate: 0 calc(var(--sy, 0) * .2px); }

/* hero mockup follows the pointer once it has landed */
.mock-wrap.in .mock { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.mock-wrap.tracking .mock { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.mock-wrap .float.f1 { translate: 0 calc(var(--sy, 0) * -.12px); }
.mock-wrap .float.f2 { translate: 0 calc(var(--sy, 0) * -.06px); }
.mock .ms-item { transition: background .25s, color .25s, box-shadow .25s; }

/* shine sweep on primary buttons */
.btn-primary { overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%); translate: -120% 0; pointer-events: none; }
.btn-primary:hover::after { animation: shine .8s ease; }
.hero-cta .btn-primary::after, .mobile-cta .btn-primary::after { animation: shine 1.1s ease 1.6s, shine 1.1s ease 7s; }
.hero-cta .btn-primary:hover::after { animation: shine .8s ease; }
@keyframes shine { from { translate: -120% 0; } to { translate: 120% 0; } }

/* 3D tilt on cards (vars set by JS on fine pointers) */
.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.persona .pi { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.persona:hover .pi { transform: rotate(-8deg) scale(1.12); }
.tile .ti { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.tile:hover .ti { transform: translateY(-3px) rotate(4deg); }

/* staggered children once their card is revealed */
html.anim .reveal.in .cats span, html.anim .reveal.in .chain div, html.anim .plan.in li, html.anim .vs-card.in .out li, html.anim .reveal.in .thumbs img { animation: riseIn .6s cubic-bezier(.2,.8,.2,1) both; }
.cats span:nth-child(2), .chain div:nth-child(2), .plan li:nth-child(2), .out li:nth-child(2), .thumbs img:nth-child(2) { animation-delay: .07s !important; }
.cats span:nth-child(3), .chain div:nth-child(3), .plan li:nth-child(3), .out li:nth-child(3), .thumbs img:nth-child(3) { animation-delay: .14s !important; }
.cats span:nth-child(4), .chain div:nth-child(4), .plan li:nth-child(4) { animation-delay: .21s !important; }
.cats span:nth-child(5), .chain div:nth-child(5), .plan li:nth-child(5) { animation-delay: .28s !important; }
.cats span:nth-child(6), .plan li:nth-child(6) { animation-delay: .35s !important; }
.cats span:nth-child(7) { animation-delay: .42s !important; } .cats span:nth-child(8) { animation-delay: .49s !important; }
.cats span:nth-child(9) { animation-delay: .56s !important; } .cats span:nth-child(10) { animation-delay: .63s !important; }
html.anim .reveal.in .cats span:hover { animation: none; }
@keyframes riseIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }

/* "how it works" connector draws itself, numbers pop */
html.anim .steps::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
html.anim .steps.in::before { transform: scaleX(1); }
html.anim .step.in::before { animation: pop .6s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d, 0s) + .25s); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* pricing: values slide in when switching monthly / yearly */
.swap { animation: swapIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; translate: 0 10px; filter: blur(4px); } to { opacity: 1; translate: none; filter: none; } }
.plan.featured .badge { animation: badgePulse 2.8s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { box-shadow: 0 6px 20px -4px rgba(124,92,255,.7); } 50% { box-shadow: 0 6px 30px 2px rgba(124,92,255,.9); } }

/* faq: height is animated by JS (open + close); the answer text drifts in behind it */
html.anim .faq details.reveal { transition: opacity .8s cubic-bezier(.2,.8,.2,1), translate .8s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s, box-shadow .4s, transform .25s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s; }
.faq details[open] p { animation: faqIn .55s cubic-bezier(.2,.8,.2,1) .08s both; }
.faq details.closing p { animation: faqOut .25s ease both; }
@keyframes faqIn { from { opacity: 0; translate: 0 -10px; filter: blur(3px); } to { opacity: 1; translate: none; filter: none; } }
@keyframes faqOut { to { opacity: 0; translate: 0 -6px; } }

/* final CTA: floating logo with a pulse ring */
.final img.logo { animation: bob 5s ease-in-out infinite; }
.final .logo-ring { position: absolute; left: 50%; top: 90px; width: 76px; height: 76px; margin-left: -38px; border-radius: 22px; border: 2px solid rgba(124,92,255,.6); pointer-events: none; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

/* stat numbers glow when the count finishes */
.stat b.done { animation: statGlow 1s ease; }
@keyframes statGlow { 30% { filter: drop-shadow(0 0 14px rgba(124,92,255,.9)); scale: 1.08; } }

/* ---------- responsive ---------- */
@media (max-width: 1140px) { .float.f1 { right: -8px; } }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .float { display: none; }
  .personas { grid-template-columns: 1fr 1fr; }
  .vs, .demo { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.s4, .tile.s3, .tile.s2 { grid-column: span 2; }
  .tile.half { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 30px; }
  .steps { grid-template-columns: 1fr; } .steps::before { display: none; }
  .faq { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: #080B22; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); display: grid; gap: 2px; max-height: 0; overflow: hidden; padding: 0 24px; border-top: 1px solid transparent; transition: max-height .4s cubic-bezier(.2,.8,.2,1), padding .4s, border-color .3s; }
  .mobile-menu a:not(.btn) { padding: 12px 4px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
  .mobile-menu a:not(.btn):hover { color: var(--text); }
  .mobile-menu .btn { margin-top: 12px; }
  nav.open .mobile-menu { max-height: 560px; padding: 8px 24px 20px; border-top-color: var(--line); }
  nav.open { background: rgba(6, 8, 26, .96); }
  .community { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 76px 0; }
  .hero { padding: 56px 0 20px; }
  .nav-cta .btn-ghost { display: none; }
  .hero-cta .btn { width: 100%; }
  .mock-main { padding: 18px 16px; }
  .mock-main h3 { font-size: 20px; }
  .code { font-size: 12.5px; padding: 14px; }
  .marquee { margin-top: 60px; }
  .marquee img { width: 230px; }
  .personas { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.s4, .tile.s3, .tile.s2, .tile.half { grid-column: span 1; }
  .tile { padding: 24px; }
  .thumbs { grid-template-columns: 1fr 1fr; }
  .free-strip { flex-direction: column; align-items: flex-start; }
  .free-strip .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .final { padding: 64px 20px; }
  .final .logo-ring { top: 64px; }
  .stat b { font-size: 32px; }
  .pill-long { display: none; } .pill-short { display: inline; }
  .mobile-menu, nav.open .mobile-menu { padding-left: 16px; padding-right: 16px; }
  .lib-panel { padding: 20px 16px; }
  .lib-top { flex-direction: column; }
  .lib-top .btn { width: 100%; }
  .lib-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 4px 16px; scrollbar-width: none; }
  .lib-tabs::-webkit-scrollbar { display: none; }
  .lib-tabs button { flex: none; }
  .lib-more, .lib-more-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .bf { margin-top: -10px; }
  .bf-r { width: 100%; flex-wrap: wrap; }
  .bf-timer { width: 100%; } .bf-timer span { flex: 1; }
  .bf-r .btn { width: 100%; }
  .dc { grid-template-columns: 1fr; }
  .dc-side { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; gap: 10px; padding: 10px; border-radius: 18px; background: rgba(12, 16, 42, .92); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.5); transform: translateY(150%); transition: transform .35s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; padding: 12px 10px; font-size: 14.5px; }
  footer { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.anim .reveal { opacity: 1; translate: none; scale: none; filter: none; }
  html.anim h1.split .w { opacity: 1; filter: none; translate: none; }
  html.anim .steps::before { transform: none; }
  .mock, .mock-wrap.in .mock, .tilt:hover { transform: none; }
  .hero-glow, .final .logo-ring, .progress { display: none; }
}
