:root {
  --bg: #0b0c10;
  --bg-2: #111318;
  --panel: #171a21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --text-2: #b4b8c2;
  --text-3: #7d828f;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --amber: #fac947;
  --radius: 18px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.06; }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.w-edit { color: var(--amber); }
.w-name { color: var(--text); }
.wordmark { font-weight: inherit; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.06);
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: rgba(255, 255, 255, 0.11); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35); }
.btn.primary:hover { background: #2f74e8; }
.btn.large { padding: 18px 30px; font-size: 18px; }
.btn small { font-weight: 500; opacity: 0.8; font-size: 13px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(11, 12, 16, 0.72); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; }
.brand .w-edit { color: var(--amber); }
.brand .w-name { color: var(--text); }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav ul a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 8px 16px; font-size: 14px; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* Hero */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(40% 40% at 85% 60%, rgba(139, 92, 246, 0.14), transparent 70%);
}
.hero-copy { display: grid; gap: 22px; max-width: 820px; margin-bottom: 40px; }
.hero h1 .w-edit { color: var(--amber); }
.hero h1 .w-curve { background: linear-gradient(120deg, #9cc2ff, #60a5fa 50%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2.2vw, 23px); color: var(--text-2); max-width: 680px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-demo {
  position: relative; height: clamp(360px, 46vw, 560px); border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.hero-demo::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.hero-demo::after {
  content: "Graph editor"; position: absolute; top: 0; left: 0; right: 0; height: 34px; line-height: 34px; text-align: center;
  font-size: 12px; color: var(--text-3); font-weight: 600;
}
.hero-demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

/* Name section */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .halves { grid-template-columns: 1fr; } }
.half {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.half h3 { font-size: 24px; letter-spacing: -0.02em; }
.half p:not(.eyebrow) { color: var(--text-2); font-size: 16px; }
.half:first-child .eyebrow { color: var(--amber); }
.half-art { border-radius: 12px; background: var(--bg); border: 1px solid var(--line); padding: 16px; margin-bottom: 8px; min-height: 200px; display: grid; align-content: center; }
.graph { width: 100%; height: auto; display: block; }
.g-curve { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.g2 { animation-delay: 0.4s; }
.is-visible .g-curve { animation-play-state: running; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Mini timeline built from divs */
.tl { position: relative; display: grid; gap: 6px; font-size: 11px; font-weight: 600; }
.tl-ruler { display: flex; justify-content: space-between; height: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tl-ruler i { width: 1px; height: 6px; background: var(--text-3); align-self: flex-end; }
.tl-track { display: flex; gap: 3px; height: 30px; }
.tl-track.audio { height: 22px; }
.clip { flex: 1; border-radius: 5px; padding: 0 8px; line-height: 30px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; position: relative; }
.clip::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,0.05) 22px 23px); }
.clip.v1 { background: #2f5f9e; } .clip.v2 { background: #3f7ac2; } .clip.v3 { background: #7c5cd6; }
.clip.a { background: #2a7a5f; line-height: 22px; }
.clip.short { flex: 0.6; } .clip.long { flex: 1.6; }
.tl-head { position: absolute; top: 0; bottom: 0; left: 46%; width: 2px; background: #ff5a5a; animation: scrub 6s linear infinite; }
.tl-head::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid #ff5a5a; }
@keyframes scrub { from { left: 4%; } to { left: 96%; } }

/* Showcase (parallax) */
.showcase { padding: 40px 0 120px; }
.stage { position: relative; height: clamp(420px, 60vw, 760px); }
.stage img {
  position: absolute; border-radius: var(--radius); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line);
  will-change: transform;
}
.stage .shot-main { width: 82%; left: 9%; top: 0; }
.stage .shot-a { width: 34%; left: 0; bottom: 6%; }
.stage .shot-b { width: 34%; right: 0; bottom: 0; }
.shot-frame { background: var(--panel); border-radius: var(--radius); overflow: hidden; }

/* Sections */
section { padding: 110px 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 56px; }
.section-head p { color: var(--text-2); font-size: 19px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.4); }
.feature .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.16); color: var(--accent-2); }
.feature .glyph svg { width: 22px; height: 22px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* Band */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--text-2); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--accent-2); margin-top: 3px; }

/* Pricing */
.price-card {
  max-width: 560px; margin: 0 auto; text-align: center; padding: 48px 40px; border-radius: 28px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(59, 130, 246, 0.25), rgba(255, 255, 255, 0.03) 60%);
  border: 1px solid rgba(96, 165, 250, 0.35); display: grid; gap: 18px; justify-items: center;
}
.price { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price sup { font-size: 24px; vertical-align: top; margin-right: 4px; }
.price-note { color: var(--text-2); }

/* Requirements / FAQ */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.req { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); }
.req b { display: block; margin-bottom: 4px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-size: 24px; font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); margin-top: 10px; max-width: 760px; }

/* Contact */
form { display: grid; gap: 14px; max-width: 560px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
input, textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 2px solid rgba(59, 130, 246, 0.5); border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 14px; color: var(--text-2); min-height: 1.4em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-3); font-size: 14px; }
footer .w-edit { color: var(--amber); }
footer .w-name { color: var(--text); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-2); }

/* Reveal + parallax */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Legal pages */
.doc { padding: 80px 0; max-width: 780px; }
.doc h1 { font-size: 44px; margin-bottom: 20px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage img { transform: none !important; }
  .tl-head, .g-curve { animation: none; stroke-dashoffset: 0; }
  .btn, .feature { transition: none; }
}
