:root {
  --bg: #080908;
  --bg-soft: #0e110e;
  --panel: #121512;
  --ink: #eef0ee;
  --muted: #8b938b;
  --line: #1f241f;
  --green: #2f7a3a;
  --green-hover: #3a9446;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --max: 68rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(47, 122, 58, 0.05) 42% 46%, transparent 46%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(47, 122, 58, 0.12), transparent 55%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

strong {
  color: var(--ink);
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.88);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-lockup.compact {
  font-size: 0.92rem;
}

.brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink) !important;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-frame {
  width: min(100%, 40rem);
  animation: enter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.01em;
}

.hero-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.headline {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #f4faf5;
}

.btn-primary:hover {
  background: var(--green-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-soft);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green-hover);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.close {
  animation: enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.close .btn {
  margin-top: 1.75rem;
}

.process {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.process li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  animation: enter 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.process li:nth-child(1) { animation-delay: 0.05s; }
.process li:nth-child(2) { animation-delay: 0.12s; }
.process li:nth-child(3) { animation-delay: 0.19s; }

.process-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green);
  line-height: 1.35;
}

.process h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.process p {
  margin: 0;
  font-size: 0.98rem;
}

/* Download page */
.download-hero {
  min-height: calc(100vh - var(--header-h) - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.download-panel {
  width: min(100%, 34rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
  animation: enter 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.download-panel h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.download-panel .lede {
  margin-bottom: 1.75rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-actions .btn {
  flex: 1 1 11rem;
}

.install-notes {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.install-notes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink);
}

.install-notes li + li {
  margin-top: 0.75rem;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a:hover {
  color: var(--ink);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .process li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.85rem;
  }
}

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