:root {
  color-scheme: light dark;
  --bg: #0d1110;
  --bg-soft: #121816;
  --surface: #171d1b;
  --surface-raised: #1d2522;
  --text: #eef4f1;
  --muted: #9da9a4;
  --line: rgba(224, 245, 236, 0.12);
  --accent: #39d9a2;
  --accent-strong: #54e7b5;
  --accent-ink: #07130f;
  --danger: #ea7185;
  --radius-card: 24px;
  --radius-control: 12px;
  --shadow: 0 36px 100px rgba(1, 7, 5, 0.58);
  --shell: min(1180px, calc(100vw - 48px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #edf2ef;
    --bg-soft: #e1e9e5;
    --surface: #f7faf8;
    --surface-raised: #ffffff;
    --text: #15201b;
    --muted: #596760;
    --line: rgba(19, 48, 36, 0.14);
    --accent: #18ae7c;
    --accent-strong: #11966b;
    --accent-ink: #061b14;
    --shadow: 0 36px 100px rgba(38, 65, 54, 0.18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 4%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(92px, 11vw, 152px); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.nav {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 760; letter-spacing: -0.025em; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 850;
}
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 620; }
.nav-links a, .footer a { transition: color 180ms ease; }
.nav-links a:hover, .footer a:hover { color: var(--text); }
.nav-download { justify-self: end; padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 14px; font-weight: 720; }

.hero {
  min-height: min(760px, calc(100dvh - 70px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  padding-block: clamp(62px, 8vw, 92px);
}
.hero-copy { max-width: 650px; }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 760; letter-spacing: 0.13em; text-transform: uppercase; }
h1 { max-width: 680px; margin-bottom: 25px; font-size: clamp(54px, 6.2vw, 86px); line-height: 0.97; letter-spacing: -0.065em; font-weight: 760; }
.hero-intro { max-width: 590px; margin-bottom: 32px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: var(--radius-control); font-size: 15px; font-weight: 740; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(0.98); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); }
.button:focus-visible, .nav a:focus-visible, .footer a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 72%, white); outline-offset: 3px; }

.hero-visual { position: relative; min-height: 610px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 4%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
  filter: blur(20px);
}
.hero-visual img { width: min(420px, 92%); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.window-shadow { position: absolute; width: min(455px, 98%); height: 72%; border: 1px solid var(--line); border-radius: var(--radius-card); transform: translate(24px, 18px) rotate(-2deg); background: color-mix(in srgb, var(--surface) 74%, transparent); }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.proof div { padding: 4px 28px; border-right: 1px solid var(--line); }
.proof div:first-child { padding-left: 0; }
.proof div:last-child { border-right: 0; }
.proof strong, .proof span { display: block; }
.proof strong { margin-bottom: 5px; font-size: 14px; }
.proof span { color: var(--muted); font-size: 13px; }

h2 { margin-bottom: 22px; font-size: clamp(40px, 5.2vw, 70px); line-height: 1; letter-spacing: -0.056em; font-weight: 730; }
.overview-heading { max-width: 760px; margin-bottom: 58px; }
.overview-heading p, .automation-copy p, .reliability-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 18px; }
.overview-stage {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: auto 1fr;
  gap: 24px 54px;
  align-items: start;
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 11%, var(--surface)), var(--surface) 48%);
}
.menu-strip { grid-column: 1 / -1; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-control); }
.panel-frame { align-self: end; width: min(480px, 100%); padding: 15px 15px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; background: color-mix(in srgb, var(--surface-raised) 88%, transparent); box-shadow: var(--shadow); }
.panel-frame img { width: 100%; border-radius: 15px 15px 0 0; }
.feature-notes { align-self: center; }
.feature-notes article { padding: 23px 0; border-bottom: 1px solid var(--line); }
.feature-notes article:last-child { border-bottom: 0; }
.feature-notes strong { display: block; margin-bottom: 7px; font-size: 18px; }
.feature-notes p { margin: 0; color: var(--muted); }

.resets { display: grid; grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr); align-items: center; gap: clamp(70px, 10vw, 150px); border-top: 1px solid var(--line); }
.resets-visual { display: grid; place-items: center; }
.phone-frame { width: min(390px, 100%); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface-raised); box-shadow: var(--shadow); transform: rotate(-1deg); }
.phone-frame img { border-radius: 16px; }
.resets-copy > p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 18px; }
.detail-list { margin: 38px 0 0; }
.detail-list div { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-weight: 720; }
.detail-list dd { margin: 0; color: var(--muted); }

