* {
  box-sizing: border-box;
}

:root {
  --bg: #07101f;
  --bg-soft: rgba(10, 22, 44, 0.76);
  --panel: rgba(13, 23, 42, 0.78);
  --panel-strong: rgba(10, 19, 37, 0.92);
  --line: rgba(127, 167, 255, 0.2);
  --line-strong: rgba(132, 181, 255, 0.38);
  --text: #f7fbff;
  --muted: #a5b7d9;
  --mint: #57ff9c;
  --mint-soft: rgba(87, 255, 156, 0.18);
  --cyan: #61d4ff;
  --blue: #4b7fff;
  --orange: #ff9b57;
  --rose: #ff6e86;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  /* Высота зоны под фиксированный topbar (подстраивается в медиазапросах) */
  --tt-topbar-stack: 92px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(86, 109, 255, 0.16), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(67, 219, 151, 0.15), transparent 25%),
    linear-gradient(180deg, #08111f 0%, #07111e 45%, #050d19 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(91, 160, 255, 0.08), transparent 18%),
    linear-gradient(transparent, transparent);
  transition: background-position 0.18s ease;
  z-index: 0;
}

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

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

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(22px);
}

.ambient--left {
  top: 120px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: rgba(80, 120, 255, 0.22);
  border-radius: 50%;
}

.ambient--right {
  top: 240px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(87, 255, 156, 0.16);
  border-radius: 50%;
}

.ambient--grid {
  inset: 0;
  filter: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 70%);
}

.section {
  position: relative;
}

/* fixed вместо sticky: иначе контент с transform (карточки, tilt) промотируется выше шапки в композитинге */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5000;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 14px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 14, 28, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body > main {
  padding-top: calc(var(--tt-topbar-stack) + env(safe-area-inset-top, 0px));
}

.topbar__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(132, 181, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.topbar__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(132, 181, 255, 0.5);
}

.topbar__menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.topbar__menu-icon::before,
.topbar__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.topbar__menu-icon::before {
  top: -7px;
}

.topbar__menu-icon::after {
  top: 7px;
}

.topbar__menu-panel {
  display: contents;
}

.topbar__backdrop {
  display: none;
}

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

.topbar__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(92, 255, 162, 0.2), rgba(92, 135, 255, 0.25));
  border: 1px solid rgba(122, 173, 255, 0.28);
  color: var(--mint);
  font-family: "Unbounded", sans-serif;
  font-size: 0.86rem;
}

.topbar__brand-text {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
}

.topbar__nav,
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.topbar__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.chip,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.02);
}

.chip--accent,
.button--primary {
  background: linear-gradient(135deg, rgba(86, 126, 255, 0.92), rgba(87, 255, 156, 0.78));
  color: #07101b;
  border-color: rgba(144, 255, 194, 0.55);
  box-shadow: 0 16px 40px rgba(66, 120, 255, 0.24);
  font-weight: 800;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  font-weight: 700;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.chip:hover,
.button:hover,
.scenario-chip:hover,
.progress-dot:hover {
  transform: translateY(-1px);
}

.section {
  width: min(
    1220px,
    calc(100vw - 36px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
  );
  margin: 0 auto;
  padding: 36px 0 48px;
}

.section[id] {
  scroll-margin-top: calc(var(--tt-topbar-stack) + env(safe-area-inset-top, 0px) + 16px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - var(--tt-topbar-stack) - env(safe-area-inset-top, 0px));
  padding-top: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(97, 212, 255, 0), rgba(97, 212, 255, 1));
}

.hero h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  color: #ff9758;
  text-shadow:
    0 0 28px rgba(255, 152, 88, 0.28),
    0 0 60px rgba(255, 152, 88, 0.08);
}

.hero__lead,
.section-heading p,
.step-card p,
.feature-card p,
.faq-item p,
.journey-card p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero__actions,
.cta-panel__actions,
.step-card__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero__points li {
  position: relative;
  padding-left: 22px;
  color: #dce8ff;
}

.hero__points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 0 14px rgba(87, 255, 156, 0.38);
}

.terminal-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 540px;
  border-radius: 34px;
  border: 1px solid rgba(129, 163, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(13, 24, 44, 0.94) 0%, rgba(7, 13, 24, 0.95) 100%);
  box-shadow: var(--shadow);
}

.terminal-card__glow {
  position: absolute;
  inset: auto auto 62% -12%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(81, 132, 255, 0.18);
  filter: blur(50px);
}

.terminal-card__header,
.terminal-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.terminal-card__title {
  font-size: 1.4rem;
  font-weight: 800;
}

