:root {
  color-scheme: dark;
  --ink: #e5edf7;
  --muted: #93a4b8;
  --line: #2a3140;
  --surface: #10131a;
  --soft: #0b0f16;
  --accent: #14b8a6;
  --accent-dark: #5eead4;
  --night: #07090d;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #07090d;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.hero {
  min-height: 78vh;
  padding: 24px clamp(18px, 4vw, 56px) 64px;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.78) 42%, rgba(7, 9, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 9, 13, 0.12), rgba(7, 9, 13, 0.12)),
    url("../screenshots/gallery.svg");
  background-size: cover;
  background-position: center;
  color: #f8fafc;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 0;
}

.brand {
  font-weight: 850;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: rgba(229, 237, 247, 0.82);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero-copy {
  width: min(1180px, 100%);
  margin: clamp(72px, 13vh, 150px) auto 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #5eead4;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(229, 237, 247, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #041312;
}

.button.secondary {
  background: rgba(16, 19, 26, 0.9);
  color: var(--ink);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px clamp(18px, 4vw, 56px);
}

.section.band {
  max-width: none;
  background: var(--soft);
}

.section.band > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section .eyebrow {
  color: var(--accent-dark);
}

.feature-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.module-grid article {
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
}

.feature-grid p,
.module-grid p,
.download p {
  margin: 0;
  color: var(--muted);
}

.roadmap {
  padding-top: 12px;
}

.platform-band {
  padding-top: 12px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.inline-links a,
.footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.inline-links a:hover,
.footer a:hover {
  text-decoration: underline;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.screenshot-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(94, 234, 212, 0);
  border-radius: inherit;
  transition: border-color 180ms ease;
}

.screenshot-grid img,
.image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.screenshot-grid img {
  object-fit: contain;
  background: #10151d;
  transform: scale(1);
  transform-origin: center;
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .screenshot-grid figure:hover {
    cursor: zoom-in;
  }

  .screenshot-grid figure:hover::after {
    border-color: rgba(94, 234, 212, 0.48);
  }

  .screenshot-grid figure:hover img {
    filter: saturate(1.06) contrast(1.04);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-grid figure::after,
  .screenshot-grid img {
    transition: none;
  }
}

.image-placeholder {
  place-content: center;
  padding: 24px;
  background: #0b0f16;
  color: #c4d2e3;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

figcaption {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
}

.command-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night);
  color: #e5edf7;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 42px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

@media (max-width: 940px) {
  .hero {
    min-height: 72vh;
    background:
      linear-gradient(90deg, rgba(7, 9, 13, 0.95), rgba(7, 9, 13, 0.62)),
      url("../screenshots/gallery.svg");
    background-size: cover;
    background-position: center;
  }

  .feature-grid,
  .module-grid,
  .screenshot-grid,
  .download {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-copy {
    margin-top: 56px;
  }
}