.automation { border-top: 1px solid var(--line); }
.automation-copy { max-width: 820px; }
.settings-frame { width: min(760px, 84%); max-height: 540px; margin: 58px 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface-raised); box-shadow: var(--shadow); }
.settings-frame img { width: 100%; }
.automation-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; width: min(940px, 92%); margin-top: -84px; }
.automation-grid article { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-card); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 22px 60px color-mix(in srgb, var(--bg) 70%, transparent); }
.automation-grid .auto-wide { grid-row: span 2; min-height: 438px; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface) 65%); }
.automation-grid span { color: var(--accent); font-size: 13px; font-weight: 720; }
.automation-grid strong { max-width: 24ch; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.15; letter-spacing: -0.035em; }

.reliability { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(60px, 9vw, 130px); border-top: 1px solid var(--line); }
.reliability-heading { position: sticky; top: 118px; align-self: start; }
.reliability-list article { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.reliability-list h3 { margin: 0; font-size: 18px; }
.reliability-list p { margin: 0; color: var(--muted); }

.install { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(60px, 10vw, 140px); align-items: center; border-top: 1px solid var(--line); }
.install ol { margin: 40px 0 0; padding: 0; list-style: none; }
.install li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.install li span { color: var(--muted); }
.install-panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-card); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.install-panel > p { color: var(--muted); font-size: 12px; font-weight: 720; letter-spacing: 0.1em; text-transform: uppercase; }
.command-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; margin: 20px 0 28px; padding: 18px; border-radius: var(--radius-control); background: var(--bg); }
.command-row code { overflow-wrap: anywhere; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.command-row button { border: 0; color: var(--text); background: transparent; font-size: 12px; font-weight: 720; cursor: pointer; }
.install-panel .button { width: 100%; }
.install-panel small { display: block; margin-top: 16px; color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq-heading { max-width: 680px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px 90px; margin-top: 44px; }
.faq-grid article { padding-top: 21px; border-top: 1px solid var(--line); }
.faq-grid h3 { margin-bottom: 12px; font-size: 18px; }
.faq-grid p { margin-bottom: 0; color: var(--muted); }
.final-cta { min-height: 340px; display: flex; align-items: center; justify-content: space-between; gap: 44px; padding-block: 72px; border-top: 1px solid var(--line); }
.final-cta h2 { max-width: 760px; margin: 0; }
.final-cta .button { flex: 0 0 auto; }
.footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
.footer > div:last-child { justify-self: end; display: flex; gap: 22px; }

.missing { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 40px; }
.missing-wrap { max-width: 720px; }
.missing h1 { margin-top: 38px; }
.missing p { color: var(--muted); font-size: 18px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr 0.72fr; gap: 28px; }
  .hero-visual { min-height: 500px; }
  .proof { grid-template-columns: 1fr; }
  .proof div, .proof div:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof div:last-child { border-bottom: 0; }
  .overview-stage { grid-template-columns: 1fr; }
  .menu-strip { grid-column: 1; }
  .panel-frame { justify-self: center; }
  .feature-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-notes article { border-bottom: 0; }
  .resets, .reliability, .install { grid-template-columns: 1fr; }
  .reliability-heading { position: static; }
}

@media (max-width: 700px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { position: static; }
  .nav { min-height: 62px; }
  .wordmark { font-size: 15px; }
  .nav-download { padding: 8px 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 72px 56px; }
  h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero-visual { min-height: auto; padding: 28px 10px 12px; }
  .window-shadow { height: 78%; }
  .overview-stage { min-height: 0; padding: 22px; }
  .feature-notes { grid-template-columns: 1fr; gap: 0; }
  .feature-notes article { border-bottom: 1px solid var(--line); }
  .resets { gap: 70px; }
  .phone-frame { width: 300px; }
  .settings-frame, .automation-grid { width: 100%; }
  .settings-frame { max-height: 460px; }
  .automation-grid { grid-template-columns: 1fr; margin-top: 18px; }
  .automation-grid .auto-wide { grid-row: auto; min-height: 250px; }
  .automation-grid article { min-height: 210px; }
  .reliability-list article { grid-template-columns: 1fr; gap: 10px; }
  .install li { grid-template-columns: 82px 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .footer { grid-template-columns: 1fr; justify-items: start; padding-block: 34px; }
  .footer > div:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .proof, .install-panel, .automation-grid article { backdrop-filter: none; background: var(--surface); }
}
