/*
Theme Name: Aluna App
Description: ALUNA AI landing and studio shell for app.alunaschrift.com. Brand palette from alunaschrift.com.
Version: 2.0.3
Author: Aluna Schrift
Text Domain: aluna-app
*/

:root {
	--blue: #1d54d6;
	--violet: #5552cc;
	--indigo: #3b2fa8;
	--navy: #0a3e9c;
	--cyan: #00c3ff;
	--orange: #fc4b10;
	--amber: #fd9009;
	--ink: #11163a;
	--text: #3c4466;
	--muted: #69728a;
	--line: #dfe6f5;
	--soft: #f2f5fd;
	--bg: #f7f9ff;
	--card: #ffffff;
	--grad: linear-gradient(135deg, #1d54d6 0%, #5552cc 62%, #3b2fa8 100%);
	--grad-warm: linear-gradient(135deg, #fc4b10, #fd9009);
	--shadow-sm: 0 1px 2px rgba(17, 22, 58, .06), 0 4px 14px rgba(17, 22, 58, .06);
	--shadow-lg: 0 24px 60px -18px rgba(29, 84, 214, .35), 0 8px 24px rgba(17, 22, 58, .08);
	--radius: 18px;
	--wrap: 1200px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--head: "Red Hat Display", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 200; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: 10px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { flex: none; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(29, 84, 214, .6); }
.logo-type { display: grid; grid-template-columns: auto auto; column-gap: 5px; line-height: 1; font-family: var(--head); }
.logo-type b { font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.logo-type i { font-style: normal; font-weight: 900; font-size: 20px; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-type small { grid-column: 1 / -1; margin-top: 4px; font: 600 11px/1 "Red Hat Text", sans-serif; color: var(--muted); letter-spacing: .04em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(17, 22, 58, .2); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { text-decoration: none; flex: none; }
.cat-nav { flex: 1; display: flex; align-items: center; gap: 16px; }
.cat-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 1; }
.cat-nav ul a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px; transition: color .2s, background-color .2s; }
.cat-nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.cat-nav ul a:hover { color: var(--blue); }
.cat-nav ul a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1 "Red Hat Text", sans-serif; text-decoration: none; cursor: pointer; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 10px 24px -10px rgba(252, 75, 16, .8); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px -12px rgba(252, 75, 16, .9); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { color: var(--blue); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .35); }
.play-ico { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 100% 0, rgba(0, 195, 255, .45), transparent 50%), linear-gradient(145deg, #1d54d6, #5552cc 65%, #3b2fa8); padding: 72px 0 0; isolation: isolate; }
.hero-sub { padding-bottom: 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.3px, transparent 1.6px); background-size: 26px 26px; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 420px; height: 420px; left: -120px; top: 40%; background: #00c3ff; }
.o2 { width: 360px; height: 360px; right: 8%; top: -120px; background: #8b7bff; animation-duration: 22s; }
.o3 { width: 260px; height: 260px; right: 35%; bottom: -80px; background: #fd9009; opacity: .35; animation-duration: 26s; }
.mol { position: absolute; width: 90px; fill: rgba(255, 255, 255, .22); stroke: rgba(255, 255, 255, .35); stroke-width: 2; animation: float 9s ease-in-out infinite; }
.mol path { fill: none; }
.m1 { left: 4%; top: 14%; }
.m2 { left: 46%; top: 6%; width: 64px; animation-delay: -3s; }
.m3 { right: 3%; bottom: 22%; width: 110px; animation-delay: -6s; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.hero-copy h1 { color: #fff; margin: 18px 0 18px; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.03; font-weight: 900; letter-spacing: -.035em; }
.grad-text { background: linear-gradient(90deg, #ffd27a, #fd9009 45%, #ff7a45); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s linear infinite; }
.hero .lead { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.7vw, 19px); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; font-weight: 700; color: #fff; backdrop-filter: blur(6px); }
.pill i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.pill i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--amber); animation: ping 1.8s var(--ease) infinite; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { color: #7fe3ff; }
.hero-demo { position: relative; perspective: 1400px; }
.hero-demo .demo { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.float-card { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
.float-card b { font-family: var(--head); color: var(--ink); font-size: 16px; }
.float-card span { color: var(--muted); font-size: 12px; font-weight: 600; }
.fc1 { left: -28px; bottom: -26px; }
.fc2 { right: 28px; top: -30px; animation-delay: -3s; }
.marquee { margin-top: 64px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 20, 80, .18); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font: 700 15px var(--head); color: rgba(255, 255, 255, .8); white-space: nowrap; letter-spacing: .02em; }
.marquee-track span::before { content: "✦"; margin-right: 48px; color: var(--amber); }

/* ---------- Studio demo ---------- */
.demo { background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(10, 20, 80, .6), 0 0 0 1px rgba(255, 255, 255, .5); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f3f6fe; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dcef; }
.demo-bar i:nth-child(1) { background: #ff6b5b; } .demo-bar i:nth-child(2) { background: #ffbe3d; } .demo-bar i:nth-child(3) { background: #2fd07a; }
.demo-bar span { margin-left: 8px; }
.demo-bar b { margin-left: auto; font-size: 11px; letter-spacing: .1em; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.demo-bar b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: blink 1.2s steps(2) infinite; }
.demo-body { display: grid; grid-template-columns: .9fr 1.25fr; gap: 16px; padding: 16px; }
.demo-label { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo-input { min-height: 104px; padding: 10px 12px; margin-bottom: 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--ink); transition: border-color .3s; }
.demo[data-step="0"] .demo-input { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 84, 214, .12); }
.caret { display: inline-block; width: 2px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--blue); animation: blink 1s steps(2) infinite; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.demo-chips span { padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; transition: all .35s var(--ease); }
.demo:not([data-step="0"]) .demo-chips .pick { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: 0 6px 14px -6px rgba(29, 84, 214, .8); }
.demo-go { display: grid; place-items: center; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; transition: transform .2s, filter .3s; }
.demo[data-step="2"] .demo-go { transform: scale(.97); filter: brightness(1.15); }
.demo-progress { height: 6px; margin: 12px 0; border-radius: 6px; background: var(--soft); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--grad-warm); border-radius: inherit; transition: width 2.2s var(--ease); }
.demo[data-step="2"] .demo-progress i { width: 55%; }
.demo[data-step="3"] .demo-progress i, .demo[data-step="4"] .demo-progress i, .demo[data-step="5"] .demo-progress i, .demo[data-step="6"] .demo-progress i { width: 100%; }
.demo-steps { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; counter-reset: ds; }
.demo-steps li { counter-increment: ds; font-size: 11px; font-weight: 700; color: #a3abc2; transition: color .3s; }
.demo-steps li::before { content: counter(ds) " "; }
.demo[data-step="0"] .demo-steps li:nth-child(1),
.demo[data-step="1"] .demo-steps li:nth-child(-n+2),
.demo[data-step="2"] .demo-steps li:nth-child(-n+3), .demo[data-step="3"] .demo-steps li:nth-child(-n+3), .demo[data-step="4"] .demo-steps li:nth-child(-n+3),
.demo[data-step="5"] .demo-steps li:nth-child(-n+4),
.demo[data-step="6"] .demo-steps li { color: var(--blue); }
.demo-canvas { position: relative; border-radius: 14px; background: linear-gradient(180deg, #fbfcff, #f1f5ff); border: 1px solid var(--line); overflow: hidden; }
.fig { display: block; width: 100%; height: auto; }
.demo-scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, transparent, rgba(0, 195, 255, .18), transparent); opacity: 0; }
.demo[data-step="2"] .demo-scan { opacity: 1; animation: scan 1.3s linear infinite; }

/* Figure build states */
.fig g { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.f-membrane, .f-receptor, .f-cascade, .f-nucleus, .f-labels, .f-ligand, .f-toast { opacity: 0; }
.f-membrane { transform: translateY(-10px); }
.f-ligand { transform: translateY(-30px); }
.f-toast { transform: translateY(16px); }
.demo[data-step="3"] .f-membrane, .demo[data-step="4"] .f-membrane, .demo[data-step="5"] .f-membrane, .demo[data-step="6"] .f-membrane { opacity: 1; transform: none; }
.demo[data-step="3"] .f-receptor, .demo[data-step="4"] .f-receptor, .demo[data-step="5"] .f-receptor, .demo[data-step="6"] .f-receptor { opacity: 1; transition-delay: .3s; }
.demo[data-step="3"] .f-ligand, .demo[data-step="4"] .f-ligand, .demo[data-step="5"] .f-ligand, .demo[data-step="6"] .f-ligand { opacity: 1; transform: translateY(14px); transition-delay: .6s; }
.demo[data-step="3"] .f-cascade, .demo[data-step="4"] .f-cascade, .demo[data-step="5"] .f-cascade, .demo[data-step="6"] .f-cascade { opacity: 1; transition-delay: .9s; }
.demo[data-step="3"] .f-nucleus, .demo[data-step="4"] .f-nucleus, .demo[data-step="5"] .f-nucleus, .demo[data-step="6"] .f-nucleus { opacity: 1; transition-delay: 1.6s; }
.demo[data-step="4"] .f-labels, .demo[data-step="5"] .f-labels, .demo[data-step="6"] .f-labels { opacity: 1; }
.demo[data-step="6"] .f-toast { opacity: 1; transform: none; }
.draw { fill: none; stroke: #3b2fa8; stroke-width: 2.5; stroke-dasharray: 80; stroke-dashoffset: 80; }
.demo[data-step="3"] .draw, .demo[data-step="4"] .draw, .demo[data-step="5"] .draw, .demo[data-step="6"] .draw { animation: dash .7s var(--ease) forwards; }
.d2 { animation-delay: .5s !important; } .d3 { animation-delay: .9s !important; } .d4 { animation-delay: 1.3s !important; }
.node rect { fill: #fff; stroke: #5552cc; stroke-width: 2; }
.node text, .f-toast text { font: 800 13px var(--head); fill: #3b2fa8; text-anchor: middle; }
.node { transform-box: fill-box; transform-origin: center; }
.demo[data-step="3"] .node { animation: pop .5s var(--ease) both; }
.demo[data-step="3"] .n2 { animation-delay: .5s; } .demo[data-step="3"] .n3 { animation-delay: .9s; } .demo[data-step="3"] .n4 { animation-delay: 1.4s; }
.n4 rect { fill: #fff3ec; stroke: var(--orange); }
.n4 text { fill: var(--orange); }
.dna { stroke-dasharray: 8 6; animation: flow 2.5s linear infinite; }
.pulse { transform-box: fill-box; transform-origin: center; animation: ring 1.6s var(--ease) infinite; }
.lbl { font: 700 12px "Red Hat Text", sans-serif; fill: var(--ink); }
.lbl-edit .new { display: none; }
.demo[data-step="5"] .lbl-edit, .demo[data-step="6"] .lbl-edit { fill: var(--blue); }
.demo[data-step="5"] .lbl-edit .old, .demo[data-step="6"] .lbl-edit .old { display: none; }
.demo[data-step="5"] .lbl-edit .new, .demo[data-step="6"] .lbl-edit .new { display: inline; }
.demo[data-step="5"] .lbl-edit { animation: flash 1s var(--ease); }
.f-toast rect { fill: #11163a; }
.f-toast text { fill: #fff; text-anchor: start; font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; font-weight: 900; text-wrap: balance; }
.section-head p { margin: 16px 0 0; font-size: 18px; color: var(--muted); }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #e9efff; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* How it works */
.how { background: #fff; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.js .steps:has(.step.in)::before, .steps.in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
.step:hover .step-ico { transform: translateY(-6px) rotate(-4deg); }
.step-ico em { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-warm); color: #fff; font: 800 12px var(--head); border: 3px solid #fff; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Features */
.features { background: radial-gradient(rgba(165, 183, 210, .35) 1.3px, transparent 1.6px) 0 0 / 26px 26px, linear-gradient(100deg, #fbfcff, #f1f5fd 55%, #e4ecfa); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.feat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c9d6f6; }
.feat:hover::after { transform: scaleX(1); }
.feat-ico, .cat-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(135deg, #e9efff, #efeaff); color: var(--blue); transition: transform .4s var(--ease), background .4s; }
.feat:hover .feat-ico, .cat-card:hover .cat-ico { transform: scale(1.08) rotate(-6deg); background: var(--grad); color: #fff; }
.feat h3 { margin: 0 0 8px; font-size: 20px; }
.feat p { margin: 0; color: var(--muted); }

/* Split + graphical abstracts */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split-copy h2 { margin: 14px 0 16px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 900; }
.split-copy p { font-size: 18px; color: var(--muted); }
.ga-section { background: #fff; }
.ticks { display: grid; gap: 12px; margin: 24px 0 30px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks svg { flex: none; margin-top: 2px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: #e9efff; color: var(--blue); }
.ga { padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.hero .ga { box-shadow: 0 40px 80px -30px rgba(10, 20, 80, .6); }
.ga-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ga-tag { padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ga-size { font-size: 12px; font-weight: 700; color: var(--muted); }
.ga-panels { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; }
.ga-p { margin: 0; padding: 14px 10px; border-radius: 16px; background: linear-gradient(180deg, #f7f9ff, #eef3ff); text-align: center; opacity: 0; transform: translateY(16px) scale(.96); }
.ga-p svg { width: 100%; height: auto; }
.ga-p figcaption { font-size: 12px; line-height: 1.35; color: var(--text); }
.ga-p figcaption b { display: block; margin-bottom: 2px; font: 800 13px var(--head); color: var(--ink); }
.ga-arrow { width: 34px; opacity: 0; }
.ga-arrow svg { display: block; width: 100%; }
.ga-arrow path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.ga.play .ga-p { animation: rise .7s var(--ease) forwards; }
.ga.play .p2 { animation-delay: 1.2s; } .ga.play .p3 { animation-delay: 2.4s; }
.ga.play .ga-arrow { animation: fadein .2s forwards; }
.ga.play .ga-arrow:nth-of-type(1) { animation-delay: .8s; } .ga.play .ga-arrow:nth-of-type(2) { animation-delay: 2s; }
.ga.play .ga-arrow:nth-of-type(1) path { animation: dash .6s var(--ease) .8s forwards; }
.ga.play .ga-arrow:nth-of-type(2) path { animation: dash .6s var(--ease) 2s forwards; }
.ga .cell { transform-box: fill-box; transform-origin: center; }
.ga.play .cell { animation: wobble 2.4s ease-in-out infinite; }
.ga.play .c2 { animation-delay: -.8s; } .ga.play .c3 { animation-delay: -1.6s; }
.ga .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.ga.play .bar { animation: grow .6s var(--ease) 1.5s forwards; }
.ga.play .b2 { animation-delay: 1.65s; } .ga.play .b3 { animation-delay: 1.8s; } .ga.play .b4 { animation-delay: 1.95s; }
.ga .check { stroke-dasharray: 70; stroke-dashoffset: 70; }
.ga.play .check { animation: dash .7s var(--ease) 2.9s forwards; }
.ga.static * { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }

/* Categories */
.cats { background: linear-gradient(160deg, #f6f9ff, #eef3fd); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { position: relative; display: grid; gap: 10px; align-content: start; min-height: 230px; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.cat-card::after { content: "→"; position: absolute; right: 26px; top: 30px; font: 800 22px var(--head); color: var(--blue); opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); }
a.cat-card:hover::after { opacity: 1; transform: none; }
.cat-card h3 { margin: 0; font-size: 20px; }
.cat-card p { margin: 0; color: var(--muted); }
.tag { justify-self: start; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag-live { background: #dcfce7; color: #166534; }
.tag-soon { background: var(--soft); color: var(--muted); }
.cat-card.is-soon { border-style: dashed; background: transparent; box-shadow: none; }

/* Studio (plugin output) */
.studio { background: #fff; }
.studio-shell { border-radius: 26px; padding: 8px; background: var(--grad); box-shadow: var(--shadow-lg); }
.studio-shell .aai { margin: 0 !important; padding: 0 !important; max-width: none; gap: 0; background: #fff; border-radius: 20px; overflow: hidden; }
.studio-shell .aai-hero:has([data-aai-demo]) { display: none; }
.studio-shell .aai-offer { display: none; }
.studio-shell .aai-note { margin: 0; padding: 28px; font-size: 17px; text-align: center; color: var(--ink); }

/* Pricing */
.pricing { position: relative; background: radial-gradient(circle at 85% 10%, rgba(0, 195, 255, .22), transparent 40%), linear-gradient(110deg, #0a3e9c, #1d54d6); color: #fff; overflow: hidden; isolation: isolate; }
.pricing .section-head h2 { color: #fff; }
.pricing .section-head p { color: rgba(255, 255, 255, .8); }
.pricing .eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }
.price-card { position: relative; max-width: 480px; margin: 0 auto; padding: 38px; border-radius: 28px; background: #fff; color: var(--text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5); }
.price-card::before { content: "Most popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: var(--grad-warm); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 8px 20px -8px rgba(252, 75, 16, .8); }
.price-card::after { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 30px; background: conic-gradient(from var(--a, 0deg), #00c3ff, #fd9009, #5552cc, #00c3ff); animation: spin 6s linear infinite; filter: blur(14px); opacity: .7; }
.price-name { font: 800 14px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.price { display: flex; align-items: flex-start; gap: 4px; margin: 10px 0 4px; color: var(--ink); }
.price sup { margin-top: 12px; font: 800 26px var(--head); }
.price b { font: 900 72px/1 var(--head); letter-spacing: -.04em; }
.price span { align-self: flex-end; margin: 0 0 10px 8px; font-weight: 700; color: var(--muted); }
.price-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* FAQ */
.faq { background: #fff; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font: 700 18px var(--head); color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); transition: background .3s, transform .3s var(--ease); }
.qa summary span::before, .qa summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--blue); border-radius: 2px; transition: transform .3s var(--ease); }
.qa summary span::after { transform: rotate(90deg); }
.qa[open] summary span { background: var(--grad); transform: rotate(180deg); }
.qa[open] summary span::before, .qa[open] summary span::after { background: #fff; }
.qa[open] summary span::after { transform: rotate(0); }
.qa p { margin: 0 4px 22px; color: var(--muted); animation: fadein .4s var(--ease); }
.tips { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.tips li { counter-increment: t; position: relative; padding: 20px 20px 20px 70px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.tips li::before { content: counter(t); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font: 800 15px var(--head); }
.tips b { color: var(--ink); }

/* CTA band */
.cta-band { padding: 0 0 104px; background: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 48px 52px; border-radius: 28px; background: radial-gradient(circle at 100% 0, rgba(0, 195, 255, .45), transparent 50%), linear-gradient(145deg, #1d54d6, #5552cc 65%, #3b2fa8); box-shadow: var(--shadow-lg); }
.cta-inner h2 { margin: 0; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 900; max-width: 620px; }

.price-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Sign-up page (plugin form) */
.page-main .aai-signup { max-width: 520px; margin: 0 auto; padding: 0; display: grid; gap: 16px; }
.page-main .aai-signup .aai-card { padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.page-main .aai-signup h2 { margin: 10px 0 6px; font-size: 26px; }
.page-main .aai-signup .aai-field { display: grid; gap: 6px; margin: 14px 0; }
.page-main .aai-signup input[type=email], .page-main .aai-signup input[type=text], .page-main .aai-signup input[type=password] { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.page-main .aai-signup input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 84, 214, .12); }
.page-main .aai-signup .aai-btn { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--grad-warm); color: #fff; font: 700 16px "Red Hat Text", sans-serif; cursor: pointer; }
.page-main .aai-signup .aai-msg { padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.page-main .aai-signup .is-ok { background: #e8f8ef; color: #166534; }
.page-main .aai-signup .is-err { background: #fdecea; color: #a1281c; }
.page-signup-head { text-align: center; }

/* Generic pages */
.page-main { padding: 64px 0 96px; }
.page-main h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 24px; }

/* Footer */
.site-footer { background: #0b1240; color: rgba(255, 255, 255, .7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .logo-type b { color: #fff; }
.site-footer .logo-type small { color: rgba(255, 255, 255, .55); }
.footer-brand p { max-width: 360px; margin: 16px 0 0; }
.site-footer h4 { margin: 4px 0 14px; color: #fff; font-size: 15px; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; } .js .reveal.d5 { transition-delay: .4s; }

/* ---------- Keyframes ---------- */
@keyframes drift { to { transform: translate(60px, -40px) scale(1.15); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scan { to { top: 100%; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes flash { 0%, 100% { opacity: 1; } 30% { opacity: .2; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes wobble { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -3px) scale(1.1); } }
@keyframes grow { to { transform: scaleY(1); } }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.hero-grid, .split { grid-template-columns: 1fr; }
	.hero-copy { text-align: center; }
	.hero .lead { margin: 0 auto; }
	.hero-actions, .hero-proof { justify-content: center; }
	.steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
	.steps::before { display: none; }
	.feat-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-grid; align-content: center; gap: 5px; margin-left: auto; width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
	.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
	.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
	.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.cat-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(17, 22, 58, .3); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
	.cat-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
	.cat-nav ul { flex-direction: column; }
	.nav-cta .btn { flex: 1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	.section { padding: 72px 0; }
	.hero { padding-top: 44px; }
	.demo-body { grid-template-columns: 1fr; }
	.demo-input { min-height: 72px; }
	.float-card { display: none; }
	.steps, .feat-grid, .cat-grid { grid-template-columns: 1fr; }
	.ga-panels { grid-template-columns: 1fr; }
	.ga-arrow { justify-self: center; transform: rotate(90deg); }
	.cta-inner { padding: 36px 24px; text-align: center; justify-content: center; }
	.price-card { padding: 30px 22px; }
	.price b { font-size: 60px; }
	.mol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.marquee-track { animation: none; }
}
