:root {
  --ink: #12111a;
  --muted: #686675;
  --paper: #f6f4ef;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(18, 17, 26, 0.12);
  --violet: #7657ff;
  --violet-dark: #5336dc;
  --lime: #d9ff6f;
  --shadow: 0 30px 80px rgba(35, 24, 86, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(118, 87, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 12% 35%, rgba(217, 255, 111, 0.2), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(118, 87, 255, .35);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.nav-meta { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 14px; color: var(--muted); }

.version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .02em;
}

.version i, .live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ecf80;
  box-shadow: 0 0 0 4px rgba(94, 207, 128, .16);
}

.version[data-state="error"] i {
  background: #e79742;
  box-shadow: 0 0 0 4px rgba(231, 151, 66, .16);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  align-items: center;
  gap: 70px;
  padding-block: 70px 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 6.3vw, 86px);
  line-height: .94;
  letter-spacing: -.072em;
  font-weight: 720;
}

h1 span { color: var(--violet); }

.lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 720;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--ink); box-shadow: 0 12px 28px rgba(18, 17, 26, .18); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.trust { margin-top: 24px; color: var(--muted); font-size: 12px; }
.trust span { color: var(--violet); margin-right: 6px; }

.sync-card {
  position: relative;
  min-height: 530px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(239,235,255,.7));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sync-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image: radial-gradient(rgba(83,54,220,.28) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.browser {
  position: absolute;
  width: 68%;
  border: 1px solid rgba(18,17,26,.12);
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 45px rgba(35,24,86,.13);
  overflow: hidden;
}

.browser-host { left: 8%; top: 9%; transform: rotate(-2deg); }
.browser-guest { right: 7%; bottom: 10%; transform: rotate(2deg); }
.browser-bar { height: 35px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #f0eef4; }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c8c5ce; }
.browser-bar span { margin-left: 8px; color: #96929f; font-size: 9px; }
.browser-body { padding: 16px; }
.browser-body p { margin: 0 0 10px; color: var(--violet); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.video-frame { height: 100px; border-radius: 10px; background: linear-gradient(135deg, #17151f, #3b315f); display: grid; place-items: center; position: relative; }
.play { width: 31px; height: 31px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; padding-left: 2px; font-size: 10px; }
.timeline { position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; background: rgba(255,255,255,.3); }
.timeline i { display: block; width: 56%; height: 100%; background: var(--lime); }
.browser-body small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.signal { position: absolute; left: 42%; top: 47%; z-index: 3; display: flex; align-items: center; }
.signal span { padding: 7px 10px; border-radius: 20px; color: white; background: var(--violet); box-shadow: 0 7px 20px rgba(83,54,220,.3); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.signal i { width: 75px; border-top: 1px dashed var(--violet); }
.live-chip { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(35,24,86,.12); font-size: 10px; font-weight: 700; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.principles article { padding: 28px; border-right: 1px solid var(--line); }
.principles article:first-child { padding-left: 0; }
.principles article:last-child { border-right: 0; }
.principles strong, .principles span { display: block; }
.principles strong { margin-bottom: 6px; font-size: 15px; }
.principles span { color: var(--muted); font-size: 13px; }

.how { padding-block: 150px; }
.section-heading h2, .architecture h2, .early h2 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.06em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.steps article { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.steps article > span { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: var(--violet-dark); background: rgba(118,87,255,.1); font-size: 11px; font-weight: 800; }
.steps h3 { margin: 55px 0 10px; font-size: 21px; letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.architecture {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: center;
  padding: 80px;
  border-radius: 36px;
  color: white;
  background: #15131e;
}

.architecture > div > p:last-child { max-width: 470px; color: #aaa6b6; line-height: 1.65; }
.pipeline { margin: 0; padding: 0; list-style: none; }
.pipeline li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; min-height: 67px; border-bottom: 1px solid rgba(255,255,255,.11); }
.pipeline li:last-child { border: 0; }
.pipeline span { color: var(--lime); font: 700 10px monospace; }
.pipeline b { font-size: 15px; }
.pipeline small { color: #85818e; font-size: 11px; }

.early { display: grid; grid-template-columns: 1fr .7fr; gap: 90px; align-items: center; padding-block: 150px; }
.early > div > p:last-child { max-width: 600px; color: var(--muted); line-height: 1.65; }
.status-panel { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.55); }
.status-panel > span, .status-panel > small { display: block; color: var(--muted); font-size: 11px; }
.status-panel strong { display: block; margin: 18px 0; }

.release-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 110px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.58);
}
.release-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.release-cta p:last-child { max-width: 680px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.disabled-button { cursor: not-allowed; opacity: .72; white-space: nowrap; }

footer { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer .brand { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

.document-page {
  min-height: 100vh;
}

.document-nav {
  border-bottom: 1px solid var(--line);
}

.document {
  width: min(800px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 120px;
}

.document h1 {
  font-size: clamp(44px, 7vw, 72px);
}

.document .document-intro {
  margin: 25px 0 54px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.document h2 {
  margin: 52px 0 14px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.document h3 {
  margin: 30px 0 10px;
  font-size: 18px;
}

.document p,
.document li {
  color: #4f4d59;
  line-height: 1.75;
}

.document li + li {
  margin-top: 7px;
}

.document a {
  color: var(--violet-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.document-note {
  padding: 20px 22px;
  border: 1px solid rgba(118,87,255,.22);
  border-radius: 16px;
  background: rgba(118,87,255,.07);
}

.placeholder {
  padding: 1px 4px;
  border-radius: 4px;
  color: #8a3d00;
  background: #fff0d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

.support-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.support-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.support-card h2,
.support-card h3 {
  margin-top: 0;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 720;
}

.status-line::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a97a2;
  content: "";
}

.status-line[data-state="online"]::before { background: #24a866; }
.status-line[data-state="offline"]::before { background: #d7654f; }

.demo-player {
  width: 100%;
  margin-top: 30px;
  border-radius: 18px;
  background: #12111a;
  box-shadow: var(--shadow);
}

.demo-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  font-size: 13px;
}

.demo-readout strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 70px; }
  .sync-card { min-height: 510px; }
  .architecture { grid-template-columns: 1fr; gap: 45px; padding: 55px; }
  .early { grid-template-columns: 1fr; gap: 40px; }
  .release-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { height: 74px; }
  .nav-link { display: none; }
  .version { font-size: 10px; }
  .hero { min-height: 0; padding-block: 68px 85px; }
  h1 { font-size: clamp(47px, 15vw, 64px); }
  .lede { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .sync-card { min-height: 420px; border-radius: 25px; }
  .browser { width: 80%; }
  .browser-host { left: 5%; }
  .browser-guest { right: 5%; }
  .signal { left: 26%; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles article:last-child { border-bottom: 0; }
  .how { padding-block: 100px; }
  .steps { grid-template-columns: 1fr; margin-top: 45px; }
  .steps article { min-height: 210px; }
  .architecture { padding: 36px 25px; border-radius: 25px; }
  .pipeline li { grid-template-columns: 36px 1fr; }
  .pipeline small { display: none; }
  .early { padding-block: 100px; }
  .release-cta { margin-bottom: 70px; padding: 28px 22px; }
  .document { width: min(100% - 28px, 800px); padding-top: 58px; }
  .support-grid, .demo-grid { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; gap: 20px; padding-block: 35px; }
  .footer-links { order: 3; flex-basis: 100%; }
}

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