.terminal-card__subtitle,
.metric__label {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.terminal-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(142, 167, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #c8d7ff;
  font-size: 0.82rem;
}

.terminal-badge--green {
  background: rgba(87, 255, 156, 0.12);
  color: #8dffb8;
  border-color: rgba(87, 255, 156, 0.28);
}

.terminal-card__chart {
  position: relative;
  margin: 26px 0 22px;
  padding: 26px 18px 18px;
  height: 300px;
  border-radius: 26px;
  border: 1px solid rgba(121, 159, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(9, 18, 34, 0.9), rgba(10, 17, 31, 0.7));
}

.terminal-card__chart::before,
.terminal-card__chart::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: rgba(153, 181, 255, 0.14);
}

.terminal-card__chart::before {
  top: 34%;
}

.terminal-card__chart::after {
  top: 68%;
}

.chart-bars {
  position: absolute;
  inset: 22px 18px 22px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.bar {
  position: relative;
  display: block;
  width: calc(12.5% - 11px);
  min-width: 16px;
  height: var(--h);
  border-radius: 14px 14px 6px 6px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
  animation: sway 3.8s ease-in-out infinite;
}

.bar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% - 2px);
  width: 2px;
  height: 32px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.bar--up {
  color: #35dd97;
  background: linear-gradient(180deg, rgba(66, 237, 162, 1), rgba(28, 163, 111, 0.84));
}

.bar--down {
  color: #ff7a8f;
  background: linear-gradient(180deg, rgba(255, 126, 150, 1), rgba(219, 78, 100, 0.84));
}

.chart-line {
  position: absolute;
  inset: auto 18px 62px 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(86, 126, 255, 0.16), rgba(97, 212, 255, 0.9), rgba(87, 255, 156, 0.12));
  box-shadow: 0 0 22px rgba(97, 212, 255, 0.22);
}

.terminal-card__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(132, 160, 240, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 14px;
}

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

.journey-card,
.feature-card,
.step-card,
.strategy-card,
.cta-panel,
.faq-item,
.progress-rail,
.scenario-chip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 37, 0.9), rgba(9, 16, 29, 0.72));
  box-shadow: var(--shadow);
}

.journey-card,
.feature-card,
.strategy-card,
.faq-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
}

.journey-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(87, 255, 156, 0.12);
  color: var(--mint);
  font-weight: 800;
}

.journey-card h3,
.feature-card h3,
.strategy-card h3,
.step-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.walkthrough__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.progress-rail {
  position: sticky;
  top: calc(var(--tt-topbar-stack) + env(safe-area-inset-top, 0px) + 8px);
  padding: 20px;
  border-radius: 28px;
}

