:root {
  --vm-bg: #07101a;
  --vm-bg-deep: #040910;
  --vm-surface: rgba(12, 20, 31, 0.94);
  --vm-surface-soft: rgba(17, 27, 40, 0.92);
  --vm-line: rgba(0, 255, 133, 0.2);
  --vm-line-strong: rgba(0, 255, 133, 0.42);
  --vm-accent: #00ff85;
  --vm-accent-2: #00d1ff;
  --vm-text: #edf3fb;
  --vm-text-soft: #a7b6c8;
  --vm-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--vm-text);
  background:
    linear-gradient(180deg, rgba(4, 10, 17, 0.72), rgba(4, 10, 17, 0.92)),
    radial-gradient(1100px 500px at 0% -10%, rgba(0, 209, 255, 0.14), transparent 52%),
    radial-gradient(900px 420px at 100% 0%, rgba(0, 255, 133, 0.12), transparent 50%),
    url('./online_wallpapper.png') center top / cover no-repeat,
    linear-gradient(180deg, #07101a 0%, #050b12 100%);
}

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

.page-shell {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 32px;
  overflow-x: clip;
}

.section-card {
  border: 1px solid var(--vm-line);
  border-radius: 24px;
  background:
    radial-gradient(700px 280px at 100% -10%, rgba(0, 209, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(13, 20, 31, 0.98), rgba(7, 12, 19, 0.98));
  box-shadow: var(--vm-shadow);
}

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

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

.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand__copy { display: grid; gap: 2px; }
.brand__eyebrow {
  color: var(--vm-accent-2);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand__title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar__nav,
.topbar__actions,
.hero__actions,
.hero__meta,
.footer__links,
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar__nav {
  justify-content: center;
  align-items: center;
}

.topbar__actions {
  justify-content: flex-end;
  align-items: center;
}

.topbar-menu {
  display: none;
}

.topbar__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--vm-line);
  background: linear-gradient(180deg, rgba(21, 30, 43, 0.96), rgba(10, 16, 24, 0.98));
  color: var(--vm-text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.topbar__menu-toggle::-webkit-details-marker {
  display: none;
}

.topbar-menu__panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--vm-line);
  background: linear-gradient(180deg, rgba(21, 30, 43, 0.96), rgba(10, 16, 24, 0.98));
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  min-width: 52px;
  min-height: 34px;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: transparent;
  color: var(--vm-text-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: var(--vm-text);
  transform: translateY(-1px);
}

.lang-switch__btn.is-active {
  background: linear-gradient(180deg, rgba(0, 255, 133, 0.92), rgba(0, 208, 110, 0.94));
  color: #04120b;
}

.lang-switch--menu {
  width: fit-content;
}

.nav-chip,
.btn,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.04rem;
  border-radius: 14px;
  font-weight: 700;
}

.nav-chip,
.btn--ghost,
.btn--secondary {
  border: 1px solid var(--vm-line);
  background: linear-gradient(180deg, rgba(21, 30, 43, 0.96), rgba(10, 16, 24, 0.98));
}

.btn--primary {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 255, 133, 0.9), rgba(0, 208, 110, 0.92));
  color: #04120b;
  box-shadow: 0 16px 32px rgba(0, 255, 133, 0.18);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 30px;
  padding: 34px;
  align-items: stretch;
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 10px;
  color: var(--vm-accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  max-width: 9.5ch;
  font-size: clamp(2.8rem, 4.4vw, 4.65rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

html[lang="en"] .online-hub h1 {
  max-width: 12ch;
}

.hero__lead,
.section-lead,
.path-card p,
.mini-card p,
.split-card p,
.glow-panel__text,
.footer__copy {
  color: var(--vm-text-soft);
  line-height: 1.62;
}

.hero__lead {
  max-width: 35rem;
  font-size: 1.06rem;
}

.hero__side { display: flex; align-items: stretch; }
.glow-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  min-height: 100%;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    radial-gradient(520px 220px at 80% 0%, rgba(0, 255, 133, 0.12), transparent 54%),
    linear-gradient(180deg, rgba(11, 17, 26, 0.98), rgba(6, 11, 18, 0.98));
}
.glow-panel--artwork {
  padding-bottom: 22px;
}
.glow-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.glow-panel__grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 133, 0.18);
  background: rgba(0, 255, 133, 0.07);
  color: var(--vm-text);
  font-weight: 800;
  font-size: 1.1rem;
}
.glow-panel__artframe {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(460px 220px at 80% 0%, rgba(0, 255, 133, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(10, 17, 27, 0.98), rgba(5, 10, 16, 0.99));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.glow-panel__artframe img {
  width: 100%;
  height: auto;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.badge {
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background: rgba(0, 209, 255, 0.08);
  font-size: 0.88rem;
}

.section-card + .section-card { margin-top: 18px; }
.section-card:not(.hero):not(.split-section):not(.footer) {
  padding: 28px;
}

.section-head {
  margin-bottom: 24px;
  max-width: 780px;
}

.section-head h2 {
  margin: 0 0 8px;
  max-width: 16ch;
  font-size: clamp(1.75rem, 2.4vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.path-grid,
.mini-grid,
.live-grid,
.materials-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.materials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.materials-journey {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(0, 209, 255, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(18, 27, 40, 0.98), rgba(10, 16, 24, 0.98));
}

.materials-journey h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.materials-journey__lead {
  margin: 0 0 20px;
  color: var(--vm-text-soft);
  line-height: 1.65;
}

.journey-steps {
  display: grid;
  gap: 12px;
}

.journey-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.journey-step:hover,
.journey-step:focus {
  border-color: var(--vm-line-strong);
  transform: translateY(-2px);
  background:
    radial-gradient(340px 120px at 100% 0%, rgba(0, 255, 133, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.03);
}

.journey-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 133, 0.2);
  background: rgba(0, 255, 133, 0.08);
  color: var(--vm-accent);
  font-weight: 800;
}

.journey-step__body {
  display: grid;
  gap: 4px;
}

.journey-step__body strong {
  font-size: 1.02rem;
}

.journey-step__body small {
  color: var(--vm-text-soft);
  line-height: 1.55;
}

.materials-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-card,
.mini-card,
.live-card,
.material-card,
.split-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background: linear-gradient(180deg, rgba(19, 27, 39, 0.98), rgba(11, 16, 24, 0.98));
}
.path-card--accent { border-color: rgba(0, 209, 255, 0.22); }
.path-card__icon,
.mini-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 255, 133, 0.14), rgba(0, 209, 255, 0.12));
  border: 1px solid rgba(0, 255, 133, 0.18);
  font-size: 1.2rem;
}
.path-card__eyebrow { margin: 0 0 8px; color: var(--vm-accent); font-weight: 800; }
.path-card h3,
.mini-card h3,
.live-card h3,
.split-card h2 { margin: 0 0 12px; }

