:root {
  --bg: #071018;
  --bg-elev: #0c1a26;
  --ink: #e8f1f6;
  --muted: #8aa0b0;
  --line: rgba(232, 241, 246, 0.12);
  --accent: #3ad4c0;
  --accent-2: #f0b429;
  --glow: rgba(58, 212, 192, 0.22);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7aefe0; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* nav */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.25rem 0;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* hero — one composition */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(58, 212, 192, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(240, 180, 41, 0.1), transparent 50%),
    linear-gradient(165deg, #0a1c2b 0%, #071018 45%, #050c12 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,241,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,241,246,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 75%);
  animation: grid-drift 28s linear infinite;
}
@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}
.hero-copy {
  padding: 7rem 0 4.5rem;
  max-width: 36rem;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.hero-mark em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px var(--glow);
}
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-lead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
}
.hero-sub {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 28rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #04201c;
}
.btn-primary:hover { background: #5ee4d3; color: #04201c; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(232,241,246,0.35); color: var(--ink); }

/* sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section .lede {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.points li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
  animation: rise 0.7s ease both;
}
.points li:nth-child(2) { animation-delay: 0.08s; }
.points li:nth-child(3) { animation-delay: 0.16s; }
.points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.points p { margin: 0; color: var(--muted); }

.guide-block {
  display: grid;
  gap: 2rem;
}
.guide-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}
.guide-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.guide-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.guide-step p, .guide-step ul {
  margin: 0;
  color: var(--muted);
}
.guide-step ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}
.guide-step li { margin: 0.25rem 0; }

.note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(240, 180, 41, 0.06);
  color: var(--muted);
  max-width: 40rem;
}
.note strong { color: var(--ink); }

/* download */
.dl-panel {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1rem;
  max-width: 36rem;
}
.dl-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.dl-meta b { color: var(--ink); font-weight: 600; }
.sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--muted);
  margin-top: 1rem;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.foot nav { display: flex; gap: 1rem; }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero-copy { padding-top: 6.5rem; }
  .guide-step { grid-template-columns: 2.2rem 1fr; }
}

/* language switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-right: 0.35rem;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.lang-switch button.is-active {
  background: rgba(58, 212, 192, 0.18);
  color: var(--ink);
}
.lang-switch button:hover { color: var(--ink); }

/* Hero screenshot carousel */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 16, 24, 0.94) 0%, rgba(7, 16, 24, 0.78) 38%, rgba(7, 16, 24, 0.35) 68%, rgba(7, 16, 24, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.25) 0%, transparent 35%, rgba(7, 16, 24, 0.75) 100%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(138, 160, 176, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--accent, #3ad4c0);
  transform: scale(1.15);
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.contact-list li {
  margin: 0.65rem 0;
  color: var(--muted, #8aa0b0);
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-list a {
  color: var(--accent, #3ad4c0);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.foot-inner nav a + a {
  margin-left: 1rem;
}

/* Companion stack flow (ecosystem / home) */
.stack-flow {
  list-style: none;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  max-width: 52rem;
}
.stack-flow > li {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  background: rgba(58, 212, 192, 0.06);
}
.stack-flow > li:not(:last-child)::after {
  content: "→";
  margin-left: 0.65rem;
  margin-right: -0.15rem;
  color: var(--accent, #3ad4c0);
  font-weight: 700;
  speak: never;
}
.stack-flow .stack-or {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0.15rem;
}
@media (max-width: 640px) {
  .stack-flow > li:not(:last-child)::after {
    content: "↓";
  }
}
