/* =====================================================
   Brand Growth — Interactive Educational Guide
   Original layout. No homepage hero/bento reuse.
   Tokens from main.css (navy / teal / coral).
   ===================================================== */

.bg-page {
  --bg-ink: #001830;
  --bg-navy: #01284F;
  --bg-teal: #005F8D;
  --bg-teal-soft: #DCEEF6;
  --bg-paper: #FFFBF7;
  --bg-mist: #F2F8FB;
  --bg-line: rgba(1, 40, 79, 0.12);
  --bg-glow: rgba(0, 95, 141, 0.35);
  --bg-coral: #FF4D2E;
  --bg-coral-dark: #D93A1D;
  --bg-gold: #FFC700;
  --font-guide: "Plus Jakarta Sans", "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-primary);
  background: var(--bg-paper);
  overflow-x: clip;
}

.bg-page h1,
.bg-page h2,
.bg-page h3,
.bg-page h4 {
  font-family: var(--font-guide);
  letter-spacing: -0.02em;
}

/* ---- Shared scaffolding ---- */
.guide-section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.guide-section.deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.guide-section--ink {
  background: linear-gradient(165deg, var(--bg-ink) 0%, var(--bg-navy) 55%, #003a5c 100%);
  color: #fff;
}

.guide-section--mist {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0, 95, 141, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 77, 46, 0.06), transparent 50%),
    var(--bg-mist);
}

.guide-section--paper {
  background:
    linear-gradient(180deg, rgba(220, 238, 246, 0.35), transparent 30%),
    var(--bg-paper);
}

.guide-section--teal-wash {
  background:
    linear-gradient(135deg, #e8f4fa 0%, var(--bg-paper) 40%, #fff5f1 100%);
}

.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-teal);
  margin-bottom: 1rem;
}

.guide-section--ink .chapter-label {
  color: var(--bg-gold);
}

.chapter-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.guide-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.guide-section--ink .guide-title {
  color: #fff;
}

.guide-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.guide-section--ink .guide-lede {
  color: rgba(255, 255, 255, 0.78);
}

.guide-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.guide-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-header--center .guide-title,
.guide-header--center .guide-lede {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Guide CTAs (page-local, not homepage buttons) ---- */
.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-guide);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease;
}

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

.guide-btn--primary {
  background: var(--bg-coral);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 77, 46, 0.28);
}

.guide-btn--primary:hover {
  background: var(--bg-coral-dark);
  box-shadow: 0 16px 36px rgba(255, 77, 46, 0.35);
}

.guide-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.guide-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.guide-btn--ink {
  background: var(--bg-navy);
  color: #fff;
}

.guide-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .guide-parallax-soft {
      animation: guideParallaxDrift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    @keyframes guideParallaxDrift {
      from { transform: translateY(-18px); }
      to { transform: translateY(18px); }
    }
  }
}

/* =====================================================
   SECTION 1 — Hero
   ===================================================== */
.guide-hero {
  position: relative;
  min-height: min(100vh, 920px);
  padding: 8.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 85% 35%, rgba(0, 95, 141, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 77, 46, 0.12), transparent 55%),
    linear-gradient(155deg, #00101f 0%, var(--bg-ink) 40%, var(--bg-navy) 100%);
  color: #fff;
  overflow: hidden;
}

.guide-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.guide-hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.35rem;
  max-width: 14ch;
}

.guide-hero__title em {
  font-style: normal;
  color: var(--bg-gold);
}

.guide-hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
  margin-bottom: 1rem;
}

.guide-hero__sub + .guide-hero__sub {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.guide-hero__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Journey illustration */
.journey-board {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.journey-board__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
  text-align: center;
}

.journey-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 520px;
  overflow: hidden;
}

.journey-rail {
  position: absolute;
  left: 22px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.journey-rail__flow {
  position: absolute;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--bg-teal), var(--bg-gold), transparent);
  animation: railFlow 3.2s ease-in-out infinite;
}

