@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

:root {
  --font-sans: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #f7f7f6;
  --sunken: #e9e9e6;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.18);
  --text: #111111;
  --text-2: #5f5f5f;
  --text-3: #8f8f8f;
  --ink: #111111;
  --ink-text: #ffffff;
  --accent: #2456f0;
  --accent-soft: rgba(36, 86, 240, 0.09);
  --accent-line: rgba(36, 86, 240, 0.42);
  --ok: #1d9a5a;
  --ok-soft: rgba(29, 154, 90, 0.1);
  --spot: rgba(36, 86, 240, 0.13);
  --glow-a: rgba(36, 86, 240, 0.13);
  --glow-b: rgba(17, 17, 17, 0.07);
  --dot: rgba(17, 17, 17, 0.14);
  --shadow-md: 0 1px 2px rgba(17, 17, 17, 0.04), 0 16px 48px -20px rgba(17, 17, 17, 0.18);
  --shadow-lift: 0 2px 6px rgba(17, 17, 17, 0.05), 0 34px 70px -26px rgba(17, 17, 17, 0.3);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 600ms;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --page-x: clamp(20px, 5vw, 48px);
}

:root[data-theme='dark'] {
  --bg: #0d0d0e;
  --surface: #151517;
  --surface-2: #1b1b1e;
  --sunken: #09090a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f2;
  --text-2: #a1a1a6;
  --text-3: #6f6f75;
  --ink: #f2f2f2;
  --ink-text: #0d0d0e;
  --accent: #5b83ff;
  --accent-soft: rgba(91, 131, 255, 0.14);
  --accent-line: rgba(91, 131, 255, 0.52);
  --ok: #3ec57d;
  --ok-soft: rgba(62, 197, 125, 0.12);
  --spot: rgba(91, 131, 255, 0.2);
  --glow-a: rgba(91, 131, 255, 0.2);
  --glow-b: rgba(255, 255, 255, 0.05);
  --dot: rgba(255, 255, 255, 0.12);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.5), 0 20px 60px -24px rgba(0, 0, 0, 0.8);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.55), 0 36px 80px -28px rgba(0, 0, 0, 0.95);
}

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

html { -webkit-text-size-adjust: 100%; color-scheme: light; }
html[data-theme='dark'] { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}

h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: top var(--t-fast) ease;
}

.skip-link:focus-visible { top: 12px; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__grid {
  position: absolute;
  inset: -1px;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 92% 54% at 50% 0%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse 92% 54% at 50% 0%, #000, transparent 76%);
  opacity: .9;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.ambient__glow--a {
  top: -24vmax;
  left: 48%;
  width: 64vmax;
  height: 64vmax;
  margin-left: -32vmax;
  background: var(--glow-a);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.ambient__glow--b {
  bottom: -34vmax;
  right: -15vmax;
  width: 54vmax;
  height: 54vmax;
  background: var(--glow-b);
  animation: drift-b 32s ease-in-out infinite alternate;
}

@keyframes drift-a { from { transform: translate3d(-6%, -3%, 0); } to { transform: translate3d(7%, 5%, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(4%, 4%, 0) scale(1.08); } to { transform: translate3d(-8%, -4%, 0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } }
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }

.reveal { animation: reveal var(--t-slow) var(--ease-out) both; }
.reveal[data-i='1'] { animation-delay: 80ms; }
.reveal[data-i='2'] { animation-delay: 140ms; }
.reveal[data-i='3'] { animation-delay: 200ms; }
.reveal[data-i='4'] { animation-delay: 270ms; }
.reveal[data-i='5'] { animation-delay: 340ms; }
.reveal[data-i='6'] { animation-delay: 410ms; }

.site-header {
  height: 76px;
  padding: 0 var(--page-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
}

.brand__mark { width: 18px; height: 18px; display: block; transition: transform var(--t-med) var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__mark circle { fill: var(--ink); }
.brand__mark rect { fill: var(--ink-text); }

.header-tools { display: flex; align-items: center; gap: 10px; }

.product-name {
  padding-right: 13px;
  border-right: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}

.theme-toggle:hover { color: var(--text); background: var(--sunken); }
.theme-toggle svg { position: absolute; transition: transform var(--t-med) var(--ease-spring), opacity var(--t-fast) ease; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme='dark'] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme='dark'] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 60px) var(--page-x) clamp(54px, 9vh, 96px);
}

.download-card {
  --mx: 50%;
  --my: 20%;
  position: relative;
  min-height: 450px;
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(24px, 6vw, 76px);
  padding: clamp(32px, 6vw, 70px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--t-med) ease, border-color var(--t-fast) ease, box-shadow var(--t-med) ease;
}

.download-card__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(500px circle at var(--mx) var(--my), var(--spot), transparent 68%);
  opacity: .72;
  pointer-events: none;
}

.app-visual { position: relative; display: grid; place-items: center; min-height: 270px; }
.app-visual__halo {
  position: absolute;
  width: min(28vw, 270px);
  height: min(28vw, 270px);
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(4px);
}

.app-visual img {
  position: relative;
  width: min(24vw, 220px);
  height: auto;
  border-radius: 22.5%;
  filter: drop-shadow(0 26px 34px rgba(17, 17, 17, .22));
  transform: rotate(-3deg);
  transition: transform .7s var(--ease-spring), filter var(--t-med) ease;
}

.download-card:hover .app-visual img { transform: translateY(-5px) rotate(0); filter: drop-shadow(0 31px 42px rgba(17, 17, 17, .28)); }

.intro { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
}

.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: breathe 2.6s var(--ease-out) infinite; }

h1 {
  margin-top: 18px;
  font-size: clamp(54px, 9vw, 86px);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: .94;
}

.lead {
  max-width: 26ch;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.42;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.download-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px 18px; }

.primary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  color: var(--ink-text);
  background: var(--ink);
  border-radius: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px -14px rgba(17, 17, 17, .55);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) ease, opacity var(--t-fast) ease;
}

