:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #10131a;
  --panel: #151923;
  --panel-strong: #1e2432;
  --ink: #f8f7ff;
  --muted: #c4c8d8;
  --quiet: #858b9c;
  --line: rgba(248, 247, 255, 0.14);
  --line-strong: rgba(248, 247, 255, 0.26);
  --cyan: #2df8e6;
  --cyan-soft: rgba(45, 248, 230, 0.14);
  --violet: #b86cff;
  --violet-soft: rgba(184, 108, 255, 0.18);
  --magenta: #ff4fd8;
  --green: #70ff9c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --font-stack: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-stack);
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(45, 248, 230, 0.14), transparent 34rem),
    radial-gradient(circle at 10% 4%, rgba(184, 108, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, #08090d 0%, #0f111a 48%, #081115 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(248, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 247, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

a:hover {
  text-decoration: none;
}

h1, h2, h3, p {
  margin-top: 0;
}

code {
  font-family: var(--font-mono);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.top-nav,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-nav {
  margin-bottom: 58px;
  color: var(--muted);
}

.back-link,
.brand-link,
.footer a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 800;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.brand-link {
  font-weight: 800;
}

.back-link:hover,
.brand-link:hover,
.footer a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 44px;
  align-items: center;
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(4.2rem, 13vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 0 28px rgba(184, 108, 255, 0.26);
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button.secondary {
  color: var(--ink);
  background: rgba(248, 247, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

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

.button.secondary:hover {
  border-color: var(--line-strong);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0;
}

.quick-stats div,
.feature-card,
.flow-list article,
.file-card,
.download-band,
.preview-window {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 25, 35, 0.78);
}

.quick-stats div {
  padding: 14px;
}

.quick-stats dt {
  margin-bottom: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 900;
}

.quick-stats dd {
  margin: 0;
  color: var(--quiet);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.preview-window {
  overflow: hidden;
  min-height: 480px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(45, 248, 230, 0.13), transparent 46%),
    linear-gradient(320deg, rgba(184, 108, 255, 0.22), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--quiet);
}

.window-bar span:nth-child(1) {
  background: var(--magenta);
}

.window-bar span:nth-child(2) {
  background: var(--violet);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.preview-site {
  display: grid;
  gap: 16px;
  min-height: 420px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.72);
}

.preview-nav {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 90px;
  gap: 10px;
  align-items: center;
}

.preview-logo,
.preview-nav span:not(.preview-logo) {
  display: block;
  min-height: 32px;
  border-radius: 8px;
  background: rgba(248, 247, 255, 0.08);
}

.preview-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08090d;
  background: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 900;
}

.preview-pill {
  background: var(--violet) !important;
}

.preview-hero {
  display: grid;
  align-content: end;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 248, 230, 0.15), transparent),
    rgba(248, 247, 255, 0.06);
}

.preview-hero p {
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-hero strong {
  max-width: 360px;
  font-size: 1.55rem;
  line-height: 1;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-grid span {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 247, 255, 0.06);
}

.preview-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preview-panel code {
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(8, 9, 13, 0.8);
}

.section {
  margin: 0 0 70px;
}

.intro-section,
.package-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
}

.intro-section > p,
.package-copy p,
.download-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 24px;
}

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

.feature-card {
  min-height: 260px;
  padding: 20px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 900;
}

.feature-card p,
.flow-list p {
  margin: 0;
  color: var(--quiet);
}

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

.flow-list article {
  padding: 20px;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #08090d;
  background: var(--cyan);
  font-weight: 900;
}

.file-card {
  overflow: hidden;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

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

.file-row span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 800;
}

.file-row strong {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(184, 108, 255, 0.18), transparent 58%),
    rgba(21, 25, 35, 0.86);
}

.download-band h2 {
  max-width: 780px;
  margin-bottom: 10px;
}

.download-band p {
  max-width: 700px;
  margin-bottom: 0;
}

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 16px;
}

:focus-visible {
  outline: 3px solid rgba(184, 108, 255, 0.72);
  outline-offset: 3px;
}

::selection {
  color: #08090d;
  background: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .intro-section,
  .package-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    max-width: 640px;
  }

  .feature-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .top-nav,
  .download-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    margin-bottom: 38px;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.8rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .quick-stats,
  .feature-grid,
  .flow-list,
  .preview-grid,
  .preview-panel {
    grid-template-columns: 1fr;
  }

  .preview-window {
    min-height: 0;
  }

  .preview-site {
    min-height: 0;
  }

  .preview-nav {
    grid-template-columns: 44px 1fr;
  }

  .preview-nav span:nth-child(3),
  .preview-nav span:nth-child(4) {
    display: none;
  }

  .file-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
