:root {
  --ink: #0c0f12;
  --ink-2: #141a21;
  --steel: #1c2530;
  --mist: #8b9aab;
  --paper: #eef2f6;
  --paper-dim: #c5d0dc;
  --accent: #3dffb5;
  --accent-2: #1ec8ff;
  --accent-ink: #042218;
  --warn: #ffb347;
  --max: 1120px;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 200, 255, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(61, 255, 181, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0d10 0%, var(--ink) 40%, #0e1318 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  z-index: 100;
  border-radius: 0.35rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 15, 18, 0.72);
  border-bottom: 1px solid rgba(139, 154, 171, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}

.brand span {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.35s var(--ease);
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(61, 255, 181, 0.22);
}

.btn-primary:hover {
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(239, 242, 246, 0.22);
}

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

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 13, 16, 0.35) 0%, rgba(10, 13, 16, 0.55) 40%, rgba(10, 13, 16, 0.96) 100%),
    linear-gradient(90deg, rgba(10, 13, 16, 0.85) 0%, rgba(10, 13, 16, 0.35) 55%, rgba(10, 13, 16, 0.7) 100%);
}

.hero-copy {
  padding: clamp(3rem, 8vw, 6rem) 0 3.5rem;
  max-width: 38rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(115deg, #fff 20%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--paper);
  animation: rise-in 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--paper-dim);
  font-size: 1.08rem;
  max-width: 34rem;
  animation: rise-in 0.9s var(--ease) 0.22s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise-in 0.9s var(--ease) 0.32s both;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  animation: rise-in 0.9s var(--ease) 0.42s both;
}

.meta-chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ——— Sections ——— */
section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--mist);
  max-width: 40rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.35rem 1.25rem 1.45rem;
  border-top: 1px solid rgba(61, 255, 181, 0.35);
  background: linear-gradient(180deg, rgba(28, 37, 48, 0.55), rgba(20, 26, 33, 0.2));
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent-2);
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--mist);
  font-size: 0.98rem;
}

/* ——— Download ——— */
.download-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  background:
    linear-gradient(135deg, rgba(61, 255, 181, 0.08), transparent 45%),
    var(--ink-2);
  border: 1px solid rgba(139, 154, 171, 0.18);
}

@media (min-width: 800px) {
  .download-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.download-panel h2 {
  margin: 0 0 0.5rem;
}

.download-panel p {
  margin: 0 0 1.1rem;
  color: var(--mist);
}

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

.file-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-dim);
}

.file-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(139, 154, 171, 0.15);
}

.file-meta li:last-child {
  border-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background: rgba(28, 37, 48, 0.4);
  border-left: 2px solid var(--accent-2);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.steps p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--steel);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}

.gallery a:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  color: var(--mist);
  font-size: 0.88rem;
}

/* ——— Privacy / prose ——— */
.prose {
  max-width: 42rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}

.prose p,
.prose li {
  color: var(--paper-dim);
}

.prose ul {
  padding-left: 1.2rem;
}

.page-hero {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid rgba(139, 154, 171, 0.14);
  padding: 2rem 0 2.75rem;
  color: var(--mist);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-grid a {
  color: var(--paper-dim);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

/* ——— Motion ——— */
@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.045em;
    filter: blur(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 4.5rem;
  }
}
