:root {
  --ink: #101114;
  --muted: #686b73;
  --line: rgba(16, 17, 20, 0.1);
  --surface: #f5f5f7;
  --accent: #1769e0;
  --shell: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.82);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(160%);
}
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 19px; font-weight: 680; letter-spacing: -.04em; }
.nav-links { display: flex; gap: 30px; color: #383a40; font-size: 14px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.hero { position: relative; min-height: 100vh; padding-top: 168px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; width: 720px; height: 420px; left: 50%; top: 100px; translate: -50% 0;
  background: radial-gradient(ellipse, rgba(52,126,255,.13), transparent 68%); filter: blur(10px); pointer-events: none;
}
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { position: relative; margin-bottom: 25px; font-size: clamp(58px, 8vw, 104px); line-height: .94; letter-spacing: -.065em; font-weight: 710; }
h1 span { color: #8b8e96; }
.hero-copy { color: var(--muted); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.025em; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin: 36px 0 84px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 590; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.button-primary:hover { background: #2b2d32; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.button-secondary { color: var(--ink); background: #eeeef1; }
.button-secondary:hover { background: #e4e4e8; }

.product-preview { max-width: 940px; margin: 0 auto -72px; text-align: left; border: 1px solid rgba(0,0,0,.09); border-radius: 28px; background: rgba(255,255,255,.8); box-shadow: 0 32px 90px rgba(25,33,48,.15); overflow: hidden; }
.preview-bar { height: 58px; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); color: #4f5259; font-size: 13px; }
.preview-dots { display: flex; gap: 7px; }.preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d6d7da; }
.preview-status { justify-self: end; color: #27824c; font-weight: 600; }
.preview-body { min-height: 330px; padding: 58px 7%; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; background: linear-gradient(135deg, #fafafa, #f0f2f6); }
.mini-label { display: block; margin-bottom: 16px; color: #858891; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.preview-copy strong { display: block; margin-bottom: 14px; font-size: 31px; letter-spacing: -.04em; }
.preview-copy p { color: var(--muted); line-height: 1.55; }
.preview-chart { height: 180px; display: flex; align-items: flex-end; gap: 12px; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 15px 40px rgba(20,30,50,.08); }
.preview-chart div { flex: 1; height: var(--height); border-radius: 5px 5px 2px 2px; background: linear-gradient(#3685f3, #1769e0); }

.product-section { padding: 220px 0 150px; background: var(--surface); }
.product-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 11%; align-items: start; }
.section-heading { position: sticky; top: 130px; }
.section-heading h2, .q-copy h2 { margin-bottom: 24px; font-size: clamp(48px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 390px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.feature { padding: 36px 0; display: grid; grid-template-columns: 52px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.feature:first-child { padding-top: 4px; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.06); color: var(--accent); font-size: 22px; }
.feature h3 { margin-bottom: 9px; font-size: 22px; letter-spacing: -.03em; }
.feature p { margin-bottom: 9px; color: var(--muted); line-height: 1.55; }
.feature a { color: var(--accent); font-weight: 600; }

.q-section { padding: 140px 0; }
.q-card { min-height: 560px; padding: 8%; display: grid; grid-template-columns: .75fr 1fr; align-items: center; gap: 8%; border-radius: 40px; color: #fff; background: #0c0d10; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.16); }
.q-mark { position: relative; width: min(100%, 300px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; font-size: clamp(120px, 16vw, 210px); font-weight: 650; letter-spacing: -.1em; background: radial-gradient(circle at 60% 35%, #29314a, #111319 58%); box-shadow: inset 0 0 70px rgba(81,127,255,.12), 0 0 80px rgba(59,113,255,.1); }
.q-mark span { position: absolute; right: 10%; bottom: 11%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #397cf3; box-shadow: 0 0 30px #397cf3; }
.q-copy .eyebrow { color: #75a6ff; }
.q-copy h2 { font-size: clamp(58px, 8vw, 92px); }
.q-copy p { max-width: 510px; color: #9397a1; font-size: 20px; line-height: 1.5; }
.q-copy .q-lead { margin-bottom: 8px; color: #fff; font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.footer-inner p { margin: 0; }

.notes-dialog { width: min(calc(100% - 32px), 520px); padding: 42px; border: 0; border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.notes-dialog::backdrop { background: rgba(5,7,12,.45); backdrop-filter: blur(8px); }
.notes-dialog h2 { margin-bottom: 8px; font-size: 36px; letter-spacing: -.045em; }
.release-meta { color: var(--muted); }
.notes-dialog ul { margin: 28px 0 32px; padding-left: 20px; color: #4f5259; line-height: 1.8; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eeeef1; cursor: pointer; font-size: 24px; line-height: 1; }

.downloads-page { background: var(--surface); }
.downloads-hero { padding: 175px 0 80px; text-align: center; }
.downloads-hero h1 { margin-bottom: 20px; font-size: clamp(64px, 9vw, 108px); }
.downloads-hero > p:last-child { color: var(--muted); font-size: 22px; }
.downloads-content { padding-bottom: 140px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.download-card { padding: 42px; border: 1px solid rgba(0,0,0,.07); border-radius: 32px; background: #fff; box-shadow: 0 16px 50px rgba(20,25,35,.07); }
.download-card-top { margin-bottom: 45px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.app-icon { width: 76px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 19px; color: #fff; background: linear-gradient(145deg, #3989f7, #155cc5); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 12px 24px rgba(23,105,224,.24); }
.app-icon span { font-size: 22px; font-weight: 700; letter-spacing: -.06em; }
.notarized-badge { padding: 8px 12px; border-radius: 999px; color: #257747; background: #edf8f1; font-size: 12px; font-weight: 650; white-space: nowrap; }
.download-card h2 { margin-bottom: 32px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.045em; }
.download-meta { margin: 0 0 36px; border-top: 1px solid var(--line); }
.download-meta div { padding: 15px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.download-meta dt { color: var(--muted); }
.download-meta dd { margin: 0; font-weight: 590; }
.download-actions { display: flex; gap: 10px; }
.button-disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.button-disabled:hover { transform: none; background: var(--ink); box-shadow: none; }
.future-products { margin-top: 24px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; border: 1px dashed rgba(0,0,0,.16); border-radius: 28px; }
.future-products h2 { margin-bottom: 0; font-size: 34px; letter-spacing: -.04em; text-transform: capitalize; }
.future-products > p { margin: 0; color: var(--muted); line-height: 1.55; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .hero { padding-top: 135px; }
  h1 { font-size: clamp(52px, 15vw, 74px); }
  .hero-actions { flex-direction: column; align-items: stretch; margin-bottom: 60px; }
  .preview-body { grid-template-columns: 1fr; gap: 30px; padding: 42px 28px; }
  .preview-chart { height: 145px; }
  .product-preview { border-radius: 22px; }
  .product-section { padding: 170px 0 95px; }
  .product-grid { grid-template-columns: 1fr; gap: 55px; }
  .section-heading { position: static; }
  .q-section { padding: 80px 0; }
  .q-card { min-height: auto; padding: 60px 28px; grid-template-columns: 1fr; border-radius: 28px; }
  .q-mark { width: 220px; margin: 0 auto 45px; font-size: 145px; }
  .footer-inner { padding: 28px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .downloads-hero { padding: 135px 0 60px; }
  .download-card { padding: 28px; border-radius: 24px; }
  .download-card-top { margin-bottom: 34px; }
  .download-actions { flex-direction: column; }
  .future-products { padding: 30px; grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