@keyframes railFlow {
  0% { top: -40%; }
  100% { top: 100%; }
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0;
  opacity: 0.4;
  transform: translateX(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.journey-step.is-active {
  opacity: 1;
  transform: none;
}

.journey-step__node {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 95, 141, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  z-index: 1;
  position: relative;
}

.journey-step.is-active .journey-step__node {
  background: var(--bg-teal);
  box-shadow: 0 0 0 4px rgba(0, 95, 141, 0.35), 0 0 24px rgba(0, 95, 141, 0.5);
}

.journey-step__node svg {
  width: 20px;
  height: 20px;
}

.journey-step__text {
  font-size: 0.92rem;
  font-weight: 600;
}

.journey-walker {
  position: absolute;
  left: 10px;
  top: 0;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
  transition: top 0.55s var(--ease-out);
  filter: drop-shadow(0 0 8px rgba(255, 199, 0, 0.6));
}

.journey-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.journey-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bg-gold);
  opacity: 0.5;
  animation: particleFloat 6s linear infinite;
}

.journey-particles span:nth-child(1) { left: 18%; animation-delay: 0s; }
.journey-particles span:nth-child(2) { left: 42%; animation-delay: 1.2s; background: #7ec8e3; }
.journey-particles span:nth-child(3) { left: 68%; animation-delay: 2.4s; }
.journey-particles span:nth-child(4) { left: 85%; animation-delay: 3.1s; background: #7ec8e3; }
.journey-particles span:nth-child(5) { left: 30%; animation-delay: 4s; }

@keyframes particleFloat {
  0% { top: 100%; opacity: 0; transform: scale(0.6); }
  15% { opacity: 0.7; }
  85% { opacity: 0.5; }
  100% { top: -5%; opacity: 0; transform: scale(1.2); }
}

/* =====================================================
   SECTION 2 — Compact horizontal buy journey
   ===================================================== */
.buy-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 95, 141, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 77, 46, 0.07), transparent 50%),
    linear-gradient(180deg, #eaf4f8 0%, var(--bg-paper) 55%, #fff 100%);
  contain-intrinsic-size: auto 560px;
}

.buy-section__title {
  max-width: 18ch;
}

.buy-journey {
  position: relative;
  margin: 0 auto 1.5rem;
}

.buy-journey__track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem 0.15rem;
}

.buy-card {
  flex: 1 1 140px;
  max-width: 168px;
  min-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 28px rgba(1, 40, 79, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  cursor: default;
}

.buy-journey.is-live .buy-card {
  opacity: 1;
  transform: none;
}

.buy-journey.is-live .buy-card:nth-child(1) { transition-delay: 0.02s; }
.buy-journey.is-live .buy-card:nth-child(3) { transition-delay: 0.08s; }
.buy-journey.is-live .buy-card:nth-child(5) { transition-delay: 0.14s; }
.buy-journey.is-live .buy-card:nth-child(7) { transition-delay: 0.2s; }
.buy-journey.is-live .buy-card:nth-child(9) { transition-delay: 0.26s; }
.buy-journey.is-live .buy-card:nth-child(11) { transition-delay: 0.32s; }
.buy-journey.is-live .buy-card:nth-child(13) { transition-delay: 0.38s; }
.buy-journey.is-live .buy-card:nth-child(15) { transition-delay: 0.44s; }

.buy-card:hover,
.buy-card:focus-visible,
.buy-journey.is-live .buy-card:hover,
.buy-journey.is-live .buy-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(0, 95, 141, 0.35);
  box-shadow:
    0 16px 36px rgba(0, 95, 141, 0.14),
    0 0 0 1px rgba(255, 77, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(220, 238, 246, 0.75) 100%);
}

.buy-card--success {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.85) 0%, rgba(232, 248, 240, 0.7) 100%);
}

.buy-card--success:hover,
.buy-card--success:focus-visible,
.buy-journey.is-live .buy-card--success:hover,
.buy-journey.is-live .buy-card--success:focus-visible {
  border-color: rgba(16, 140, 90, 0.35);
}

.buy-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--bg-teal);
  background: linear-gradient(145deg, #ffffff 0%, #dceef6 100%);
  border: 1px solid rgba(0, 95, 141, 0.14);
  box-shadow: 0 6px 16px rgba(0, 95, 141, 0.12);
  margin-bottom: 0.15rem;
}

