:root {
  color-scheme: light;
  --ink: #17171B;
  --graphite: #303239;
  --graphite-hover: #23252B;
  --paper: #F2EFE9;
  --cloud: #E8E4DC;
  --surface: #FFFFFF;
  --muted: rgba(23, 23, 27, .66);
  --rule: rgba(23, 23, 27, .09);
  --frame-line: rgba(23, 23, 27, .075);
  --blue: #5B78A6;
  --blue-text: #46618C;
  --selection: rgba(91, 120, 166, .16);
  --mint: #267357;
  --rose: #A93D54;
  --rose-soft: rgba(242, 116, 138, .20);
  --frost: rgba(250, 248, 246, .48);
  --edge: rgba(255, 255, 255, .74);
  --radius-small: 10px;
  --radius-control: 12px;
  --radius-panel: 28px;
  --radius-window: 36px;
  --radius-pill: 999px;
  --font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-text: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-text);
  font-synthesis: none;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
body, h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }
body {
  background-color: var(--paper);
  background-image: url("./grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
}
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.nowrap { white-space: nowrap; }
@media (min-width: 680px) {
  .sentence-keep { white-space: nowrap; }
}

kbd {
  display: inline-block; padding: 2px 6px;
  border: 1px solid rgba(23, 23, 27, .15); border-radius: 6px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 1px 0 rgba(23, 23, 27, .08);
  font-family: var(--font-text); font-size: 0.88em; font-weight: 560;
  line-height: 1.3; color: var(--ink);
}

.container { width: 100%; max-width: 1120px; margin-inline: auto; }

/* Sticky Navigation */
.nav {
  position: sticky; top: 0; z-index: 40;
  padding: 0 24px;
  background: rgba(236, 239, 246, .46);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(23, 23, 27, .05);
  transition: border-color 180ms ease, background 180ms ease;
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  background: rgba(242, 239, 233, .84);
}
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 56px; padding: 10px 0; max-width: 1200px; }
.nav-brand {
  display: inline-flex; align-items: center; justify-self: start; gap: 8px;
  text-decoration: none; font-size: 15px; font-weight: 650; color: var(--ink);
}
.nav-brand img { border-radius: 6px; filter: drop-shadow(0 1px 2px rgba(23, 23, 27, .14)); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 13px; font-weight: 520; color: var(--muted); transition: color 140ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--graphite); color: #FFFFFF; text-decoration: none;
  font-size: 13px; font-weight: 600; transition: background 150ms ease;
}
.nav-cta:hover { background: var(--graphite-hover); }

