/* Curve Controller website.
   Same surfaces, type and two gradients as the app. Hierarchy comes from
   type and space, not boxes. Unbounded is for headings, prices and figures;
   Manrope carries everything else. */

:root {
  --bg: #09080e; --bg-2: #0d0b14; --panel: #100e18; --panel-2: #15121f; --panel-3: #1b1727;
  --line: rgba(190,170,255,0.09); --line-2: rgba(190,170,255,0.16); --line-3: rgba(190,170,255,0.26);
  --text: #f3f1fa; --sub: #a39fb5; --faint: #6b6680;
  --accent: #9d7bff; --accent-b: #5b8dff; --accent-soft: rgba(157,123,255,0.12);
  --pink: #ff5fa8; --green: #7ee2b8; --red: #ff8b96;
  --grad: linear-gradient(135deg, #a07dff 0%, #5b8dff 100%);
  --premium: linear-gradient(135deg, #b06cff 0%, #ff5fa8 100%);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; position: relative; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(168,132,255,0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.topline { height: 3px; background: var(--grad); }

/* ---- Header ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(9,8,14,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 24px; height: 24px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--sub); font-size: 14px; font-weight: 600; transition: color .2s; }
.site-nav a:hover { color: var(--text); }
.site-nav .btn { margin-left: 6px; }
@media (max-width: 720px) { .site-nav a:not(.btn) { display: none; } }

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 15px; line-height: 1; border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); cursor: pointer; font-family: var(--font); white-space: nowrap; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.05); border-color: var(--line-3); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(140,110,255,0.7); }
.btn.primary:hover { box-shadow: 0 14px 32px -10px rgba(140,110,255,0.8); }
.btn.premium { background: var(--premium); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(255,95,168,0.6); }
.btn.premium:hover { box-shadow: 0 14px 32px -10px rgba(255,95,168,0.7); }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 16px 26px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 16px; height: 16px; }

/* ---- Type -------------------------------------------------------------- */
.eyebrow { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.02em; margin: 18px 0 20px; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin: 14px 0 14px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { color: var(--sub); font-size: 19px; line-height: 1.55; max-width: 540px; margin: 0 0 30px; }
.sub { color: var(--sub); }
.faint { color: var(--faint); }
p { margin: 0 0 14px; }
.measure { max-width: 620px; }

/* ---- Sections ---------------------------------------------------------- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--sub); font-size: 17px; margin: 0; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 84px 0 56px; position: relative; }
.hero::before { content: ""; position: absolute; left: 50%; top: -120px; width: 900px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(120,90,255,0.16), rgba(120,90,255,0) 60%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; position: relative; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .fine { margin-top: 22px; color: var(--faint); font-size: 13.5px; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.hero .fine span { display: inline-flex; align-items: center; gap: 7px; }
.hero .fine span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }

.window { position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 60px 120px -40px rgba(0,0,0,0.8), 0 30px 60px -30px rgba(120,90,255,0.35); }
.window img { width: 100%; height: auto; }
.window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.hero .window { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); transition: transform .8s var(--ease); }
.hero .window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { font-size: 14px; color: var(--sub); }
.fact b { display: block; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 2px; letter-spacing: -0.01em; }

/* ---- Demo -------------------------------------------------------------- */
.demo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 28px; align-items: stretch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.graph-wrap { position: relative; }
.graph { width: 100%; height: auto; }
.graph .axis { fill: var(--faint); font-size: 10px; font-family: var(--font); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--sub); font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip.active { background: var(--accent-soft); border-color: rgba(157,123,255,0.5); color: var(--text); }
.chip .tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.chip.active .tag { color: var(--accent); }
.demo-side { display: flex; flex-direction: column; gap: 18px; }
.demo-side .desc { color: var(--sub); font-size: 14.5px; min-height: 44px; margin: 0; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.readout > div { border-top: 1px solid var(--line-2); padding-top: 10px; }
.readout .k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.readout .v { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin-top: 4px; }
.readout .v small { font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--sub); margin-left: 2px; letter-spacing: 0; }
.slider { display: flex; flex-direction: column; gap: 8px; }
.slider label { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); font-weight: 600; }
.slider label b { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 13px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line-2) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: grab; }
.demo-note { color: var(--faint); font-size: 13px; margin-top: auto; }
.demo-note a { color: var(--sub); }

/* ---- Feature rows ------------------------------------------------------ */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .copy { order: 2; }
.feature .n { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 12px; letter-spacing: .14em; margin-bottom: 14px; }
.feature h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 12px; }
.feature p { color: var(--sub); font-size: 16px; max-width: 460px; }
.feature .points { list-style: none; padding: 0; margin: 18px 0 0; }
.feature .points li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--sub); position: relative; }
.feature .points li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(157,123,255,0.5); }
.feature .points b { color: var(--text); }
.feature .n { display: flex; align-items: center; gap: 12px; }
.feature .premium-tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255,95,168,0.4); background: linear-gradient(135deg, rgba(176,108,255,0.14), rgba(255,95,168,0.1)); color: #f1b7e0; }
.shot { border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--panel); box-shadow: 0 50px 90px -40px rgba(0,0,0,0.8); }
.shot img { width: 100%; height: auto; }
.shot.zoom { aspect-ratio: 16 / 10; }
.shot.zoom img { width: calc(100% * var(--z, 1.28)); max-width: none; height: auto; transform: translate(calc(-1 * var(--x, 19%)), calc(-1 * var(--y, 17%))); }
.sharecard { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: 0 50px 90px -40px rgba(0,0,0,0.8); }
.sharecard .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sharecard .top b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.sharecard .top span { font-size: 12.5px; color: var(--faint); }
.sharecard .meta { color: var(--sub); font-size: 13px; margin: 10px 0 12px; }
.sharecard .codebox { font-size: 11.5px; }
.sharecard .row { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.sharecard .row .btn { flex: 1; }

/* ---- Quiet grid (the smaller features) --------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell h3 { font-size: 15.5px; margin: 0 0 8px; }
.cell p { color: var(--sub); font-size: 14.5px; margin: 0; }

/* ---- Path -------------------------------------------------------------- */
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 10px; }
.path > div { padding: 20px 20px 20px 0; position: relative; }
.path > div + div { padding-left: 24px; }
.path > div + div::before { content: ""; position: absolute; left: 0; top: 28px; width: 1px; height: 36px; background: var(--line-2); }
.path .k { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 8px; }
.path .t { color: var(--text); font-weight: 700; font-size: 14.5px; }
.path .d { color: var(--sub); font-size: 13.5px; margin-top: 4px; }

