:root {
  --vm-bg: #07101a;
  --vm-bg-deep: #040910;
  --vm-surface: rgba(11, 18, 29, 0.92);
  --vm-surface-2: rgba(7, 13, 22, 0.94);
  --vm-line: rgba(0, 255, 133, 0.18);
  --vm-line-strong: rgba(0, 255, 133, 0.42);
  --vm-line-blue: rgba(0, 209, 255, 0.22);
  --vm-text: #e7edf6;
  --vm-text-soft: #a8b6c9;
  --vm-text-dim: #7f8ea3;
  --vm-accent: #00ff85;
  --vm-accent-2: #00d1ff;
  --vm-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--vm-text);
  background:
    linear-gradient(180deg, rgba(5, 10, 17, 0.72), rgba(5, 10, 17, 0.92)),
    radial-gradient(960px 480px at 0% -12%, rgba(0, 209, 255, 0.14), transparent 52%),
    radial-gradient(840px 420px at 100% 0%, rgba(0, 255, 133, 0.12), transparent 48%),
    url('./dev_wallpapper.png') center top / cover no-repeat,
    linear-gradient(180deg, #07101a 0%, #050b12 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.44), transparent 88%);
  opacity: 0.22;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.topbar,
.hero,
.section,
.footer {
  border: 1px solid var(--vm-line);
  border-radius: 28px;
  background:
    radial-gradient(720px 300px at 100% -10%, rgba(0, 209, 255, 0.09), transparent 50%),
    linear-gradient(180deg, rgba(9, 15, 24, 0.98), rgba(6, 10, 16, 0.99));
  box-shadow: var(--vm-shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__copy { display: grid; gap: 2px; }
.brand__eyebrow,
.eyebrow,
.section__eyebrow,
.rail-card__eyebrow,
.builder-float__label {
  color: var(--vm-accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__title {
  font-size: 1.18rem;
  font-weight: 800;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.topnav__link,
.btn,
.link-chip,
.badge,
.mini-chip,
.status-pill,
.roadmap-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--vm-line);
  background: linear-gradient(180deg, rgba(17, 25, 38, 0.96), rgba(9, 14, 22, 0.98));
  color: var(--vm-text);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topnav__link:hover,
.topnav__link:focus,
.btn:hover,
.btn:focus,
.link-chip:hover,
.link-chip:focus {
  border-color: var(--vm-line-strong);
  transform: translateY(-1px);
}

.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(0, 255, 133, 0.94), rgba(0, 208, 110, 0.94));
  color: #04120b;
  box-shadow: 0 18px 36px rgba(0, 255, 133, 0.18);
}

.btn--secondary,
.btn--ghost {
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.96), rgba(7, 12, 20, 0.98));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  padding: 32px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow { margin: 0 0 14px; }

h1 {
  margin: 0;
  max-width: 8.8ch;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero__lead {
  margin: 18px 0 0;
  max-width: 580px;
  color: var(--vm-text-soft);
  font-size: 1.14rem;
  line-height: 1.65;
}

.hero__notice {
  margin: 14px 0 0;
  max-width: 560px;
  color: var(--vm-text-dim);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero__actions,
.hero__meta,
.chip-row,
.models-strip,
.footer__links,
.ecosystem-band__actions,
.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions { margin-top: 24px; }
.hero__meta { margin-top: 18px; }

.badge,
.mini-chip,
.status-pill,
.roadmap-chip {
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.badge,
.mini-chip,
.roadmap-chip {
  border-color: var(--vm-line-blue);
  background: rgba(0, 209, 255, 0.08);
}

.status-pill {
  border-color: rgba(0, 255, 133, 0.22);
  background: rgba(0, 255, 133, 0.09);
}

.builder-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.builder-stage__panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    radial-gradient(520px 280px at 84% 0%, rgba(0, 209, 255, 0.13), transparent 54%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.98), rgba(3, 7, 13, 0.99));
}

.builder-stage__screen {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.builder-stage__screen img {
  width: 100%;
  height: auto;
}

.builder-float {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.2);
  background: rgba(6, 14, 22, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.builder-float strong,
.rail-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.34;
}

.builder-float span:last-child,
.rail-card span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--vm-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.builder-float--project {
  top: 26px;
  left: 26px;
  max-width: 260px;
}

.builder-float--patch {
  right: 22px;
  top: 70px;
}

.builder-float--export {
  right: 22px;
  bottom: 28px;
}

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

.rail-card,
.build-card,
.inside-card,
.workflow-step,
.roadmap-card {
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.rail-card {
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(0, 209, 255, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.section {
  margin-top: 20px;
  padding: 30px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section__head--split { align-items: flex-start; }
.section__eyebrow { margin: 0 0 8px; }

.section h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section__lead {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--vm-text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.build-grid,
.inside-grid,
.workflow-grid,
.roadmap-grid,
.compare-grid {
  display: grid;
  gap: 16px;
}

.build-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roadmap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.build-card,
.inside-card,
.workflow-step,
.ecosystem-band,
.roadmap-card,
.compare-card {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.build-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(0, 209, 255, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.build-card__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 255, 0.2);
  background: linear-gradient(180deg, rgba(0, 209, 255, 0.12), rgba(0, 255, 133, 0.08));
  font-size: 1.35rem;
}

.build-card h3,
.inside-card h3,
.workflow-step h3 {
  margin: 0;
  font-size: 1.18rem;
}

.build-card p,
.inside-card p,
.workflow-step p,
.ecosystem-band p,
.footer__copy {
  margin: 0;
  color: var(--vm-text-soft);
  line-height: 1.6;
}

.workflow-step {
  position: relative;
}

.workflow-step::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 46%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.24);
  background: rgba(7, 14, 23, 0.96);
  color: var(--vm-accent-2);
  font-size: 1rem;
}

.workflow-step:last-child::after { display: none; }

.workflow-step__n {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 255, 133, 0.16);
  color: var(--vm-accent);
  font-weight: 800;
}

.inside-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inside-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inside-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--vm-text-soft);
  line-height: 1.6;
}

.compare-card {
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.compare-card--muted {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 52%),
    linear-gradient(180deg, rgba(14, 20, 30, 0.98), rgba(9, 14, 22, 0.98));
}

.compare-card--accent {
  border-color: rgba(0, 255, 133, 0.2);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(0, 255, 133, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.compare-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.compare-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--vm-text-soft);
  line-height: 1.7;
}

.roadmap-lanes {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 16px;
}

.roadmap-lane {
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.roadmap-lane--now {
  background:
    radial-gradient(380px 180px at 100% 0%, rgba(0, 255, 133, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(15, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.roadmap-lane--beta {
  background:
    radial-gradient(340px 160px at 100% 0%, rgba(0, 209, 255, 0.09), transparent 52%),
    linear-gradient(180deg, rgba(14, 21, 33, 0.98), rgba(9, 14, 22, 0.98));
}

.roadmap-lane--soon {
  background:
    radial-gradient(340px 160px at 100% 0%, rgba(255, 200, 92, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(14, 21, 33, 0.98), rgba(9, 14, 22, 0.98));
}

.roadmap-lane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.roadmap-lane h3 {
  margin: 0;
  font-size: 1.2rem;
}

.roadmap-lane ul {
  margin: 0;
  padding-left: 18px;
  color: var(--vm-text-soft);
  line-height: 1.7;
}

.ecosystem-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(0, 255, 133, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(12, 21, 34, 0.98), rgba(7, 12, 20, 0.98));
}

.ecosystem-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer {
  margin-top: 20px;
  padding: 20px 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__copy {
  margin-top: 12px;
  font-size: 0.95rem;
}

@media (max-width: 1180px) {
  .topbar,
  .hero,
  .ecosystem-band {
    grid-template-columns: 1fr;
  }

  .topnav,
  .topbar__actions,
  .ecosystem-band__actions {
    justify-content: flex-start;
  }

  .build-grid,
  .workflow-grid,
  .roadmap-grid,
  .compare-grid,
  .roadmap-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-step::after { display: none; }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 12px;
  }

  .topbar,
  .hero,
  .section,
  .footer {
    border-radius: 22px;
    padding: 18px;
  }

  .topnav,
  .topbar__actions,
  .hero__actions,
  .footer__links,
  .ecosystem-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav__link,
  .btn,
  .link-chip {
    width: 100%;
  }

  .builder-stage__panel {
    min-height: auto;
    padding: 14px;
  }

  .builder-float {
    position: static;
    margin-top: 12px;
  }

  .builder-rail,
  .build-grid,
  .inside-grid,
  .workflow-grid,
  .roadmap-grid,
  .compare-grid,
  .roadmap-lanes {
    grid-template-columns: 1fr;
  }

  .section__head,
  .section__head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .section h2,
  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand__title { font-size: 1rem; }

  h1 {
    font-size: 2.35rem;
    line-height: 0.96;
  }

  .hero__lead,
  .section__lead,
  .build-card p,
  .inside-card p,
  .workflow-step p,
  .ecosystem-band p {
    font-size: 0.98rem;
  }

  .hero__meta,
  .chip-row,
  .models-strip {
    gap: 8px;
  }

  .badge,
  .mini-chip,
  .status-pill,
  .roadmap-chip {
    font-size: 0.82rem;
  }

  .section h2 { font-size: 2rem; }
}