.live-card__lead {
  margin: 0 0 14px;
  color: var(--vm-text-soft);
  line-height: 1.6;
}

.path-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

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

.live-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 100%;
  background:
    radial-gradient(380px 140px at 100% 0%, rgba(0, 209, 255, 0.06), transparent 58%),
    linear-gradient(180deg, rgba(19, 27, 39, 0.98), rgba(11, 16, 24, 0.98));
}

.live-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 133, 0.18), rgba(0, 209, 255, 0.58), rgba(0, 255, 133, 0.18));
}

.live-card li + li {
  margin-top: 8px;
}

.live-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.material-card {
  gap: 10px;
  min-height: 100%;
  color: var(--vm-text);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.material-card strong {
  font-size: 1.02rem;
}

.material-card span {
  color: var(--vm-text-soft);
  line-height: 1.58;
}

.material-card:hover,
.material-card:focus {
  border-color: var(--vm-line-strong);
  transform: translateY(-2px);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(0, 209, 255, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(20, 30, 43, 0.98), rgba(10, 16, 24, 0.98));
}

.infra-layout {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.infra-node {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background: linear-gradient(180deg, rgba(10, 18, 29, 0.98), rgba(7, 12, 19, 0.98));
}
.infra-node--image {
  overflow: hidden;
  min-height: 336px;
}
.infra-node__image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
}
.infra-node__core,
.infra-node__branch {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 133, 0.22);
  background: rgba(0, 255, 133, 0.08);
  font-weight: 800;
}
.infra-node__core {
  inset: 50% auto auto 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  box-shadow: 0 0 0 12px rgba(0, 209, 255, 0.05);
}
.infra-node__branch { width: 86px; height: 44px; }
.infra-node__branch--tech { top: 32px; left: 50%; transform: translateX(-50%); }
.infra-node__branch--dev { left: 26px; bottom: 36px; }
.infra-node__branch--art { right: 26px; bottom: 36px; }
.infra-node::before,
.infra-node::after {
  content: '';
  position: absolute;
  background: linear-gradient(180deg, rgba(0, 209, 255, 0.35), rgba(0, 255, 133, 0.18));
}
.infra-node::before { width: 2px; height: 74px; left: 50%; top: 78px; transform: translateX(-50%); }
.infra-node::after { width: 180px; height: 2px; left: 50%; bottom: 85px; transform: translateX(-50%); }

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.footer {
  padding: 22px;
  text-align: center;
}
.footer__links { justify-content: center; margin-bottom: 12px; }
.footer__links a {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 133, 0.14);
  background: rgba(255,255,255,0.02);
}
.footer__copy { margin: 0; }

@media (max-width: 1100px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
  }
  .topbar__nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero,
  .infra-layout,
  .split-section,
  .path-grid,
  .mini-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-layout { grid-template-columns: 1fr; }
  .materials-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .glow-panel__artframe img {
    min-height: 360px;
  }
  .infra-node--image {
    min-height: 280px;
  }
  .infra-node__image {
    padding: 10px;
    object-fit: contain;
  }
}

@media (max-width: 720px) {
  .page-shell { width: calc(100% - 16px); max-width: 100%; padding: 12px 0 24px; }
  .topbar,
  .hero,
  .section-card,
  .split-section,
  .footer { border-radius: 20px; }
  .topbar,
  .hero,
  .split-section,
  .footer,
  .section-card { padding: 18px; }
  .section-card:not(.hero):not(.split-section):not(.footer) { padding: 18px; }
  .path-card,
  .mini-card,
  .split-card,
  .live-card { padding: 16px; }
  h1 { font-size: clamp(2rem, 11vw, 3.3rem); }
  .hero__actions,
  .hero__meta,
  .split-actions,
  .live-grid,
  .materials-layout,
  .materials-side,
  .materials-grid { display: grid; grid-template-columns: 1fr; }
  .topbar__nav,
  .topbar__actions { display: none; }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: auto;
    gap: 14px;
  }
  .topbar-menu {
    display: block;
    width: auto;
    margin-left: auto;
  }
  .topbar__menu-toggle {
    width: auto;
    min-width: 96px;
  }
  .topbar-menu[open] {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }
  .lang-switch {
    width: fit-content;
  }
  .glow-panel__grid { grid-template-columns: 1fr; }
  .glow-panel__artframe img { min-height: 280px; }
  .infra-node { min-height: 220px; }
  .infra-node__image {
    padding: 10px;
    object-fit: contain;
  }
  .infra-node::after { width: 140px; bottom: 70px; }
  .infra-node__branch--dev { left: 14px; }
  .infra-node__branch--art { right: 14px; }
}