.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.primary:active { transform: translateY(0) scale(.985); }
.primary svg { width: 20px; height: 20px; }

.download-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.download-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.requirement { margin-top: 16px; color: var(--text-3); font-size: 13px; }

.server-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 550;
  transition: gap var(--t-fast) ease, color var(--t-fast) ease;
}

.server-jump:hover { gap: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }

.feature {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, .03);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-fast) ease, background-color var(--t-med) ease;
}

.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.feature__icon svg { width: 21px; height: 21px; }
.feature h2, .install h2 { margin-top: 18px; font-size: 17px; font-weight: 620; letter-spacing: -.025em; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 14px; text-wrap: pretty; }

.install {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  margin-top: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

.install__num { color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 650; }
.install h2 { margin-top: 7px; }
.install p { margin-top: 5px; color: var(--text-2); font-size: 14px; }
.install__arrow { width: 24px; height: 24px; color: var(--text-3); }

.server {
  margin-top: 16px;
  padding: clamp(26px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.server__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.server__label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.server__head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 620;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.server__head p {
  max-width: 64ch;
  margin-top: 12px;
  color: var(--text-2);
  text-wrap: pretty;
}

.server-download {
  min-height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color var(--t-fast) ease, transform var(--t-med) var(--ease-spring);
}

.server-download:hover { background: var(--sunken); transform: translateY(-2px); }
.server-download svg { width: 18px; height: 18px; }

.server-steps {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.server-steps > li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.server-steps__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
}

.server-steps h3 { margin: 5px 0 0; font-size: 16px; font-weight: 620; letter-spacing: -.02em; }
.server-steps p { margin-top: 9px; color: var(--text-2); font-size: 14px; }

pre {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 15px 17px;
  overflow-x: auto;
  color: var(--text);
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.server code { font-family: var(--font-mono); font-size: .92em; color: var(--text); }

.server-facts { margin: 14px 0 0; }
.server-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.server-facts dt { color: var(--text-3); font-size: 13px; }
.server-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-family: var(--font-mono); font-size: 13px; }

.server__secure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 13px;
}

.server__secure svg { width: 18px; height: 18px; flex: none; color: var(--ok); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 17px 19px;
  color: var(--text-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  font-size: 14px;
}

.notice svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--accent); }
.notice strong { color: var(--text); font-weight: 600; }
.notice code { font-family: var(--font-mono); color: var(--text); font-size: .92em; }

.site-footer {
  padding: 22px var(--page-x) 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
}

.site-footer nav { display: flex; gap: 18px; }
.site-footer a { transition: color var(--t-fast) ease; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .site-main { padding-top: 18px; }
  .download-card { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 34px 26px 38px; text-align: center; }
  .app-visual { min-height: 190px; }
  .app-visual__halo { width: 190px; height: 190px; }
  .app-visual img { width: 160px; }
  .lead { margin-left: auto; margin-right: auto; }
  .download-actions { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; text-align: center; }
  .install__arrow { justify-self: center; transform: rotate(90deg); }
  .server__head { align-items: stretch; flex-direction: column; }
  .server-download { align-self: flex-start; }
}

@media (max-width: 420px) {
  .product-name { display: none; }
  .download-actions { align-items: stretch; flex-direction: column; }
  .primary { width: 100%; }
  .download-meta { justify-content: center; }
  .server { padding: 26px 20px; }
  .server-download { width: 100%; }
  .server-steps > li { grid-template-columns: 36px 1fr; gap: 10px; }
  pre { margin-left: -46px; font-size: 12px; }
  .server-facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (pointer: coarse) { .theme-toggle { width: 40px; height: 40px; } }

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