.buy-card--success .buy-card__icon {
  color: #0f8a58;
  background: linear-gradient(145deg, #ffffff 0%, #dff5ea 100%);
  border-color: rgba(15, 138, 88, 0.18);
}

.buy-card:hover .buy-card__icon {
  color: var(--bg-coral);
  box-shadow: 0 8px 20px rgba(255, 77, 46, 0.18);
}

.buy-card__icon svg {
  width: 30px;
  height: 30px;
}

.buy-icon-draw {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.buy-journey.is-live .buy-icon-draw {
  animation: buyIconDraw 1.1s var(--ease-out) forwards;
}

.buy-icon-pulse {
  transform-origin: center;
  animation: buyIconPulse 2s ease-in-out infinite;
}

@keyframes buyIconDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes buyIconPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.buy-card h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--bg-navy);
  line-height: 1.25;
  margin: 0;
}

.buy-card p {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0;
}

.buy-connector {
  flex: 0 0 34px;
  align-self: center;
  width: 34px;
  height: 24px;
  color: var(--bg-teal);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.buy-journey.is-live .buy-connector {
  opacity: 1;
  transform: none;
}

.buy-connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.buy-connector__line {
  stroke: url(#buyFlowGrad);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0, 95, 141, 0.45));
}

.buy-connector__head {
  fill: var(--bg-coral);
  filter: drop-shadow(0 0 4px rgba(255, 77, 46, 0.55));
}

.buy-connector__particle {
  fill: #ffc700;
  filter: drop-shadow(0 0 5px rgba(255, 199, 0, 0.8));
}

.buy-warning {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(1, 40, 79, 0.96) 0%, #005f8d 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(1, 40, 79, 0.22);
  position: relative;
  overflow: hidden;
}

.buy-warning::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(255, 77, 46, 0.28), transparent 45%);
  pointer-events: none;
}

.buy-warning__title {
  position: relative;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

.buy-warning__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.buy-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 77, 46, 0.18);
  border: 1px solid rgba(255, 120, 100, 0.45);
  color: #ffe4de;
  white-space: nowrap;
}

.buy-warning__success {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(16, 140, 90, 0.22);
  border: 1px solid rgba(120, 220, 170, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e8fff4;
}

.buy-warning__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1fad6d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.1rem;
  box-shadow: 0 0 12px rgba(31, 173, 109, 0.55);
}

@media (min-width: 1100px) {
  .buy-journey__track {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, auto));
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
  }

  .buy-card {
    flex: none;
    width: 138px;
    max-width: none;
    min-width: 0;
  }

  .buy-connector {
    width: 28px;
    flex: none;
  }

  .buy-connector--wrap {
    /* keep flow in one row on wide screens */
  }
}

@media (max-width: 1099px) and (min-width: 720px) {
  .buy-card {
    flex: 0 1 150px;
    max-width: 160px;
  }

  .buy-connector--wrap {
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 719px) {
  .buy-journey {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .buy-journey__track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.35rem 1rem 0.85rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .buy-card {
    flex: 0 0 148px;
    max-width: none;
    scroll-snap-align: center;
  }

  .buy-connector {
    flex: 0 0 28px;
  }

  .buy-warning {
    padding: 1.1rem;
  }

  .buy-chip {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-card,
  .buy-connector {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .buy-icon-draw {
    stroke-dashoffset: 0;
    animation: none;
  }

  .buy-icon-pulse,
  .buy-connector__particle {
    animation: none !important;
  }
}

/* =====================================================
   SECTION 3 — Ecosystem
   ===================================================== */
.ecosystem {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 560px;
}

.ecosystem-canvas {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.ecosystem-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecosystem-svg .eco-link {
  fill: none;
  stroke: rgba(0, 95, 141, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: dashMove 18s linear infinite;
}

.ecosystem-svg .eco-link.is-hot {
  stroke: var(--bg-coral);
  stroke-opacity: 0.85;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(255, 77, 46, 0.55));
}

@keyframes dashMove {
  to { stroke-dashoffset: -200; }
}

.eco-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1a6fa0, var(--bg-navy) 70%);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  box-shadow: 0 0 0 10px rgba(0, 95, 141, 0.15), 0 0 40px rgba(0, 95, 141, 0.35);
  z-index: 3;
  animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(0, 95, 141, 0.15), 0 0 40px rgba(0, 95, 141, 0.35); }
  50% { box-shadow: 0 0 0 16px rgba(0, 95, 141, 0.2), 0 0 55px rgba(0, 95, 141, 0.5); }
}

.eco-node {
  position: absolute;
  width: 86px;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
}

.eco-node__orb {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.35rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--bg-line);
  display: grid;
  place-items: center;
  color: var(--bg-teal);
  box-shadow: 0 8px 20px rgba(1, 40, 79, 0.08);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.eco-node:hover .eco-node__orb,
.eco-node.is-active .eco-node__orb {
  transform: scale(1.08);
  background: var(--bg-teal);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(0, 95, 141, 0.18), 0 12px 28px rgba(0, 95, 141, 0.25);
}

.eco-node__orb svg {
  width: 22px;
  height: 22px;
}

.eco-node__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.eco-panel {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 18px;
  padding: 1.75rem;
  min-height: 320px;
  box-shadow: 0 18px 50px rgba(1, 40, 79, 0.08);
  position: relative;
  overflow: hidden;
}

.eco-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bg-teal), var(--bg-coral));
}

