:root {
  color-scheme: dark;
  --canvas: #080909;
  --surface: #101111;
  --surface-raised: #151616;
  --text: #f4f2ee;
  --muted: #aaa8a2;
  --faint: #76756f;
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(255, 255, 255, 0.18);
  --orange: #f35a22;
  --orange-hot: #ff8b2d;
  --measure: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 360px at 50% -220px, rgba(243, 90, 34, 0.19), transparent 72%),
    linear-gradient(180deg, #0b0c0c 0%, var(--canvas) 48%, #060707 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--orange-hot); outline-offset: 4px; }
::selection { color: #fff; background: rgba(243, 90, 34, 0.38); }
.shell { width: min(calc(100% - var(--gutter) * 2), var(--measure)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 9, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}
.header-inner { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 680; letter-spacing: 0.04em; }
.brand img { width: 25px; height: 25px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.header-actions > a:hover { color: var(--text); }
.header-download { min-height: 38px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 7px; display: inline-flex; align-items: center; color: var(--text); background: rgba(255,255,255,.035); }
.environment-badge { display: none; padding: 3px 8px; border: 1px solid rgba(243,90,34,.32); border-radius: 4px; color: #ffad7d; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
html[data-environment="test"] .environment-badge { display: inline-flex; }

.hero { padding: clamp(92px, 11vw, 150px) 0 110px; text-align: center; }
.hero-copy { width: min(840px, 100%); margin: 0 auto; }
.eyebrow { margin: 0 0 22px; color: #c7a28e; font-size: 11px; font-weight: 720; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
h1 { margin-bottom: 27px; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 7.6vw, 90px); font-weight: 500; letter-spacing: -.057em; line-height: 1.02; }
h1 em { color: var(--text); font-style: normal; }
h1 em::after { display: block; width: 82px; height: 2px; margin: 22px auto 0; background: linear-gradient(90deg, var(--orange), var(--orange-hot)); content: ""; }
.lead { width: min(650px, 100%); margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.85; }
.hero-actions { display: flex; margin-top: 36px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 13px; }
.primary-action, .quiet-action { display: inline-flex; min-height: 52px; border-radius: 8px; align-items: center; justify-content: center; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.primary-action { min-width: 220px; padding: 8px 20px; flex-direction: column; background: linear-gradient(135deg, #ef4d1b, #ff8729); color: #210b04; font-size: 14px; font-weight: 760; line-height: 1.25; }
.primary-action small { font-size: 10px; font-weight: 700; opacity: .65; letter-spacing: .06em; text-transform: uppercase; }
.quiet-action { padding: 0 20px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: var(--muted); font-size: 13px; }
.primary-action:hover, .quiet-action:hover { transform: translateY(-1px); }
.quiet-action:hover { border-color: rgba(255,255,255,.28); color: var(--text); }
.primary-action[aria-disabled="true"] { pointer-events: none; filter: grayscale(.8); opacity: .55; }
.release-meta { display: flex; min-height: 20px; margin: 17px 0 0; align-items: center; justify-content: center; gap: 9px; color: var(--faint); font-size: 11px; }
.release-meta span + span::before { margin-right: 9px; content: "·"; }

.product-stage { position: relative; width: min(1040px, 100%); margin: 86px auto 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #080909; box-shadow: 0 40px 100px rgba(0,0,0,.44); text-align: left; }
.window-bar { display: grid; height: 43px; padding: 0 15px; border-bottom: 1px solid var(--line); align-items: center; grid-template-columns: 11px 11px 11px 1fr; gap: 8px; background: #111212; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #343535; }
.window-bar i:first-child { background: #d95645; }
.window-bar i:nth-child(2) { background: #d7a33b; }
.window-bar i:nth-child(3) { background: #52a95c; }
.window-bar span { padding-right: 43px; color: var(--faint); font-size: 11px; text-align: center; }
.product-stage img { display: block; width: 100%; height: auto; }
.product-stage figcaption { position: absolute; right: 13px; bottom: 11px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: rgba(7,8,8,.78); color: var(--faint); font-size: 10px; backdrop-filter: blur(10px); }

.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 9vw, 120px); }
.section-intro { position: sticky; top: 104px; align-self: start; }
h2 { margin-bottom: 19px; font-family: Georgia, "Songti SC", serif; font-size: clamp(36px, 5vw, 58px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.section-intro > p:last-child, .release-panel > div > p:last-child { color: var(--muted); }
.capabilities { border-top: 1px solid var(--line); }
.capabilities article { display: grid; padding: 28px 0; border-bottom: 1px solid var(--line); grid-template-columns: 54px 1fr; gap: 18px; }
.capabilities article > span { color: #b47859; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.capabilities h3 { margin-bottom: 7px; font-size: 17px; font-weight: 660; letter-spacing: -.015em; }
.capabilities p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.release-section { padding: 92px 0; }
.release-panel { display: grid; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--line-strong); border-radius: 14px; align-items: center; grid-template-columns: 1fr auto; gap: 48px; background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.release-panel h2 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 48px); }
.release-panel p { max-width: 660px; margin-bottom: 0; }
.release-actions { display: grid; justify-items: stretch; gap: 14px; }
.release-actions code { width: 250px; overflow: hidden; color: var(--faint); font-size: 9px; line-height: 1.5; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.site-footer { padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 21px; }
.footer-inner a:hover { color: var(--text); }

.legal { width: min(calc(100% - var(--gutter) * 2), 760px); min-height: calc(100vh - 154px); margin: 0 auto; padding: 94px 0 120px; }
.legal h1 { margin-bottom: 16px; font-size: clamp(40px, 7vw, 66px); }
.legal .updated { margin-bottom: 54px; color: var(--faint); font-size: 12px; }
.legal h2 { margin-top: 48px; font-family: inherit; font-size: 21px; font-weight: 660; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: #f2a079; text-decoration: underline; text-underline-offset: 3px; }
.legal li + li { margin-top: 9px; }
.support-list { display: grid; margin-top: 38px; border-top: 1px solid var(--line); }
.support-list article { padding: 25px 0; border-bottom: 1px solid var(--line); }
.support-list h2 { margin: 0 0 8px; font-size: 17px; }
.support-list p { margin: 0; }
.not-found { display: grid; min-height: calc(100vh - 154px); place-content: center; text-align: center; }
.not-found h1 { margin-bottom: 12px; font-size: clamp(72px, 12vw, 140px); color: var(--orange); }
.not-found p { color: var(--muted); }

@media (max-width: 760px) {
  .header-actions > a:not(.header-download), .environment-badge { display: none; }
  html[data-environment="test"] .environment-badge { display: none; }
  .hero { padding-top: 78px; }
  h1 br { display: none; }
  .product-stage { margin-top: 58px; border-radius: 12px; }
  .window-bar { height: 35px; }
  .product-stage figcaption { display: none; }
  .section { padding: 76px 0; }
  .section-grid, .release-panel { grid-template-columns: 1fr; }
  .section-intro { position: static; }
  .release-panel { gap: 28px; }
  .release-actions code { width: min(100%, 300px); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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