/* NimiCast website: Material 3 (dark scheme from the NimiCast indigo), Plus Jakarta Sans + Inter */

:root {
  --bg: #0e0f1e;
  --surface: #131427;
  --sc-low: #191a2e;
  --sc: #1d1e34;
  --sc-high: #26283f;
  --sc-highest: #313349;
  --on-surface: #e5e3f6;
  --on-surface-var: #c4c4da;
  --muted: #9a9ab2;
  --outline: #8e8ea6;
  --outline-var: #3d3f56;
  --primary: #bcc2ff;
  --on-primary: #1c2474;
  --primary-container: #353c8e;
  --on-primary-container: #e0e0ff;
  --secondary-container: #3c3f5c;
  --on-secondary-container: #e0e1ff;
  --tertiary: #f2b6e0;
  --success: #3ccb7f;
  --warn: #f29b38;
  --error: #ffb4ab;
  --error-container: #93000a;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 28px; --r-full: 999px;
  --e1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
  --e2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
  --e3: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.30);
  --e5: 0 8px 12px 6px rgba(0,0,0,.15), 0 4px 4px rgba(0,0,0,.30);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --wrap: 1180px;
}

*, *::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(--on-surface);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--on-surface); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- buttons (M3 filled / tonal / outlined / text) ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--primary);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: var(--r-full); border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .2s var(--ease); z-index: -1; }
.btn:hover::before { opacity: .08; }
.btn:active::before { opacity: .12; }
.btn .ic { width: 18px; height: 18px; }
.btn-filled { --btn-bg: var(--primary); --btn-fg: var(--on-primary); }
.btn-filled:hover { box-shadow: var(--e1); }
.btn-tonal { --btn-bg: var(--secondary-container); --btn-fg: var(--on-secondary-container); }
.btn-outlined { border: 1px solid var(--outline); }
.btn-text { padding: 0 12px; }
.btn-danger { --btn-bg: var(--error-container); --btn-fg: #ffdad6; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .22; pointer-events: none; animation: ripple .55s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  border: 0; background: transparent; color: var(--on-surface-var); cursor: pointer;
}
.icon-btn:hover { background: rgba(229,227,246,.08); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--outline-var); color: var(--on-surface-var);
  font: 600 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.chip-accent { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.chip-new { background: var(--primary); border-color: transparent; color: var(--on-primary); }
.chip-warn { color: var(--warn); border-color: rgba(242,155,56,.4); }
.chip-ok { color: var(--success); border-color: rgba(60,203,127,.4); }

/* ---------- cards ---------- */
.card { background: var(--sc-low); border-radius: var(--r-lg); padding: 24px; }
.card-elev { background: var(--sc); box-shadow: var(--e1); transition: box-shadow .25s var(--ease), transform .25s var(--ease), background .25s; }
.card-elev:hover { box-shadow: var(--e3); background: var(--sc-high); }
.card-tonal { background: linear-gradient(160deg, rgba(53,60,142,.55), rgba(29,30,52,.9)); border: 1px solid rgba(188,194,255,.10); }
.ic-wrap { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--primary-container); color: var(--on-primary-container); }
.ic-wrap .ic { width: 24px; height: 24px; }
.ic-wrap.lg { width: 56px; height: 56px; border-radius: var(--r-lg); }
.ic-wrap.lg .ic { width: 28px; height: 28px; }
.ic-sm { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: rgba(188,194,255,.10); color: var(--primary); margin-bottom: 14px; }