.eco-panel__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.eco-panel__title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--bg-navy);
}

.eco-panel__block {
  margin-bottom: 1rem;
}

.eco-panel__block h4 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-teal);
  margin-bottom: 0.35rem;
}

.eco-panel__block p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* =====================================================
   SECTION 4 — Platform chain
   ===================================================== */
.platform-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.platform-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 95, 141, 0.3);
  box-shadow: 0 20px 48px rgba(1, 40, 79, 0.1);
}

.platform-card__index {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--bg-navy), var(--bg-teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.platform-card__index svg {
  width: 28px;
  height: 28px;
}

.platform-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--bg-navy);
}

.platform-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.platform-meta dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-teal);
  margin-bottom: 0.2rem;
}

.platform-meta dd {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 0.35rem;
}

.platform-connector {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0;
  color: var(--bg-teal);
}

.platform-connector svg {
  width: 28px;
  height: 36px;
  animation: connectorBounce 1.8s ease-in-out infinite;
}

@keyframes connectorBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* =====================================================
   SECTION 5 — Journey roadmap
   ===================================================== */
.roadmap {
  display: grid;
  gap: 1rem;
}

.roadmap-stage {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.roadmap-stage:hover,
.roadmap-stage.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 199, 0, 0.35);
}

.roadmap-stage__phase {
  background: rgba(0, 0, 0, 0.22);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.roadmap-stage__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bg-gold);
}

.roadmap-stage__name {
  font-size: 1.15rem;
  font-weight: 800;
}

.roadmap-stage__body {
  padding: 1.15rem 1.25rem;
}

.roadmap-stage__body p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.channel-pills span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: rgba(0, 95, 141, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.roadmap-arrow {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.15rem 0;
}

.roadmap-arrow svg {
  width: 22px;
  height: 22px;
}

/* =====================================================
   SECTION 6 — Execution workflow
   ===================================================== */
.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  position: relative;
}

.workflow-step {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(1, 40, 79, 0.1);
}

.workflow-step__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  background: var(--bg-teal-soft);
  color: var(--bg-teal);
  display: grid;
  place-items: center;
}

.workflow-step__icon svg {
  width: 22px;
  height: 22px;
}

.workflow-step__num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--bg-coral);
  margin-bottom: 0.25rem;
}

.workflow-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-navy);
}

.workflow-path {
  margin-top: 2rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(1, 40, 79, 0.08);
  overflow: hidden;
}

.workflow-path__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--bg-teal), var(--bg-coral), var(--bg-gold));
  transition: width 1.6s var(--ease-out);
  border-radius: inherit;
}

.workflow-path.is-filled .workflow-path__fill {
  width: 100%;
}

