*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050506;
  --surface: #0c0c0e;
  --text: #f5f5f6;
  --muted: #a2a2aa;
  --dim: #65656e;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --nav-h: 68px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--muted);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.wrap { width: min(calc(100% - 48px), 1320px); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 5, 6, .84);
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(calc(100% - 48px), 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.nav-brand img { width: 23px; height: 23px; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  padding: 8px 12px;
  color: #b8b8be;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.nav-menu a:hover { color: var(--text); background: rgba(255,255,255,.055); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.hero {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(70px, 8vw, 108px);
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  color: var(--text);
  font-size: clamp(52px, 7.3vw, 96px);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero-copy > p {
  max-width: 590px;
  margin-top: 24px;
  color: #adadb5;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
}
.hero-buttons { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: transform .18s, background .18s;
}
.btn-primary { color: #080809; background: var(--text); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.hero-docs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d0d0d5;
  font-size: 14px;
  font-weight: 550;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.hero-docs svg { transition: transform .18s; }
.hero-docs:hover { color: var(--text); }
.hero-docs:hover svg { transform: translateX(3px); }
.hero-preview { margin-top: clamp(52px, 6vw, 76px); }
.switch { display: inline-flex; align-items: center; gap: 26px; margin-bottom: 18px; }
.switch button {
  position: relative;
  padding: 8px 0 12px;
  color: var(--dim);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  transition: color .18s;
}
.switch button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform .2s;
}
.switch button:hover { color: var(--muted); }
.switch button.active { color: var(--text); }
.switch button.active::after { transform: scaleX(1); }
.stage {
  position: relative;
  min-height: min(63vw, 760px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #08080a;
  box-shadow: 0 44px 110px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.stage img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.stage img[data-view='mobile'] { width: min(430px, 90%); }
.stage img.hidden { display: none; }

.product-flow {
  padding: clamp(94px, 12vw, 168px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.product-flow-intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 48px;
}
.product-flow h2, .skip-copy h2, .download-section h2, .source-section h2 {
  color: var(--text);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 680;
  line-height: .98;
  letter-spacing: -.055em;
}
.product-flow-intro h2 { max-width: 10ch; }
.product-flow-intro p { max-width: 36ch; padding-bottom: 5px; font-size: 18px; }
.device-gallery {
  position: relative;
  min-height: clamp(500px, 61vw, 805px);
  margin-top: clamp(56px, 8vw, 100px);
}
.device-gallery figure { position: absolute; margin: 0; }
.device-gallery img { border: 1px solid var(--line-strong); box-shadow: 0 32px 90px rgba(0,0,0,.56); }
.device-gallery figcaption { display: none; }
.tv-shot { top: 0; right: -7%; width: 78%; }
.tv-shot img { width: 100%; border-radius: 12px; }
.phone-shot { z-index: 2; left: 7%; bottom: 0; width: clamp(150px, 18vw, 240px); }
.phone-shot img { width: 100%; height: auto; border-radius: 20px; }

.skip-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr);
  align-items: center;
  gap: clamp(48px, 9vw, 132px);
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(80px, 10vw, 130px);
  border-top: 1px solid var(--line);
}
.skip-copy h2 { max-width: 10ch; font-size: clamp(40px, 4.8vw, 66px); }
.skip-copy p { max-width: 39ch; margin-top: 24px; font-size: 17px; }
.demo { position: relative; }
.demo video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
}
.demo-skip {
  position: absolute;
  right: 16px;
  bottom: 34px;
  padding: 8px 14px;
  color: #0a0a0b;
  background: rgba(250,250,250,.96);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .22s, transform .22s, background .18s;
}
.demo-skip.on { opacity: 1; transform: none; }
.demo-skip:hover { background: #fff; }
.demo-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 17px;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.28);
}
.demo-bar span { display: block; width: 0; height: 100%; background: #fff; }
.demo-credit { margin-top: 10px; color: var(--dim); font-size: 11px; }
.demo-credit em { font-style: normal; }

.download-section {
  padding-top: clamp(84px, 10vw, 132px);
  padding-bottom: clamp(78px, 9vw, 116px);
  border-top: 1px solid var(--line);
}
.download-section h2 { max-width: 13ch; font-size: clamp(40px, 4.8vw, 64px); }
.download-status { margin-top: 18px; color: var(--dim); font-size: 14px; }
.smart-download {
  width: 100%;
  min-height: 84px;
  margin-top: 32px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text);
  text-align: left;
  background: #0d0d10;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.smart-download:hover { background: #131316; border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.smart-download strong { display: block; font-size: 19px; font-weight: 620; }
.smart-download small { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; }
.smart-download-action { display: inline-flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 600; }
.linux-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.linux-options button {
  padding: 9px 12px;
  color: var(--muted);
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.linux-options button:hover { color: var(--text); border-color: var(--line-strong); }
.linux-options span { margin-left: 6px; color: var(--dim); }
.platform-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.platform-link {
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 17px 18px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .18s;
}
.platform-link:not(:nth-child(4n + 1)) { border-left: 1px solid var(--line); }
.platform-link:hover, .platform-link.recommended { background: rgba(255,255,255,.035); }
.platform-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.platform-name img { width: auto; height: 18px; max-width: 56px; object-fit: contain; }
.platform-name img.wordmark { width: 57px; height: auto; }
.platform-ext { color: var(--dim); font-size: 12px; white-space: nowrap; }

.source-section {
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 112px);
  border-top: 1px solid var(--line);
}
.source-section h2 { max-width: 12ch; font-size: clamp(38px, 4.4vw, 58px); }
.source-section p { margin-top: 18px; font-size: 17px; }
.source-section > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.source-section > a svg { transition: transform .18s; }
.source-section > a:hover svg { transform: translateX(3px); }

.footer { padding: 32px 0 38px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--dim); font-size: 12px; transition: color .18s; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 22px; max-width: 64ch; color: #515159; font-size: 11px; }

@media (max-width: 900px) {
  .product-flow-intro { grid-template-columns: 1fr; gap: 22px; }
  .product-flow-intro p { padding: 0; }
  .device-gallery { min-height: clamp(410px, 70vw, 620px); }
  .tv-shot { width: 85%; right: -14%; }
  .skip-section { grid-template-columns: 1fr; gap: 42px; }
  .skip-copy h2 { max-width: 12ch; }
  .demo { width: min(100%, 680px); }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; }
  .wrap, .nav-inner { width: min(calc(100% - 32px), 1320px); }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: #080809;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px 12px; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(48px, 16vw, 70px); }
  .hero-copy > p { max-width: 34ch; font-size: 16px; }
  .hero-buttons { flex-direction: column; gap: 16px; margin-top: 28px; }
  .hero-preview { margin-top: 52px; }
  .switch { gap: 22px; }
  .stage { min-height: 0; border-radius: 9px; }
  .stage img[data-view='desktop'], .stage img[data-view='tv'] { min-width: 680px; transform: translateX(-16%); }
  .stage img[data-view='mobile'] { width: min(310px, 86vw); min-width: 0; transform: none; }
  .product-flow { padding-block: 88px; }
  .product-flow h2, .skip-copy h2, .download-section h2, .source-section h2 { font-size: clamp(38px, 12vw, 52px); }
  .device-gallery { min-height: clamp(340px, 100vw, 480px); margin-top: 52px; }
  .tv-shot { top: 0; right: 0; width: 100%; }
  .phone-shot { left: clamp(12px, 5vw, 24px); bottom: 0; width: clamp(92px, 28vw, 130px); }
  .skip-section { padding-block: 80px; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-link:nth-child(n) { border-left: 0; }
  .platform-link:nth-child(even) { border-left: 1px solid var(--line); }
  .smart-download { min-height: 76px; padding: 0 18px; }
  .smart-download-action { gap: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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