/* ---- Pricing ----------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; position: relative; display: flex; flex-direction: column; }
.tier.premium { background: linear-gradient(180deg, rgba(176,108,255,0.08), rgba(255,95,168,0.03) 60%, transparent), var(--panel); }
.tier.premium::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--premium); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8; }
.tier .name { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.tier.premium .name { background: var(--premium); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price { font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -0.03em; margin: 10px 0 2px; line-height: 1; }
.price small { font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--sub); margin-left: 6px; letter-spacing: 0; }
.tier .blurb { color: var(--sub); font-size: 14.5px; margin: 8px 0 18px; }
.tier ul { margin: 0 0 24px; padding: 0; list-style: none; color: var(--sub); font-size: 14.5px; }
.tier li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.tier li::before { content: "\2713"; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.tier.premium li::before { color: var(--pink); }
.tier li b { color: var(--text); }
.tier .actions { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.tier .actions .btn { width: 100%; }
.tier .note { color: var(--faint); font-size: 13px; line-height: 1.5; }
.tier .note b { color: var(--sub); font-weight: 700; }
.payline { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); color: var(--sub); font-size: 13.5px; line-height: 1.55; }
.payline b { color: var(--text); }

/* ---- Steps ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--sub); font-size: 14.5px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 12px; letter-spacing: .12em; display: block; margin-bottom: 14px; }
.step b { color: var(--text); display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(157,123,255,0.35); background: var(--accent-soft); color: var(--sub); font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; }
.callout b { color: var(--text); }
.callout svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--accent); font-size: 18px; transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { color: var(--sub); font-size: 15px; padding: 0 0 22px; max-width: 760px; }
.faq .a p { margin: 0 0 10px; }

/* ---- Final CTA --------------------------------------------------------- */
.cta { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; width: 1000px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(120,90,255,0.2), rgba(255,95,168,0.05) 45%, transparent 65%); }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 14px auto 16px; max-width: 760px; }
.cta p { color: var(--sub); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ------------------------------------------------------------ */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--faint); font-size: 13.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer .col b { display: block; color: var(--text); font-size: 13px; margin-bottom: 12px; font-family: var(--display); font-weight: 600; }
footer .col a { display: block; color: var(--sub); margin-bottom: 8px; transition: color .2s; }
footer .col a.brand { display: flex; color: var(--text); }
footer .col a:hover { color: var(--text); }
footer .legal { margin-top: 14px; line-height: 1.6; max-width: 360px; }
footer .brand { margin-bottom: 14px; }

/* ---- Small pages (code, verify, reset, 404) ---------------------------- */
.center { max-width: 520px; margin: 72px auto 96px; }
.center.wide { max-width: 680px; }
.center .panel { padding: 30px; }
.center h2 { margin-top: 8px; }
label { display: block; font-size: 13px; color: var(--sub); font-weight: 700; margin: 16px 0 6px; }
input[type=password], input[type=text], input[type=email] { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 15px; font-family: var(--font); outline: none; transition: border-color .2s; }
input:focus { border-color: var(--accent); }
.msg { margin-top: 14px; font-size: 14.5px; color: var(--sub); min-height: 1.4em; }
.msg.ok { color: var(--green); } .msg.bad { color: var(--red); }
.codebox { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--sub); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; word-break: break-all; user-select: all; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { color: var(--faint); font-size: 13.5px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .window { transform: none; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .copy { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: 1fr; }
  .path > div + div { padding-left: 0; } .path > div + div::before { display: none; }
  .tiers, .steps { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .readout { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .readout .v { font-size: 18px; }
  .hero { padding-top: 56px; }
  .btn.lg { width: 100%; }
}