/* =====================================================
   SECTION 7 — Stack grid
   ===================================================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 16px;
  padding: 1.35rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.stack-card:hover {
  border-color: rgba(0, 95, 141, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(1, 40, 79, 0.08);
}

.stack-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stack-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bg-teal-soft), #fff);
  color: var(--bg-teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stack-card__icon svg {
  width: 22px;
  height: 22px;
}

.stack-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bg-navy);
}

.stack-card dl {
  display: grid;
  gap: 0.65rem;
}

.stack-card dt {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-teal);
}

.stack-card dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* =====================================================
   SECTION 8 — Comparison
   ===================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.compare-panel {
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.compare-panel--a {
  background: #f4f1ee;
  border: 1px solid rgba(1, 40, 79, 0.1);
}

.compare-panel--b {
  background: linear-gradient(160deg, var(--bg-navy) 0%, var(--bg-teal) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(1, 40, 79, 0.25);
}

.compare-panel__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.compare-panel--b .compare-panel__tag {
  color: var(--bg-gold);
}

.compare-panel h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.compare-flow {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.compare-flow__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.compare-flow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4b8ad;
  flex-shrink: 0;
}

.compare-panel--b .compare-flow__dot {
  background: var(--bg-gold);
  box-shadow: 0 0 10px rgba(255, 199, 0, 0.5);
}

.compare-verdict {
  font-size: 0.95rem;
  line-height: 1.55;
  padding-top: 1rem;
  border-top: 1px solid rgba(1, 40, 79, 0.1);
  color: var(--text-secondary);
}

.compare-panel--b .compare-verdict {
  border-top-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.compare-svg {
  width: 100%;
  height: 90px;
  margin-bottom: 1rem;
}

/* =====================================================
   SECTION 9 — Industries
   ===================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 199, 0, 0.35);
}

.industry-card__art {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  color: var(--bg-gold);
}

.industry-card__art svg {
  width: 100%;
  height: 100%;
}

.industry-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.industry-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

/* =====================================================
   SECTION 10 — Packages
   ===================================================== */
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.package-card {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(1, 40, 79, 0.1);
}

.package-card--featured {
  background: linear-gradient(165deg, var(--bg-navy), var(--bg-teal));
  color: #fff;
  border: none;
  transform: scale(1.03);
  z-index: 1;
}

.package-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.package-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-gold);
  color: var(--bg-ink);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
}

.package-card__name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.package-card__price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--bg-coral);
  margin-bottom: 0.35rem;
}

.package-card--featured .package-card__price {
  color: var(--bg-gold);
}

.package-card__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.package-card--featured .package-card__period {
  color: rgba(255, 255, 255, 0.65);
}

.package-card__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.package-card--featured .package-card__desc {
  color: rgba(255, 255, 255, 0.8);
}

.package-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.package-card li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.package-card--featured li {
  color: rgba(255, 255, 255, 0.88);
}

.package-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-teal);
}

.package-card--featured li::before {
  background: var(--bg-gold);
}

.package-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =====================================================
   SECTION 11 — FAQ
   ===================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-guide);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-navy);
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--bg-teal);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =====================================================
   SECTION 12 — Final CTA
   ===================================================== */
.guide-cta {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 77, 46, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 50% at 20% 0%, rgba(0, 95, 141, 0.4), transparent 50%),
    linear-gradient(160deg, var(--bg-ink), var(--bg-navy));
  color: #fff;
  overflow: hidden;
}

.guide-cta h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 16ch;
  margin: 0 auto 1rem;
  line-height: 1.15;
}

.guide-cta p {
  max-width: 42ch;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.6;
}

.guide-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.guide-cta__orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
  animation: orbitSpin 40s linear infinite;
}

.guide-cta__orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-gold);
  top: 20px;
  left: 50%;
  box-shadow: 0 0 16px rgba(255, 199, 0, 0.7);
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* ---- Side progress (desktop) ---- */
.guide-progress {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
}

.guide-progress a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(1, 40, 79, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.guide-progress a.is-current {
  background: var(--bg-coral);
  transform: scale(1.45);
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.2);
}

@media (min-width: 1280px) {
  .guide-progress {
    display: flex;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .guide-hero__grid,
  .ecosystem,
  .compare,
  .packages {
    grid-template-columns: 1fr;
  }

  .package-card--featured {
    transform: none;
  }

  .package-card--featured:hover {
    transform: translateY(-4px);
  }

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

  .ecosystem-canvas {
    max-width: 440px;
  }

  .eco-panel {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .guide-hero {
    padding-top: 7rem;
    min-height: auto;
  }

  .roadmap-stage {
    grid-template-columns: 1fr;
  }

  .platform-meta {
    grid-template-columns: 1fr;
  }

  .stack-grid,
  .industry-grid,
  .packages {
    grid-template-columns: 1fr;
  }

  .platform-card {
    grid-template-columns: 64px 1fr;
  }

  .eco-node {
    width: 72px;
  }

  .eco-node__orb {
    width: 42px;
    height: 42px;
  }

  .eco-node__label {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-rail__flow,
  .journey-particles span,
  .platform-connector svg,
  .eco-core,
  .ecosystem-svg .eco-link,
  .guide-cta__orbit,
  .guide-parallax-soft {
    animation: none !important;
  }
}