/* Primary & Glass Pill Buttons */
.button-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--graphite); color: #FFFFFF; text-decoration: none;
  font-size: 17px; font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(23, 25, 36, .42), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.button-primary:hover {
  background: var(--graphite-hover); transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(23, 25, 36, .48), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.button-primary:active { transform: translateY(0) scale(.99); }
.button-primary[aria-busy="true"] { cursor: progress; opacity: .78; }

/* Mist-lit Textured Hero Stage & Architectural Frame */
.hero {
  position: relative;
  margin-top: -56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background-color: #EAECEF;
  background-image:
    url("./grain.svg"),
    radial-gradient(ellipse 56% 48% at 13% 18%, rgba(118, 150, 200, .36) 0%, rgba(118, 150, 200, .12) 52%, transparent 78%),
    radial-gradient(ellipse 54% 46% at 87% 19%, rgba(172, 162, 218, .36) 0%, rgba(172, 162, 218, .12) 50%, transparent 76%),
    radial-gradient(ellipse 68% 48% at 50% 44%, rgba(244, 224, 204, .58) 0%, rgba(244, 224, 204, .20) 54%, transparent 78%),
    radial-gradient(ellipse 50% 42% at 82% 76%, rgba(226, 162, 176, .24) 0%, transparent 72%),
    linear-gradient(180deg, #E4EAF5 0%, #EEEBE5 58%, var(--paper) 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 180px 180px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}
.hero-frame {
  max-width: 1256px; margin-inline: auto;
  padding: 118px 28px 104px;
  border-inline: 1px solid var(--frame-line);
}
.hero-copy { text-align: center; max-width: 960px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.06; font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink);
}
.hero-lead {
  max-width: 34em; margin: 22px auto 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6; font-weight: 500; color: rgba(23, 23, 27, .70);
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 16px; margin-top: 30px; scroll-margin-top: 84px;
}
.hero-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 52px; padding: 14px 24px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 6px 18px -8px rgba(23, 25, 42, .12);
  font-size: 16px; font-weight: 580; color: var(--ink); text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}
.hero-secondary:hover { background: rgba(255, 255, 255, .78); transform: translateY(-1px); }
.release-meta { margin-top: 14px; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; color: rgba(23, 23, 27, .64); }

.hero-datum {
  position: relative;
  height: 1px;
  margin: 40px -28px 36px;
  background: var(--frame-line);
}
.hero-datum::before, .hero-datum::after {
  content: ""; position: absolute; top: -4px;
  width: 9px; height: 9px;
  background:
    linear-gradient(rgba(23, 23, 27, .32), rgba(23, 23, 27, .32)) 4px 0 / 1px 9px no-repeat,
    linear-gradient(rgba(23, 23, 27, .32), rgba(23, 23, 27, .32)) 0 4px / 9px 1px no-repeat;
}
.hero-datum::before { left: -5px; }
.hero-datum::after { right: -5px; }

/* Content Sections */
.section { padding: 128px 24px; scroll-margin-top: 56px; }
.section-cloud {
  background-color: var(--cloud);
  background-image: url("./grain.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  border-block: 1px solid var(--rule);
}
.section-dark {
  background: #0B0B0E; color: #F5F5F7;
  --muted: rgba(245, 245, 247, .68);
  --rule: rgba(255, 255, 255, .12);
}
.section-dark ::selection { background: rgba(143, 174, 219, .28); color: #FFFFFF; }
.section-dark kbd {
  border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4); color: #F5F5F7;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.015em;
}
.section-lead {
  max-width: 34em; margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62; font-weight: 480; color: var(--muted);
}

/* Meeting Unframed Highlights */
.meeting-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.meeting-points li { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 580; color: var(--ink); }
.meeting-points svg { flex: none; color: var(--blue-text); }

/* Tune Asymmetric Section */
.tune-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.tune-surface {
  display: flex; flex-direction: column; padding: 38px;
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 20px 48px -28px rgba(23, 25, 38, .12);
}
.tune-surface h3 {
  font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.24; font-weight: 660; letter-spacing: -0.01em;
}
.tune-surface > p { max-width: 32em; margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Closing CTA */
.close {
  background-color: #ECEAE3;
  background-image:
    url("./grain.svg"),
    radial-gradient(ellipse 60% 56% at 50% 18%, rgba(255, 255, 255, .64) 0%, transparent 74%);
  background-repeat: repeat, no-repeat;
  background-size: 180px 180px, 100% 100%;
  border-top: 1px solid var(--rule);
}
.close-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.close-icon { width: 96px; height: 96px; border-radius: 22px; filter: drop-shadow(0 16px 32px rgba(23, 23, 27, .16)); }
.close h2 {
  margin-top: 28px; font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.12; font-weight: 700; letter-spacing: -0.015em;
}
.close-actions { margin-top: 30px; }
.install-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px;
  width: 100%; max-width: 860px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--rule); text-align: left;
}
.install-steps li { display: flex; align-items: baseline; gap: 10px; }
.step-index { flex: none; font-size: 13px; font-weight: 620; font-variant-numeric: tabular-nums; color: var(--muted); }
.install-steps p { font-size: 15px; line-height: 1.6; color: var(--ink); }
.gatekeeper-help { margin-top: 36px; max-width: 560px; font-size: 14px; color: var(--muted); text-align: center; }
.gatekeeper-help summary { cursor: pointer; font-weight: 560; color: var(--ink); list-style-position: inside; }
.gatekeeper-help p { margin-top: 10px; line-height: 1.65; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 26px 24px; background-color: #EAE7DF; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .nav, .nav-links a, .nav-cta, .button-primary, .hero-secondary { transition: none; }
  .button-primary:hover, .button-primary:active, .hero-secondary:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-secondary { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 900px) {
  .tune-grid { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; gap: 16px; max-width: 440px; }
}

@media (max-width: 760px) {
  .nav { padding: 0 18px; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding: 0 12px; }
  .hero-frame { padding: 94px 12px 64px; border-inline: 0; }
  .hero-datum { margin: 28px 0 24px; }
  .hero-datum::before, .hero-datum::after { display: none; }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; gap: 12px 14px; }
  .section { padding: 80px 18px; }
  .section-head { margin-bottom: 36px; }
  .tune-surface { padding: 26px 22px; }
  .meeting-points { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .site-footer { padding: 24px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