/* ---------- announcement + top app bar ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 4px 56px 4px 16px;
  position: relative; background: linear-gradient(90deg, #353c8e, #5a3d8e); color: #fff; font-size: 14px; font-weight: 500;
}
.announce a, .announce > span { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce .ic { width: 16px; height: 16px; }
.announce .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #fff; width: 32px; height: 32px; }
.announce .icon-btn .ic { width: 18px; height: 18px; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(14,15,30,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); transition: box-shadow .2s, background .2s; }
.topbar.scrolled { background: rgba(25,26,46,.92); box-shadow: var(--e2); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-surface); text-decoration: none; font: 800 21px/1 var(--font-display); letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; border-radius: var(--r-full); color: var(--on-surface-var); text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(229,227,246,.08); color: var(--on-surface); }
.nav a[aria-current="page"] { background: var(--secondary-container); color: var(--on-secondary-container); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 50% 18%, rgba(105,114,255,.28), transparent 70%),
    radial-gradient(520px 300px at 78% 36%, rgba(242,182,224,.13), transparent 70%),
    radial-gradient(520px 300px at 20% 40%, rgba(60,203,127,.07), transparent 70%);
}
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-sm);
  background: rgba(188,194,255,.10); color: var(--primary); font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-chip .ic { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.035em; max-width: 920px; line-height: 1.05; }
.grad { background: linear-gradient(92deg, #bcc2ff 10%, #e2b9f5 55%, #f2b6e0 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--on-surface-var); max-width: 640px; }
.hero-sub.left { margin-left: 0; }
.hero-price { margin-top: 18px; font: 700 18px/1.4 var(--font-display); color: var(--on-surface); }
.download-card {
  margin-top: 30px; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 14px; min-width: min(440px, 100%);
  background: var(--sc); border-radius: var(--r-xl); box-shadow: var(--e2); border: 1px solid var(--outline-var); text-align: left;
}
.dl-os { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--sc-highest); color: var(--primary); }
.dl-os .ic { width: 24px; height: 24px; }
.dl-meta { display: flex; flex-direction: column; flex: 1; }
.dl-meta strong { font: 700 17px/1.3 var(--font-display); }
.dl-meta small { color: var(--muted); font-size: 13px; }
.hero-fine { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-fine a { color: var(--on-surface-var); }

/* ---------- product mockup ---------- */
.mock {
  margin: 64px auto 0; max-width: 1080px; border-radius: 20px; overflow: hidden;
  background: #101122; border: 1px solid var(--outline-var); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02);
  transform: perspective(1600px) rotateX(6deg); transform-origin: 50% 0; transition: transform .8s var(--ease);
}
.mock.inview { transform: none; }
.mock-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; background: #15162a; border-bottom: 1px solid #23253b; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3c55; }
.mock-title { flex: 1; text-align: center; color: var(--muted); font-size: 13px; font-weight: 500; }
.mock-export { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 600; }
.mock-export .ic { width: 14px; height: 14px; }
.mock-body { display: flex; min-height: 0; }
.mock-side { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; background: #13142a; border-right: 1px solid #202238; }
.mock-side span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #7c7e99; }
.mock-side span.on { background: var(--secondary-container); color: var(--on-secondary-container); }
.mock-side .ic { width: 18px; height: 18px; }
.mock-main { flex: 1; min-width: 0; }
.mock-stage { padding: 22px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1a1b33, #101122 70%); }
.mock-screen {
  position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #2a2f7a 0%, #4b2f78 50%, #7a3a6a 100%); box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.ms-top { position: absolute; left: 8%; right: 8%; top: 9%; height: 7%; background: rgba(255,255,255,.92); border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.ms-top i { width: 7px; height: 7px; border-radius: 50%; background: #d4d5e3; }
.ms-top b { margin-left: 10px; height: 40%; width: 34%; border-radius: 4px; background: #e9eaf3; }
.ms-body { position: absolute; left: 8%; right: 8%; top: 16%; bottom: 10%; background: #f6f6fb; border-radius: 0 0 6px 6px; display: flex; gap: 4%; padding: 3.5%; }
.ms-col { width: 26%; display: flex; flex-direction: column; gap: 9%; }
.ms-col b { height: 9%; border-radius: 4px; background: #e2e3ef; }
.ms-col b:first-child { background: #c9ccf7; }
.ms-chart { flex: 1; display: flex; align-items: flex-end; gap: 5%; padding: 4% 4% 0; border-radius: 6px; background: #eef0fb; }
.ms-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(#7d84ff, #545be0); }
.ms-chart span:nth-child(1) { height: 35%; } .ms-chart span:nth-child(2) { height: 55%; } .ms-chart span:nth-child(3) { height: 42%; }
.ms-chart span:nth-child(4) { height: 70%; } .ms-chart span:nth-child(5) { height: 60%; } .ms-chart span:nth-child(6) { height: 82%; }
.ms-chart span:nth-child(7) { height: 94%; background: linear-gradient(#f2b6e0, #c46ca8); }
.mock-cam {
  position: absolute; right: 4%; bottom: 7%; width: 19%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #8b8fb8, #3b3d63); border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.45);
  display: grid; place-items: end center; overflow: hidden; color: #20223f;
}
.mock-cam .ic { width: 84%; height: 84%; margin-bottom: -12%; fill: #23264a; }
.mock-caption { position: absolute; left: 4%; top: 3%; padding: .4% 1.4%; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font: 600 clamp(9px, 1.4vw, 14px)/1.6 var(--font-display); }
.mock-timeline { padding: 12px 16px 16px; background: #15162a; border-top: 1px solid #23253b; }
.tl-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tl-pill { height: 26px; padding: 0 12px; border-radius: var(--r-full); background: #24263d; color: var(--on-surface-var); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; }
.tl-pill:first-child { background: var(--secondary-container); color: var(--on-secondary-container); }
.tl-time { margin-left: auto; color: var(--muted); font: 500 12px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.tl-ruler { display: flex; justify-content: space-between; margin-left: 64px; padding-bottom: 6px; border-bottom: 1px solid #23253b; color: #6d6f8a; font-size: 10px; font-variant-numeric: tabular-nums; }
.tl-tracks { position: relative; margin-top: 8px; display: grid; gap: 6px; }
.tl-track { display: flex; align-items: center; gap: 8px; height: 34px; }
.tl-track > span { width: 56px; flex: none; color: #7c7e99; font-size: 11px; font-weight: 500; }
.tl-track .clip { flex: 1; height: 100%; display: flex; gap: 2px; padding: 3px; border-radius: 6px; background: #3b4296; }
.tl-track .clip i { flex: 1; border-radius: 3px; background: linear-gradient(135deg, #5a62c9, #7a5fae); opacity: .9; }
.tl-track .wave { flex: 1; height: 100%; display: flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 6px; background: #1f3b38; }
.tl-track .wave i { flex: 1; min-width: 1px; border-radius: 2px; background: #3ccb7f; opacity: .75; height: 40%; }
.tl-track.text { height: 24px; }
.clip-text { width: 46%; height: 100%; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #6d4bd8; color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.tl-sel {
  position: absolute; top: -32px; bottom: -4px; left: calc(64px + (100% - 64px) * .34); width: calc((100% - 64px) * .22);
  background: rgba(76,141,255,.16); border-left: 2px solid var(--success); border-right: 2px solid var(--warn); pointer-events: none; z-index: 2;
  animation: sel 6s var(--ease) infinite alternate;
}
.tl-sel .h-in, .tl-sel .h-out { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 3px; }
.tl-sel .h-in { left: -6px; background: var(--success); }
.tl-sel .h-out { right: -6px; background: var(--warn); }
.tl-head { position: absolute; top: -36px; bottom: -4px; left: calc(64px + (100% - 64px) * .30); width: 2px; background: #ff5d6c; z-index: 3; }
.tl-head::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ff5d6c; }
@keyframes sel { from { width: calc((100% - 64px) * .16); } to { width: calc((100% - 64px) * .28); } }

/* ---------- sections ---------- */
section { position: relative; }
.values { padding: 72px 0 24px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values .card { padding: 28px; }
.values h2 { font-size: 21px; margin: 18px 0 8px; }
.values p { color: var(--on-surface-var); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--on-surface-var); font-size: 18px; }
.eyebrow { color: var(--primary); font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }

.features { padding: 96px 0 40px; }
.feature-group { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--outline-var); }
.fg-intro { position: sticky; top: 104px; align-self: start; }
.fg-intro .ic-wrap { margin-bottom: 20px; }
.fg-intro h3 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.fg-intro p:not(.eyebrow) { margin-top: 14px; color: var(--on-surface-var); font-size: 17px; }
.fg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fg-cards .card { padding: 24px; }
.fg-cards h4 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.fg-cards p { color: var(--on-surface-var); font-size: 15px; }

.testimonials { padding: 96px 0; overflow: hidden; }
.marquee { display: grid; gap: 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.t-grid-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testimonial { margin: 0; width: 380px; display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.t-grid .testimonial { width: auto; }
.testimonial blockquote { margin: 0; font-size: 16px; color: var(--on-surface); flex: 1; }
.testimonial blockquote::before { content: "\201C"; display: block; font: 800 44px/0.7 var(--font-display); color: var(--primary); margin-bottom: 8px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption strong { display: block; font-family: var(--font-display); }
.testimonial figcaption small { display: block; color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); font: 700 14px/1 var(--font-display); flex: none; }
.stars { display: flex; gap: 2px; color: #ffc85c; }
.stars .ic { width: 18px; height: 18px; }

.pricing { padding: 96px 0; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; margin-bottom: 28px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--sc); border: 1px solid var(--outline-var); border-radius: var(--r-xl); }
.price-card.featured { background: linear-gradient(170deg, #2b3180, #1d1e34 60%); border-color: rgba(188,194,255,.35); box-shadow: 0 20px 60px rgba(70,80,220,.25); }
.price-card .chip { position: absolute; top: 24px; right: 24px; }
.price-card h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.price span { font: 800 48px/1 var(--font-display); letter-spacing: -.03em; }
.price small { color: var(--muted); font-size: 15px; }
.price-desc { margin: 8px 0 22px; color: var(--on-surface-var); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--success); margin-top: 2px; }
.ticks li.muted .ic { color: var(--muted); }
.fine { margin-top: 14px; color: var(--muted); font-size: 14px; }
.price-card .fine { text-align: center; }

.faq { padding: 96px 0; }
.faq-in { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.faq .section-head { position: sticky; top: 104px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { padding: 0; background: var(--sc-low); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.faq-item[open] { background: var(--sc); border-color: var(--outline-var); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 600 17px/1.4 var(--font-display); border-radius: var(--r-lg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(229,227,246,.04); }
.faq-item .chev { transition: transform .25s var(--ease); color: var(--muted); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 22px; color: var(--on-surface-var); }

.cta { padding: 48px 0 112px; }
.cta-card {
  text-align: center; padding: 72px 32px; border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(700px 300px at 50% 0%, rgba(124,132,255,.35), transparent 70%), linear-gradient(180deg, #1f2150, #16172d);
  border: 1px solid rgba(188,194,255,.18);
}
.cta-card h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.cta-card > p:not(.eyebrow):not(.fine) { margin-top: 14px; color: var(--on-surface-var); font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- inner pages ---------- */
.page-head { padding: 80px 0 32px; }
.page-head::before { content: ""; position: absolute; inset: -80px 0 auto; height: 420px; z-index: -1; background: radial-gradient(520px 260px at 30% 30%, rgba(105,114,255,.22), transparent 70%); pointer-events: none; }
.page-head.center::before { background: radial-gradient(520px 260px at 50% 30%, rgba(105,114,255,.22), transparent 70%); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.page-head .hero-sub { margin-top: 14px; }
.page-head.center .hero-sub { margin-left: auto; margin-right: auto; }

.changelog { padding: 24px 0 96px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.release { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--outline-var); }
.release-meta { position: sticky; top: 100px; align-self: start; }
.release-meta h2 { font-size: 30px; font-weight: 800; }
.release-meta h2 a { color: var(--on-surface); text-decoration: none; }
.release-meta h2 a:hover { color: var(--primary); }
.release-meta .chips { display: flex; gap: 6px; margin: 10px 0; }
.release-meta time { color: var(--muted); font-size: 14px; }
.release-body { padding: 28px 32px; }
.release-body:hover { background: var(--sc); box-shadow: var(--e1); }
.release-body h3 { font-size: 22px; margin-bottom: 4px; }
.notes h4 { font-size: 15px; margin: 22px 0 8px; color: var(--primary); letter-spacing: .02em; }
.notes p { margin: 10px 0; color: var(--on-surface-var); }
.notes ul { margin: 0; padding-left: 20px; color: var(--on-surface-var); }
.notes li { margin: 6px 0; }
.notes li::marker { color: var(--primary); }
.notes code, .prose code { background: var(--sc-highest); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.release-dl { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--outline-var); }
.notice { color: var(--on-surface-var); }

.prose-section { padding: 8px 0 96px; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--outline-var); }
.prose h3 { font-size: 18px; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--on-surface-var); }
.prose p { margin: 10px 0; }
.prose strong { color: var(--on-surface); }
.prose .summary { background: var(--sc); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--e1); }
.prose .summary ul { margin: 8px 0 0; padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--outline-var); }
.prose th { color: var(--muted); font-weight: 600; }
.steps-card { margin-bottom: 18px; padding: 28px; }
.steps-card h2 { font-size: 20px; margin-bottom: 14px; }
.steps-card p { color: var(--on-surface-var); margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; color: var(--on-surface-var); }
.steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 14px/1 var(--font-display); }
.steps strong { color: var(--on-surface); }
.order-ref:empty { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--outline-var); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 320px; font-size: 15px; }
.footer h3 { font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-var); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer ul a:hover { color: var(--on-surface); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--outline-var); color: var(--muted); font-size: 13px; }
.footer-base a { color: var(--on-surface-var); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.inview { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .feature-group { grid-template-columns: 1fr; gap: 28px; }
  .fg-intro { position: static; max-width: 640px; }
  .faq-in { grid-template-columns: 1fr; gap: 8px; }
  .faq .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .topbar-cta { margin-left: auto; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; margin: 0; background: var(--sc-low); box-shadow: var(--e3); padding: 8px 16px 16px; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 16px; border-radius: var(--r-md); }
  .values-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: minmax(0, 480px); }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .release-meta { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .release-meta .chips { margin: 0; }
  .mock-side { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 56px; }
  .download-card { flex-wrap: wrap; }
  .download-card .btn { width: 100%; }
  .fg-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .testimonial { width: 300px; }
  .tl-ruler span:nth-child(even) { visibility: hidden; }
  .mock-stage { padding: 10px; }
  .topbar-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .cta-card { padding: 48px 20px; }
  .release-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mock { transform: none; }
  .marquee { overflow-x: auto; }
}