.progress-rail__title {
  margin-bottom: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-rail__line {
  position: absolute;
  left: 41px;
  top: 76px;
  bottom: 28px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-rail__fill {
  display: block;
  width: 100%;
  height: var(--rail-fill, 0%);
  background: linear-gradient(180deg, var(--cyan), var(--mint));
  transition: height 0.28s ease;
}

.progress-rail__nav {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.progress-dot {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.progress-dot span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(138, 171, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 800;
}

.progress-dot strong {
  font-size: 0.95rem;
}

.progress-dot.is-active {
  color: var(--text);
}

.progress-dot.is-active span {
  background: linear-gradient(135deg, rgba(86, 126, 255, 0.95), rgba(87, 255, 156, 0.95));
  color: #07101b;
  border-color: transparent;
}

.step-stack {
  display: grid;
  gap: 18px;
}

.step-card {
  padding: 26px;
  border-radius: 30px;
  scroll-margin-top: calc(var(--tt-topbar-stack) + env(safe-area-inset-top, 0px) + 20px);
}

.step-card__index {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(97, 212, 255, 0.12);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #d9e5ff;
  line-height: 1.75;
}

.step-card__tip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(87, 255, 156, 0.08);
  border: 1px solid rgba(87, 255, 156, 0.18);
  color: #d9ffe7;
}

.step-card__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(132, 181, 255, 0.28);
}

.strategy-lab__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.scenario-chip {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.scenario-chip.is-active {
  color: #07101b;
  background: linear-gradient(135deg, rgba(255, 154, 88, 0.95), rgba(255, 227, 120, 0.88));
  border-color: rgba(255, 196, 123, 0.56);
}

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

.strategy-card {
  min-height: 220px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.strategy-card__emoji {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
}

.strategy-card.is-highlighted {
  border-color: rgba(87, 255, 156, 0.36);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(87, 255, 156, 0.14);
}

.strategy-card.is-muted {
  opacity: 0.46;
  transform: scale(0.985);
}

.showcase-grid {
  gap: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 14px 0 0;
}

.cta-panel {
  padding: 34px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(87, 255, 156, 0.14);
  filter: blur(20px);
}

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dff4ff;
}

@keyframes sway {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1120px) {
  .hero,
  .walkthrough__layout {
    grid-template-columns: 1fr;
  }

  .progress-rail {
    position: relative;
    top: 0;
  }

  .progress-rail__line {
    display: none;
  }

  .journey-grid,
  .showcase-grid,
  .strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --tt-topbar-stack: 56px;
  }

  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .topbar__brand {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    width: auto;
  }

  .topbar__brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  .topbar__brand-text {
    font-size: clamp(0.88rem, 3.8vw, 1.05rem);
  }

  .topbar__menu-toggle {
    display: inline-flex;
    order: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  /* Оверлей: не раздувает высоту шапки — только одна строка + выпадашка поверх контента */
  .topbar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 4980;
    background: rgba(0, 6, 16, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .topbar__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topbar__menu-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top, 0px) + var(--tt-topbar-stack));
    z-index: 4990;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 10px max(14px, env(safe-area-inset-left, 0px)) 14px max(14px, env(safe-area-inset-right, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 18px 18px;
    background: rgba(7, 14, 28, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .topbar__menu-panel.is-open {
    display: block;
    max-height: min(58vh, calc(100vh - env(safe-area-inset-top, 0px) - var(--tt-topbar-stack) - env(safe-area-inset-bottom, 0px) - 12px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topbar__nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    gap: 2px;
  }

  .topbar__nav a {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 10px 12px;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .topbar__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    gap: 6px;
  }

  .topbar__actions .chip {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .strategy-lab__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .scenario-chip {
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: normal;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .journey .section-heading h2 {
    font-size: clamp(1.28rem, 5.2vw, 1.85rem);
  }

  body.topbar-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 820px) {
  .section {
    width: min(
      1220px,
      calc(100vw - 36px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
    );
    padding: 26px 0 34px;
  }

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

  .terminal-card {
    min-height: 460px;
  }

  .journey-grid,
  .showcase-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .terminal-card__footer {
    grid-template-columns: 1fr;
  }
}

.pulse-grid,
.strategy-detail-grid {
  display: grid;
  gap: 18px;
}

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

.pulse-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 37, 0.82), rgba(8, 15, 28, 0.68));
  box-shadow: var(--shadow);
}

.pulse-card__label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.pulse-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff0d8;
}

.pulse-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.floating-pills {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 250px;
}

.floating-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 15, 29, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  animation: float-pill 5.2s ease-in-out infinite;
}

.floating-pill--mint {
  color: #91ffc2;
}

.floating-pill--orange {
  color: #ffbf8f;
  animation-delay: 0.6s;
}

.floating-pill--cyan {
  color: #9fe8ff;
  animation-delay: 1.2s;
}

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

.strategy-detail {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 20, 37, 0.9), rgba(9, 16, 29, 0.72));
  box-shadow: var(--shadow);
}

.strategy-detail summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 22px 18px;
}

.strategy-detail summary::-webkit-details-marker {
  display: none;
}

.strategy-detail__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strategy-detail__emoji {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.45rem;
}

.strategy-detail__head strong {
  display: block;
  font-size: 1.08rem;
}

.strategy-detail__head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.strategy-detail__body {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.72;
}

.strategy-detail__body p {
  margin: 0 0 14px;
}

.mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.mini-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 170, 255, 0.18);
  color: #dbe8ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes float-pill {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1120px) {
  .pulse-grid,
  .strategy-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pulse-grid,
  .strategy-detail-grid {
    grid-template-columns: 1fr;
  }

  .floating-pills {
    position: static;
    justify-content: flex-start;
    max-width: none;
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .hero > * {
    min-width: 0;
  }

  .hero h1 {
    font-size: 2.1rem;
    overflow-wrap: anywhere;
  }

  .button,
  .chip {
    width: 100%;
    min-height: 46px;
  }

  .hero__actions,
  .cta-panel__actions,
  .step-card__actions {
    display: grid;
  }

  .progress-dot {
    grid-template-columns: 32px 1fr;
  }

  .step-card,
  .cta-panel,
  .journey-card,
  .feature-card,
  .strategy-card,
  .faq-item {
    padding: 20px;
  }

  .pulse-card,
  .strategy-detail summary,
  .strategy-detail__body {
    padding: 20px;
  }

  .terminal-card {
    padding: 16px;
    min-height: 360px;
  }

  .terminal-card__chart {
    height: 220px;
  }

  .hero__lead,
  .section-heading p,
  .step-card p,
  .feature-card p,
  .faq-item p,
  .journey-card p,
  .cta-panel p {
    font-size: 0.97rem;
    line-height: 1.68;
  }

  .strategy-lab__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .scenario-chip {
    min-height: 44px;
    font-size: 0.78rem;
    padding: 0 6px;
  }

  .hero {
    gap: 20px;
  }

  .section {
    padding: 22px 0 32px;
  }

  .section-heading h2,
  .walkthrough .section-heading h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  .section {
    width: min(
      1220px,
      calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
    );
  }

  .section-heading h2,
  .cta-panel h2 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .terminal-card__title {
    font-size: 1.15rem;
  }

  .terminal-badges {
    justify-content: flex-start;
  }

  .journey-card__step,
  .strategy-detail__emoji {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
