:root {
  --bg: #09111f;
  --bg-soft: rgba(12, 25, 46, 0.78);
  --panel: rgba(10, 22, 39, 0.86);
  --panel-strong: rgba(8, 18, 32, 0.94);
  --line: rgba(150, 198, 255, 0.14);
  --text: #f4f7fb;
  --muted: #9bb0c8;
  --accent: #6de2ff;
  --accent-strong: #b3ff66;
  --accent-warm: #ff9e66;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(109, 226, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 158, 102, 0.14), transparent 26%),
    linear-gradient(180deg, #0b1423 0%, #08111c 48%, #050a13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  opacity: 0.45;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

pre,
code {
  font-family: "Consolas", "Courier New", monospace;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 13, 23, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #04101c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 32px rgba(109, 226, 255, 0.28);
}

.brand-text {
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.section {
  position: relative;
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 120px);
  padding-top: 56px;
}

.simple-hero {
  grid-template-columns: 1fr;
  min-height: auto;
  justify-items: center;
}

.full-width {
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.full-width .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.full-width .hero-actions,
.full-width .hero-points {
  justify-content: center;
}

.lang-switcher {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-button {
  min-width: 58px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active {
  color: #04101c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.hero-copy,
.hero-panel,
.metrics article,
.road-card,
.story-card,
.stack-card,
.lesson-card,
.launch-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 28, 49, 0.8), rgba(8, 18, 32, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.panel-label,
.story-label,
.lesson-tag {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.launch h2 {
  margin: 0;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-text,
.section-heading + *,
.launch-copy p,
.road-card p,
.story-card p,
.stack-list,
.lesson-card p,
.metrics p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: #04101c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 30px rgba(109, 226, 255, 0.2);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.panel-glow {
  position: absolute;
  inset: -10% auto auto 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 255, 102, 0.28), transparent 70%);
  filter: blur(10px);
  transform: translateX(-50%);
}

.panel-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.panel-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.step-index,
.metric-value {
  font-family: "Arial Black", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent-strong);
}

.panel-steps strong,
.road-card h3,
.story-card h3,
.lesson-card h3,
.metrics h2 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.panel-steps p,
.launch-panel li {
  margin: 0;
  color: var(--muted);
}

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

.metrics article {
  padding: 24px;
  border-radius: var(--radius-md);
}

.metrics h2,
.road-card h3,
.story-card h3,
.stack-card strong,
.lesson-card h3,
.launch-panel {
  color: var(--text);
}

.metrics p {
  margin-bottom: 0;
  line-height: 1.7;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 1240px;
}

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

.road-card,
.lesson-card {
  padding: 26px;
  border-radius: var(--radius-md);
}

.road-card span,
.lesson-tag {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-warm);
}

.road-card p,
.lesson-card p,
.launch-panel ul,
.stack-list {
  line-height: 1.7;
}

.build-layout,
.launch {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.build-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.bottom-story {
  padding-top: 16px;
}

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 28, 49, 0.8), rgba(8, 18, 32, 0.92));
  box-shadow: var(--shadow);
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}

.feature-copy {
  padding: 24px;
}

.story-card,
.stack-card {
  height: 100%;
  min-height: 300px;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.build-story .story-card .story-label {
  margin-bottom: 20px;
}

.build-story .story-card h3 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 1.12;
}

.build-story .story-card p:last-child {
  max-width: 42ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.story-card.accent {
  background:
    linear-gradient(180deg, rgba(18, 35, 59, 0.9), rgba(10, 19, 34, 0.96)),
    linear-gradient(135deg, rgba(109, 226, 255, 0.16), transparent);
}

.story-card pre {
  overflow-x: auto;
  margin: 22px 0 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stack-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.launch-copy {
  padding: 12px 0;
}

.launch-copy h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.launch-copy p {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.launch-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #04101c;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-warm), #ffd166);
}

.launch-panel ul {
  margin: 22px 0 28px;
  padding-left: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .build-layout,
  .build-story,
  .launch,
  .metrics,
  .roadmap-grid,
  .lesson-grid,
  .feature-gallery {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 13, 23, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header,
  .hero-copy,
  .hero-panel,
  .story-card,
  .stack-card,
  .launch-panel,
  .road-card,
  .lesson-card,
  .metrics article {
    border-radius: 22px;
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    padding: 14px 16px;
  }

  .hero-copy,
  .hero-panel,
  .story-card,
  .stack-card,
  .launch-panel {
    padding: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .nav-toggle,
  .panel-glow {
    display: none !important;
  }

  .site-header,
  .hero-copy,
  .hero-panel,
  .metrics article,
  .road-card,
  .story-card,
  .stack-card,
  .lesson-card,
  .launch-panel {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border-color: #ccc !important;
  }
}
