:root {
  color-scheme: dark;
  --page: #06090d;
  --page-raised: #091019;
  --panel: #0b121b;
  --panel-raised: #101a26;
  --line: rgba(154, 196, 224, 0.18);
  --line-strong: rgba(154, 212, 239, 0.34);
  --text: #f4f9fc;
  --muted: #9aabba;
  --faint: #6d7d8c;
  --cyan: #42d7ff;
  --cyan-deep: #2878ff;
  --green: #57d6a1;
  --touch-target: 44px;
  --max: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --section-space: clamp(92px, 9vw, 126px);
  font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--page); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 5%, rgba(71, 115, 255, .08), transparent 32rem),
    linear-gradient(180deg, var(--page) 0%, #071019 48%, var(--page) 100%);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #031014; background: var(--cyan); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { border: 3px solid var(--page); border-radius: 999px; background: var(--line-strong); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: transparent; }
code, pre, .permissions-head, .install-step::before, .archive-chip, .browser-address, .developer-toggle, .load-unpacked-control, .extension-result {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 16px;
  min-height: var(--touch-target);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #031014;
  background: var(--cyan);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand-lockup {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  letter-spacing: -.02em;
}
.brand-lockup img { width: 34px; height: 34px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.text-link {
  min-height: var(--touch-target);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms var(--ease-out);
}

.button {
  min-height: var(--touch-target);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform 180ms var(--ease-out), color 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.button-primary {
  color: #031218;
  background: var(--cyan);
  box-shadow: 0 8px 18px rgba(66, 215, 255, .14);
}
.button-secondary,
.button-ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}
.button-small { padding-inline: 14px; border-radius: var(--radius-sm); font-size: 13px; }
.button-icon,
.ui-icon,
.illustration-arrow { width: 18px; height: 18px; }
.header-source img { opacity: 1; filter: none; }
.button:active { transform: translateY(0) scale(.985); }
.button:focus-visible,
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  scroll-margin-top: 28px;
}
.hero {
  min-height: calc(100svh - 72px);
  padding: clamp(56px, 7vh, 82px) 0 clamp(64px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(42px, 5vw, 68px);
}
.hero-copy { position: relative; z-index: 2; align-self: center; }
.hero h1,
.section-heading h2,
.privacy-copy h2 {
  margin: 0;
  line-height: .99;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.hero h1 {
  max-width: 590px;
  font-size: clamp(3.45rem, 6.5vw, 5.6rem);
  font-weight: 760;
}
.hero h1 span { color: #c0ccd5; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; isolation: isolate; }
.hero-runtime-shell,
.interactive-runtime-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
}
.hero-runtime-shell {
  width: 100%;
  height: 500px;
  display: block;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .34);
  transform-origin: center;
}
.hero-runtime-frame {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: top left;
}

.demo-section,
.privacy-section,
.install-section { padding-top: var(--section-space); }
.section-heading {
  margin-bottom: clamp(34px, 4vw, 46px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.section-heading h2,
.privacy-copy h2 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5vw, 4.45rem);
  font-weight: 740;
}
.section-heading > div > p {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}
.interactive-runtime-shell {
  width: 100%;
  height: clamp(620px, 68vw, 760px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: none;
  background: #080d13;
}
.interactive-runtime-frame { width: 100%; height: 100%; display: block; border: 0; pointer-events: auto; }

.privacy-section {
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(56px, 8vw, 96px);
}
.privacy-copy { min-width: 0; }
.privacy-list {
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  color: #c7d3dc;
  list-style: none;
  font-size: 14px;
}
.privacy-list li {
  min-height: 48px;
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.privacy-list li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.privacy-list span { flex: 0 0 auto; display: grid; place-items: center; color: var(--green); }
.privacy-list .ui-icon { width: 17px; height: 17px; }

.permissions-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: none;
}
.permissions-head {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a8b8c6;
  border-bottom: 1px solid var(--line);
  background: #0e1722;
  font-size: 10px;
}
.permissions-head span:last-child {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #b9c8d4;
}
.permissions-card pre {
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  overflow-x: auto;
  color: #d1dbe3;
  font-size: 12px;
  line-height: 1.8;
}
.code-muted { color: #98aabb; }
.code-value { color: #83e3ff; }
.permissions-note {
  margin: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: #a9bac8;
  background: rgba(87, 214, 161, .035);
}
.shield {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: rgba(87, 214, 161, .08);
}
.permissions-note p { margin: 0; color: #9eb0be; font-size: 11px; line-height: 1.5; }
.permissions-note strong { color: #d0dbe3; }

.install-section { padding-bottom: clamp(92px, 10vw, 128px); }
.install-section .section-heading > div { max-width: 720px; }
.install-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.install-help-link { min-height: var(--touch-target); }
.install-walkthrough {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.install-step {
  position: relative;
  min-width: 0;
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid var(--line);
}
.install-step:first-child { border-left: 1px solid var(--line); }
.install-step::before {
  content: attr(data-step);
  position: absolute;
  top: 26px;
  right: 28px;
  color: #8495a5;
  font-size: 10px;
  letter-spacing: .1em;
}
.install-step h3 { margin: 24px 0 9px; font-size: 18px; letter-spacing: -.02em; }
.install-step p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.install-step code { color: #c5d1da; }
.install-illustration {
  position: relative;
  min-height: 166px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 26, 38, .52);
}
.archive-chip {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--cyan);
  background: var(--page-raised);
  font-size: 10px;
  font-weight: 800;
}
.illustration-arrow { width: 28px; height: 20px; color: var(--cyan); }
.folder-shape {
  position: relative;
  width: 116px;
  height: 78px;
  padding: 28px 10px 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px 11px 11px 11px;
  color: #a8b8c5;
  background: var(--panel-raised);
  font-size: 8px;
}
.folder-shape i {
  position: absolute;
  top: -10px;
  left: -1px;
  width: 46px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: var(--panel-raised);
}
.folder-shape b { font-weight: 650; }
.browser-illustration,
.result-illustration { flex-direction: column; align-items: stretch; gap: 12px; }
.browser-address {
  padding: 10px 12px;
  color: #a6b7c5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  font-size: 9px;
}
.developer-toggle {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c0ccd5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-raised);
  font-size: 9px;
}
.developer-toggle i { position: relative; width: 34px; height: 18px; border-radius: 999px; background: rgba(66, 215, 255, .18); }
.developer-toggle i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.load-unpacked-control {
  align-self: flex-start;
  padding: 8px 10px;
  color: #061217;
  border-radius: 7px;
  background: var(--cyan);
  font-size: 9px;
  font-weight: 800;
}
.extension-result {
  min-height: 56px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cbd6de;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-raised);
  font-size: 9px;
}
.extension-result img { width: 25px; height: 25px; }
.extension-result b { margin-left: auto; color: var(--green); font-size: 8px; }

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #8fa0af;
  font-size: 11px;
}
.site-footer p { margin: 0; text-align: center; line-height: 1.55; }
.site-footer > a {
  min-height: var(--touch-target);
  justify-self: end;
  display: inline-flex;
  align-items: center;
  color: #adbbc7;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.footer-brand { color: #b7c4ce; font-size: 13px; }
.footer-brand img { width: 30px; height: 30px; opacity: .92; }

.reveal { opacity: 1; transform: none; }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
[data-parallax] {
  pointer-events: none;
  will-change: transform;
  transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover,
  .site-footer > a:hover { color: var(--text); }
  .button:hover { transform: translateY(-1px); }
  .button-primary:hover { background: #78e4ff; box-shadow: 0 10px 20px rgba(66, 215, 255, .18); }
  .button-secondary:hover,
  .button-ghost:hover { border-color: var(--line-strong); background: var(--panel-raised); }
}

@media (max-width: 980px) {
  :root { --section-space: 102px; }
  .hero { min-height: 0; padding: 64px 0 82px; grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 480px; }
  .hero-runtime-shell { height: 520px; }
  .privacy-section { grid-template-columns: 1fr; gap: 48px; }
  .privacy-copy { max-width: 760px; }
}

@media (max-width: 768px) {
  :root { --section-space: 88px; }
  .site-header,
  .section,
  .site-footer { width: min(100% - 28px, var(--max)); }
  .site-header { min-height: 68px; }
  .header-actions { gap: 2px; }
  .text-link { display: none; }
  .nav-install { padding-inline: 10px; display: inline-flex; }
  .header-source { display: none; }
  .hero { padding: 52px 0 72px; gap: 38px; }
  .hero h1 { max-width: 680px; font-size: clamp(3rem, 13vw, 4.25rem); }
  .hero-actions { margin-top: 26px; }
  .hero-visual { min-height: 360px; }
  .hero-runtime-shell { height: 410px; border-radius: 14px; }
  .hero-runtime-frame { width: 125%; height: 125%; transform: scale(.8); }
  .section-heading { margin-bottom: 30px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading h2,
  .privacy-copy h2 { font-size: 2.65rem; }
  .interactive-runtime-shell { height: 720px; }
  .privacy-section { gap: 40px; }
  .privacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permissions-card pre { padding: 22px; font-size: 11px; }
  .install-actions { width: 100%; justify-content: flex-start; }
  .install-walkthrough { grid-template-columns: 1fr; border-left: 1px solid var(--line); }
  .install-step { min-height: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .install-step:first-child { border-left: 0; }
  .install-step:last-child { border-bottom: 0; }
  .install-illustration { min-height: 160px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .site-footer p { text-align: left; }
  .site-footer > a { justify-self: start; }
}

@media (max-width: 430px) {
  .site-header { gap: 10px; }
  .brand-lockup { font-size: 14px; }
  .brand-lockup img { width: 30px; height: 30px; }
  .hero h1 { font-size: clamp(2.75rem, 13.5vw, 3.4rem); }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 330px; }
  .hero-runtime-shell { height: 390px; }
  .hero-runtime-frame { width: 150%; height: 150%; transform: scale(.6667); }
  .section-heading h2,
  .privacy-copy h2 { font-size: 2.35rem; }
  .privacy-list { grid-template-columns: 1fr; gap: 0; }
  .privacy-list li { border-bottom: 0; }
  .privacy-list li:last-child { border-bottom: 1px solid var(--line); }
  .install-actions { flex-direction: column; align-items: stretch; }
  .install-step { padding: 24px 20px; }
  .install-step::before { top: 23px; right: 20px; }
  .install-illustration { padding-inline: 14px; }
}

@media (max-width: 375px) {
  .site-header,
  .section,
  .site-footer { width: min(100% - 24px, var(--max)); }
  .hero-runtime-shell { height: 372px; }
  .hero-runtime-frame { width: 166.667%; height: 166.667%; transform: scale(.6); }
}

@media (max-width: 340px) {
  .interactive-runtime-frame {
    width: calc(100% / .9);
    height: calc(100% / .9);
    transform: scale(.9);
    transform-origin: top left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link,
  .button,
  .text-link,
  .site-footer > a,
  .reveal,
  [data-parallax] {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}
