:root {
  color-scheme: dark;
  --bg: #10121f;
  --bg-deep: #181825;
  --panel: #1e1e2e;
  --panel-soft: #252535;
  --line: #313244;
  --text: #cdd6f4;
  --muted: #a6adc8;
  --faint: #6c7086;
  --cyan: #89dceb;
  --blue: #89b4fa;
  --green: #a6e3a1;
  --pink: #f5a3b7;
  --peach: #fab387;
  --yellow: #f9e2af;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(137, 220, 235, 0.2), transparent 26rem),
    radial-gradient(circle at 82% 12%, rgba(245, 163, 183, 0.16), transparent 28rem),
    linear-gradient(180deg, #111322 0%, var(--bg) 42rem, #0d0f19 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(16, 18, 31, 0.82);
  border-bottom: 1px solid rgba(49, 50, 68, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(137, 220, 235, 0.34);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--cyan);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) 3rem;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 18ch;
  color: #f7f8ff;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 1rem;
  color: #f7f8ff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.55rem;
  color: #f7f8ff;
  font-size: 1.2rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.lede {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: #dfe4ff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(137, 220, 235, 0.28);
  border-radius: 8px;
  background: rgba(30, 30, 46, 0.86);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.button:hover {
  border-color: rgba(137, 220, 235, 0.72);
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #10121f;
  border-color: transparent;
}

.hero-art {
  min-width: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  border: 1px solid rgba(137, 220, 235, 0.22);
  border-radius: 8px;
  background: #f7f3ed;
  box-shadow: var(--shadow);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.stat-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-grid div,
.feature-grid article,
.resource-list a,
.code-panel {
  border: 1px solid rgba(49, 50, 68, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 37, 53, 0.9), rgba(24, 24, 37, 0.9)),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.stat-grid div {
  padding: 1.15rem;
}

.stat-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--yellow);
  font-size: 1rem;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.reverse {
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1fr);
}

.code-panel {
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow: auto;
}

pre {
  margin: 0;
}

code {
  color: var(--green);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  line-height: 1.75;
  white-space: pre-wrap;
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.wide-art {
  display: block;
  width: 100%;
  margin: 1.4rem 0 1.2rem;
  border: 1px solid rgba(249, 226, 175, 0.24);
  border-radius: 8px;
  background: #f3ecdf;
  box-shadow: var(--shadow);
}

.sim-badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.15rem);
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.sim-badge-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.sim-badge-grid img:not(.sim-badge-preview):hover {
  filter:
    brightness(1.08)
    saturate(1.08)
    drop-shadow(0 22px 42px rgba(249, 226, 175, 0.34));
  transform: translateY(-4px) scale(1.025);
}

.sim-badge-grid .sim-badge-preview {
  opacity: 0.58;
  filter:
    blur(5px)
    saturate(0.72)
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.2));
}

.sim-badge-grid .sim-badge-preview:hover {
  opacity: 0.86;
  filter:
    blur(1.4px)
    saturate(1.05)
    brightness(1.08)
    drop-shadow(0 22px 42px rgba(137, 180, 250, 0.24));
  transform: translateY(-4px) scale(1.025);
}

.package-note {
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.feature-grid {
  margin-top: 1rem;
}

.feature-grid article {
  padding: 1.25rem;
}

.feature-grid article.planned-package {
  border-color: rgba(249, 226, 175, 0.28);
  background:
    linear-gradient(180deg, rgba(37, 37, 53, 0.72), rgba(24, 24, 37, 0.78)),
    var(--panel);
}

.feature-grid article.custom-package {
  border-color: rgba(137, 180, 250, 0.34);
  background:
    linear-gradient(180deg, rgba(30, 46, 72, 0.78), rgba(24, 24, 37, 0.84)),
    var(--panel);
}

.package-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.package-card-heading h3 {
  min-width: 0;
  margin: 0;
}

.package-card-heading span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(166, 227, 161, 0.5);
  border-radius: 999px;
  background: rgba(166, 227, 161, 0.18);
  color: #d9ffd4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(16, 18, 31, 0.24),
    0 0 18px rgba(166, 227, 161, 0.16);
  text-transform: uppercase;
}

.planned-package .package-card-heading span {
  border-color: rgba(250, 179, 135, 0.58);
  background: rgba(250, 179, 135, 0.2);
  color: #ffe4c9;
  box-shadow:
    inset 0 0 0 1px rgba(16, 18, 31, 0.24),
    0 0 18px rgba(250, 179, 135, 0.16);
}

.custom-package .package-card-heading span {
  border-color: rgba(137, 180, 250, 0.6);
  background: rgba(137, 180, 250, 0.22);
  color: #d7e4ff;
  box-shadow:
    inset 0 0 0 1px rgba(16, 18, 31, 0.24),
    0 0 18px rgba(137, 180, 250, 0.18);
}

.feature-grid p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.sandbox-art {
  display: block;
  width: min(100%, 26rem);
  justify-self: center;
  border: 1px solid rgba(245, 163, 183, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.resources {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}

.resource-list {
  display: grid;
  gap: 1rem;
}

.resource-list a {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
}

.resource-list a:hover {
  border-color: rgba(137, 220, 235, 0.72);
}

.resource-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: #f7f8ff;
  font-size: 1.1rem;
  font-weight: 800;
}

.resource-list small {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: var(--bg-deep);
}

footer span:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .hero,
  .intro,
  .split,
  .reverse,
  .resources {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    max-width: 18ch;
  }

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

  .sim-badge-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stat-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .sim-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-badge-grid img {
    transition: none;
  }

  .sim-badge-grid img:not(.sim-badge-preview):hover,
  .sim-badge-grid .sim-badge-preview:hover {
    transform: none;
  }
}
