/* ============================================================
   New to Solana — Journey
   Single-file design system for the guided onboarding path.
   Aesthetic: premium dark, frost-cyan accent, serif display.
   ============================================================ */

:root {
  /* Neutrals — subtly tinted cool */
  --bg:           #0d0f12;
  --bg-2:         #101317;
  --bg-3:         #131820;
  --bg-warm:      #14110e;     /* tint for the human/closing section */
  --surface:      #161a20;
  --surface-2:    #1b2029;
  --surface-3:    #222936;
  --line:         rgba(255,255,255,.07);
  --line-2:       rgba(255,255,255,.12);
  --line-strong:  rgba(255,255,255,.18);

  --ink:          #ecedef;
  --ink-2:        #b6bbc4;
  --ink-3:        #8a909a;
  --ink-4:        #5f646d;

  /* Frost / Solana-aligned accent */
  --frost-1:      #cfeef6;
  --frost-2:      #93d2e8;
  --frost-3:      #6fb9d6;
  --frost-deep:   #2d6e85;
  --frost-glow:   rgba(147,210,232,.20);
  --frost-grad:   linear-gradient(155deg, #cfeef6 0%, #93d2e8 45%, #6fb9d6 100%);
  --ink-on-frost: #062028;

  /* Type */
  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Motion */
  --ease:         cubic-bezier(.22,.61,.36,1);
  --ease-out:     cubic-bezier(.2,.7,.2,1);
  --dur:          .28s;
  --dur-slow:     .55s;

  /* Layout */
  --max:          1240px;
  --pad:          clamp(24px, 4vw, 64px);
  --stepper-w:    220px;
  --r-sm:         8px;
  --r-md:         12px;
  --r-lg:         18px;
  --r-xl:         24px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01','cv11';
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; text-align: left; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--frost-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--frost-2); color: var(--ink-on-frost); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ NAV ============ */
.jnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.jnav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.jnav-logo em { font-style: italic; font-weight: 400; color: var(--frost-2); }

.jnav-right { display: flex; align-items: center; gap: 18px; }
.jnav-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.jnav-switch {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur) var(--ease);
}
.jnav-switch:hover { color: var(--ink); }

/* ============ STEPPER (side rail) ============ */
.stepper {
  position: fixed;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 50;
  width: var(--stepper-w);
  padding: 22px 18px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  display: none;
}
@media (min-width: 1280px) { .stepper { display: block; } }

.stepper-rail {
  position: absolute;
  left: 27px;
  top: 38px;
  bottom: 70px;
  width: 2px;
}
.stepper-rail-track { position: absolute; inset: 0; background: var(--line); border-radius: 2px; }
.stepper-rail-fill {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0%;
  background: var(--frost-grad);
  box-shadow: 0 0 12px var(--frost-glow);
  border-radius: 2px;
  transition: height var(--dur-slow) var(--ease);
}

.stepper-list { list-style: none; display: flex; flex-direction: column; gap: 2px; position: relative; }
.stepper-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 0 7px 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.step-dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--ink-4);
  box-shadow: 0 0 0 4px var(--bg-2);
  transition: background var(--dur), border-color var(--dur), transform var(--dur);
  position: relative;
  z-index: 1;
}
.step-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink-4);
  transition: color var(--dur);
}
.step-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color var(--dur);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-list a:hover .step-name { color: var(--ink); }
.stepper-list a:hover .step-dot { border-color: var(--ink-2); }

.stepper-list a.is-done .step-dot { background: var(--frost-3); border-color: var(--frost-2); }
.stepper-list a.is-done .step-num { color: var(--ink-3); }
.stepper-list a.is-done .step-name { color: var(--ink-2); }

.stepper-list a.is-active .step-dot {
  background: var(--frost-1);
  border-color: var(--frost-1);
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 16px var(--frost-glow);
  transform: scale(1.15);
}
.stepper-list a.is-active .step-num { color: var(--frost-2); }
.stepper-list a.is-active .step-name { color: var(--ink); font-weight: 600; }

.stepper-help {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: flex; flex-direction: column; gap: 2px;
}
.stepper-help-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink-4);
}
.stepper-help-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--frost-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur);
}
.stepper-help-link:hover { color: var(--frost-1); }

/* ============ JOURNEY MAIN ============ */
.journey { position: relative; padding-top: 64px; }
@media (min-width: 1280px) { .journey { padding-left: calc(var(--stepper-w) + 56px); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur), background var(--dur);
  white-space: nowrap;
}
.btn-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn--frost {
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  border-color: rgba(207,238,246,.5);
  box-shadow: 0 4px 18px rgba(111,185,214,.18);
}
.btn--frost:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(111,185,214,.35), 0 0 0 1px rgba(207,238,246,.7);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.hero-glow--a {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(147,210,232,.55), transparent 70%);
  top: -100px; right: -100px;
}
.hero-glow--b {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(111,185,214,.35), transparent 70%);
  bottom: -120px; left: 10%;
}
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 64px; } }

.hero-left { position: relative; z-index: 2; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--frost-2);
  box-shadow: 0 0 12px var(--frost-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--frost-2);
  background: linear-gradient(90deg, #cfeef6, #93d2e8 70%, #6fb9d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 28px;
}

.hero-help {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, rgba(147,210,232,.07), rgba(147,210,232,.02));
  border: 1px solid rgba(147,210,232,.18);
  border-radius: var(--r-md);
  max-width: 460px;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.hero-help:hover {
  border-color: rgba(147,210,232,.4);
  background: linear-gradient(135deg, rgba(147,210,232,.13), rgba(147,210,232,.04));
  transform: translateY(-1px);
}
.hero-help-bubble {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(147,210,232,.12);
  display: flex; align-items: center; justify-content: center;
}
.hero-help-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-help-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--frost-2);
  text-transform: uppercase;
}
.hero-help-cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.hero-help-arrow {
  margin-left: auto;
  color: var(--frost-2);
  font-size: 16px;
  flex-shrink: 0;
}

.hero-right { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
}
.hero-portrait-frame {
  position: absolute;
  inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-portrait-frame::before {
  content: '';
  position: absolute;
  inset: auto 8% 0 8%;
  height: 65%;
  background:
    radial-gradient(ellipse at center 60%, rgba(147,210,232,.18) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(147,210,232,.04) 80%);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  border: 1px solid rgba(147,210,232,.12);
  border-bottom: none;
}
.hero-portrait-frame img {
  position: relative;
  height: 92%;
  max-height: 540px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
  z-index: 1;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.4) 6%, #000 18%);
          mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.4) 6%, #000 18%);
}

.hero-portrait-marker {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.hero-portrait-marker--1 { top: 12%; left: -4%; }
.hero-portrait-marker--2 { bottom: 18%; right: -2%; border-color: rgba(147,210,232,.3); }
.marker-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--frost-2);
}
.marker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-transform: uppercase;
  z-index: 3;
}
.hero-scroll-line {
  width: 32px; height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--frost-2);
  animation: scroll-shimmer 2s ease-in-out infinite;
}
@keyframes scroll-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============ SEGMENT BASE ============ */
.seg {
  position: relative;
  padding: clamp(72px, 9vw, 128px) var(--pad);
  border-top: 1px solid var(--line);
}
.seg-frame { max-width: var(--max); margin: 0 auto; }
.seg-header { max-width: 760px; margin-bottom: 56px; }
.seg-label {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.seg-label-num {
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: .05em;
}
.seg-label-of {
  color: var(--ink-4);
  letter-spacing: .08em;
}
.seg-label-name {
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
}
.seg-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.seg-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--frost-2);
  background: linear-gradient(90deg, #cfeef6, #93d2e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seg-lead {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
}

.seg-foot {
  max-width: var(--max);
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.seg-foot-from { color: var(--ink-4); }
.seg-foot-to { color: var(--ink-2); }
.seg-foot-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--frost-3) 50%, transparent 100%);
  opacity: .5;
}

/* Section-specific backgrounds (visual rhythm) */
.seg--01 { background: var(--bg); }
.seg--02 {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.seg--03 {
  background: var(--bg-3);
  position: relative;
}
.seg--03::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(147,210,232,.06), transparent 50%);
  pointer-events: none;
}
.seg--04 {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  position: relative;
}
.seg--04::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 50%;
  background: radial-gradient(ellipse at 100% 40%, rgba(147,210,232,.08), transparent 60%);
  pointer-events: none;
}
.seg--05 {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(147,210,232,.05), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.seg--06 { background: var(--bg-3); }
.seg--07 { background: var(--bg); }
.seg--08 {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-warm) 100%);
}

/* ============ LEARN CARDS (sec 01) ============ */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}
.learn-card {
  perspective: 1200px;
  height: 260px;
  width: 100%;
}
.learn-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease);
  border-radius: var(--r-md);
}
.learn-card.is-flipped .learn-inner { transform: rotateY(180deg); }
.learn-front, .learn-back {
  position: absolute; inset: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.learn-card:not(.is-flipped) .learn-back { pointer-events: none; }
.learn-card.is-flipped .learn-front { pointer-events: none; }
.learn-front {
  background: var(--surface);
  justify-content: space-between;
}
.learn-card:hover .learn-front {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.learn-back {
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border-color: rgba(147,210,232,.25);
  transform: rotateY(180deg);
  justify-content: space-between;
}

.learn-front-top {
  display: flex; align-items: center; justify-content: space-between;
}
.learn-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--frost-2);
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(147,210,232,.08);
  border: 1px solid rgba(147,210,232,.2);
  border-radius: 4px;
}
.learn-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--dur);
}
.learn-card:hover .learn-hint { color: var(--frost-2); }

.learn-front-main { display: flex; flex-direction: column; gap: 4px; }
.learn-metric {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--frost-1);
  line-height: 1;
}
.learn-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.learn-blurb {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.learn-back-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--frost-2);
  text-transform: uppercase;
}
.learn-back-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  flex: 1;
  margin: 12px 0;
}
.learn-back-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
}

/* ============ WATCH ROW ============ */
.watch-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
@media (min-width: 900px) { .watch-row { grid-template-columns: 1.6fr 1fr; gap: 40px; } }
.watch-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.watch-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frost-2);
  margin-bottom: 14px;
}
.watch-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}
.watch-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ============ PROOF CARDS (sec 02) ============ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  margin-bottom: 56px;
}
@media (min-width: 720px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .proof-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } }

.proof-card {
  perspective: 1200px;
  width: 100%;
  height: 100%;
}
.proof-card--lg {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 719px) { .proof-card--lg { grid-column: span 2; grid-row: span 1; } }

.proof-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease);
}
.proof-card.is-flipped .proof-inner { transform: rotateY(180deg); }

.proof-front, .proof-back {
  position: absolute; inset: 0;
  padding: 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.proof-card:not(.is-flipped) .proof-back { pointer-events: none; }
.proof-card.is-flipped .proof-front { pointer-events: none; }
.proof-card:hover .proof-front {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.proof-card--lg .proof-front {
  background:
    radial-gradient(ellipse at 80% 100%, rgba(147,210,232,.12), transparent 60%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: rgba(147,210,232,.22);
}
.proof-back {
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border-color: rgba(147,210,232,.3);
  transform: rotateY(180deg);
}

.proof-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--frost-2);
  padding: 4px 8px;
  background: rgba(147,210,232,.08);
  border: 1px solid rgba(147,210,232,.18);
  border-radius: 4px;
}
.proof-metric {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .95;
  color: var(--ink);
  margin: 12px 0 8px;
}
.proof-card--lg .proof-metric {
  font-size: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(135deg, #cfeef6, #93d2e8 60%, #6fb9d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.proof-card--lg .proof-title { font-size: 13px; color: var(--ink); }
.proof-hint {
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--dur);
}
.proof-card:hover .proof-hint { color: var(--frost-2); }

.proof-back-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--frost-2);
  text-transform: uppercase;
}
.proof-back p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}
.proof-card--lg .proof-back p { font-size: 17px; line-height: 1.5; }
.proof-back-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-4);
  text-transform: uppercase;
}

/* ============ TRUST STRIP ============ */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .trust { grid-template-columns: auto 1fr; align-items: center; gap: 40px; } }
.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(147,210,232,.04) 0%, transparent 50%);
  pointer-events: none;
}
.trust-label {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  z-index: 1;
}
.trust-label-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--frost-2);
  padding: 5px 10px;
  background: rgba(147,210,232,.08);
  border: 1px solid rgba(147,210,232,.2);
  border-radius: 4px;
}
.trust-label-text {
  font-size: 13px;
  color: var(--ink-3);
}
.trust-logos {
  display: flex; flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  position: relative; z-index: 1;
}
.trust-logo {
  display: inline-flex;
  align-items: center;
  height: 28px;
  opacity: .85;
  transition: opacity var(--dur), transform var(--dur);
}
.trust-logo img {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.trust-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ============ CANDO CARDS (sec 03) ============ */
.cando-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.cando-card {
  perspective: 1200px;
  height: 280px;
  width: 100%;
}
.cando-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease);
}
.cando-card.is-flipped .cando-inner { transform: rotateY(180deg); }
.cando-front, .cando-back {
  position: absolute; inset: 0;
  padding: 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.cando-card:not(.is-flipped) .cando-back { pointer-events: none; }
.cando-card.is-flipped .cando-front { pointer-events: none; }
.cando-front {
  background: var(--surface);
  justify-content: space-between;
}
.cando-card:hover .cando-front {
  border-color: rgba(147,210,232,.3);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.cando-back {
  background:
    radial-gradient(ellipse at top right, rgba(147,210,232,.08), transparent 60%),
    linear-gradient(155deg, var(--surface-2), var(--surface));
  border-color: rgba(147,210,232,.3);
  transform: rotateY(180deg);
  justify-content: space-between;
}

.cando-glyph {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: rgba(147,210,232,.07);
  border: 1px solid rgba(147,210,232,.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--frost-2);
  margin-bottom: 20px;
  transition: background var(--dur), border-color var(--dur);
}
.cando-card:hover .cando-glyph {
  background: rgba(147,210,232,.12);
  border-color: rgba(147,210,232,.35);
}
.cando-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.cando-blurb {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}
.cando-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--frost-2);
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  width: 100%;
  transition: gap var(--dur), color var(--dur);
}
.cando-card:hover .cando-cta { gap: 10px; color: var(--frost-1); }

.cando-back-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--frost-1);
  margin-bottom: 10px;
}
.cando-back p {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  flex: 1;
}
.cando-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
  transition: transform var(--dur), box-shadow var(--dur);
}
.cando-link:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(111,185,214,.3); }

/* ============ NEWSLETTER CHECKPOINT ============ */
.checkpoint {
  padding: 32px var(--pad);
  background: linear-gradient(90deg, rgba(147,210,232,.06) 0%, transparent 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.checkpoint::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--frost-grad);
  opacity: .6;
}
.checkpoint-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) { .checkpoint-inner { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.checkpoint-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frost-2);
  margin-bottom: 12px;
}
.checkpoint-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--frost-2);
  box-shadow: 0 0 10px var(--frost-glow);
}
.checkpoint-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.checkpoint-title em { font-style: italic; font-weight: 400; color: var(--frost-2); }
.checkpoint-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 52ch;
}
.checkpoint-right { display: flex; flex-direction: column; gap: 10px; }
.checkpoint-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .checkpoint-form { grid-template-columns: 1fr auto; align-items: end; } }
.checkpoint-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-4);
  padding: 0 4px;
}
.checkpoint-input-wrap {
  display: flex; flex-direction: column; gap: 4px;
}
.checkpoint-input-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.checkpoint-input {
  padding: 13px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color var(--dur), background var(--dur);
}
.checkpoint-input:focus {
  outline: none;
  border-color: var(--frost-3);
  background: var(--surface-2);
}
.checkpoint-input::placeholder { color: var(--ink-4); }
.checkpoint-btn { width: 100%; justify-content: center; }
@media (min-width: 600px) { .checkpoint-btn { width: auto; } }

/* ============ WALLET (sec 04) ============ */
.wallet-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 960px) { .wallet-layout { grid-template-columns: 1.4fr 1fr; gap: 28px; } }

.wallet-hero {
  position: relative;
  display: block;
  padding: 36px 36px 32px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(147,210,232,.12), transparent 60%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 60%, var(--surface-2) 100%);
  border: 1px solid rgba(147,210,232,.28);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.wallet-hero:hover {
  border-color: rgba(147,210,232,.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(147,210,232,.2);
}
.wallet-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(147,210,232,.08), transparent 40%),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.012) 10px 20px);
  pointer-events: none;
}

.wallet-hero-ribbon {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(111,185,214,.3);
}
.ribbon-star { font-size: 12px; }

.wallet-hero-top {
  position: relative;
  z-index: 1;
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 22px;
}
.wallet-hero-logo {
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(147,210,232,.3);
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.wallet-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.wallet-hero-naming { flex: 1; min-width: 0; }
.wallet-hero-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 8px;
}
.wallet-hero-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.wallet-hero-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  font-style: italic;
  color: rgba(147,210,232,.18);
  line-height: 1;
  letter-spacing: -0.03em;
}

.wallet-hero-desc {
  position: relative; z-index: 1;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 54ch;
  margin-bottom: 24px;
}
.wallet-hero-desc strong { color: var(--frost-1); font-weight: 600; }

.wallet-hero-perks {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.wallet-perk {
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-2);
}

.wallet-hero-cta-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
}
.wallet-hero-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.wallet-others { display: flex; flex-direction: column; gap: 10px; }
.wallet-others-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 0 4px 6px;
}
.wallet-others-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wallet-others-note {
  font-size: 11.5px;
  color: var(--ink-4);
  font-style: italic;
}

.wallet-alt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.wallet-alt:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateX(2px);
}
.wallet-alt-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.wallet-alt-body { flex: 1; min-width: 0; }
.wallet-alt-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2px;
}
.wallet-alt-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wallet-alt-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 2px 7px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.wallet-alt-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.wallet-alt-arrow {
  font-size: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: color var(--dur), transform var(--dur);
}
.wallet-alt:hover .wallet-alt-arrow { color: var(--frost-1); transform: translate(2px, -2px); }

/* ============ ROUTE BUILDER (sec 05) ============ */
.route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1080px) { .route-grid { grid-template-columns: 1.5fr 1fr; gap: 32px; } }

.route-builder { display: flex; flex-direction: column; gap: 28px; }

.builder-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.builder-step--final { padding: 24px 24px 28px; }
.builder-step-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.builder-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.builder-step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.builder-step-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* tabs xl (bridge/buy) */
.seg-tabs--xl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .seg-tabs--xl { grid-template-columns: 1fr 1fr; } }
.seg-tab {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur), background var(--dur);
}
.seg-tab:hover { border-color: var(--line-strong); background: var(--bg-3); }
.seg-tab.is-active {
  border-color: rgba(147,210,232,.45);
  background: linear-gradient(155deg, rgba(147,210,232,.07), var(--bg-2));
  box-shadow: 0 0 0 1px rgba(147,210,232,.25);
}
.seg-tab-head {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.seg-tab.is-active .seg-tab-head { color: var(--frost-1); }
.seg-tab-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.route-panel { display: none; flex-direction: column; gap: 28px; }
.route-panel.is-active { display: flex; }

/* chain pills */
.chain-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .chain-pills { grid-template-columns: repeat(3, 1fr); } }

.chain-pill {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.chain-pill:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chain-pill.is-active {
  border-color: rgba(147,210,232,.45);
  background: linear-gradient(155deg, rgba(147,210,232,.06), var(--bg-2));
}
.chain-pill-glyph {
  font-size: 18px;
  color: var(--frost-2);
  margin-bottom: 2px;
  line-height: 1;
}
.chain-pill-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.chain-pill-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* method tabs */
.method-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .method-tabs { grid-template-columns: 1fr 1fr; } }

.method-tab {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color var(--dur), background var(--dur);
}
.method-tab:hover { border-color: var(--line-strong); }
.method-tab.is-active {
  border-color: rgba(147,210,232,.45);
  background: linear-gradient(155deg, rgba(147,210,232,.06), var(--bg-2));
}
.method-tab-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(147,210,232,.1);
  color: var(--frost-2);
  border: 1px solid rgba(147,210,232,.25);
  border-radius: 4px;
}
.method-tab-badge--alt {
  background: var(--surface);
  color: var(--ink-3);
  border-color: var(--line-2);
}
.method-tab-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.method-tab-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* route step list */
.route-steps { display: none; list-style: none; position: relative; padding-left: 4px; }
.route-steps.is-active { display: block; }
.route-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-bottom: 24px;
}
.route-steps li:last-child { padding-bottom: 0; }
.route-steps li::before {
  content: '';
  position: absolute;
  left: 21px; top: 36px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(147,210,232,.4), transparent);
}
.route-steps li:last-child::before { display: none; }

.route-step-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--frost-2);
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}
.route-steps li.is-final .route-step-node {
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  border-color: rgba(207,238,246,.6);
  box-shadow: 0 0 0 4px rgba(147,210,232,.12);
}
.route-step-body { padding-top: 8px; }
.route-step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.route-step-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 10px;
}
.route-step-desc strong { color: var(--frost-1); font-weight: 600; }
.route-step-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  transition: border-color var(--dur), background var(--dur);
}
.route-step-link:hover { border-color: var(--frost-3); background: var(--surface); }
.route-step-link img { width: 18px; height: 18px; border-radius: 50%; }
.route-step-logos {
  display: flex; gap: 8px;
  margin-top: 4px;
}
.route-step-logos img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.route-step-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  background: rgba(147,210,232,.1);
  border: 1px solid rgba(147,210,232,.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--frost-1);
}

/* RIGHT — route summary */
.route-summary { position: sticky; top: 90px; }
@media (max-width: 1079px) { .route-summary { position: static; } }

.route-summary-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(147,210,232,.08), transparent 60%),
    var(--surface);
  border: 1px solid rgba(147,210,232,.22);
  border-radius: var(--r-lg);
  padding: 24px;
}
.route-summary-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-2);
}
.route-summary-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--frost-2);
}
.route-summary-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}

.route-summary-flow {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 22px;
}
.flow-node {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}
.flow-node--to { border-color: rgba(147,210,232,.4); background: linear-gradient(135deg, rgba(147,210,232,.08), var(--bg-2)); }
.flow-node-glyph {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--ink);
  flex-shrink: 0;
}
.flow-node-glyph--sol {
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  border-color: rgba(207,238,246,.6);
  font-weight: 700;
}
.flow-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: 2px;
}
.flow-node-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.flow-node > div, .flow-node-label, .flow-node-value {
  /* allow value/label to stack inside node */
}
.flow-node { flex-wrap: nowrap; }
.flow-node-label + .flow-node-value, .flow-node > span:nth-child(2) { /* shim */ }

.flow-bridge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  margin-left: 18px;
}
.flow-bridge-line {
  flex: 1;
  height: 1px;
  border-top: 1px dashed rgba(147,210,232,.4);
}
.flow-bridge-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--frost-2);
  padding: 3px 8px;
  background: rgba(147,210,232,.08);
  border: 1px solid rgba(147,210,232,.2);
  border-radius: 4px;
  white-space: nowrap;
}

.route-summary-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 22px;
}
.route-summary-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.route-summary-item-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--frost-2);
  padding-top: 1px;
}
.route-summary-item strong { color: var(--ink); font-weight: 600; }

.route-summary-widget {
  margin-bottom: 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.route-widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.route-widget-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frost-2);
}
.route-widget-close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: color var(--dur), border-color var(--dur);
}
.route-widget-close:hover { color: var(--ink); border-color: var(--line-strong); }
.route-widget-iframe {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  border: 0;
  background: #0a0d11;
}
@media (min-width: 1080px) { .route-widget-iframe { width: 430px; max-width: 100%; margin: 0 auto; } }

.route-summary-cta-wrap {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}
.route-summary-cta { justify-content: center; }
.route-summary-help {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-align: center;
  color: var(--ink-3);
  transition: color var(--dur);
}
.route-summary-help:hover { color: var(--frost-2); }

/* ============ NEXT (sec 06) ============ */
.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.next-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.next-card:hover {
  border-color: rgba(147,210,232,.35);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.next-card-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: rgba(147,210,232,.35);
  line-height: 1;
  letter-spacing: -0.02em;
}
.next-card:hover .next-card-num { color: var(--frost-2); }
.next-card-body { display: flex; flex-direction: column; }
.next-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.next-card-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.next-card-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--frost-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur);
}
.next-card:hover .next-card-cta { gap: 10px; }
.next-card-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* ============ COMMUNITY (sec 07) ============ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.community-card {
  perspective: 1200px;
  height: 240px;
  cursor: pointer;
}
.community-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease);
}
.community-card.is-flipped .community-inner { transform: rotateY(180deg); }

.community-front, .community-back {
  position: absolute; inset: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  padding: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.community-card:not(.is-flipped) .community-back { pointer-events: none; }
.community-card.is-flipped .community-front { pointer-events: none; }
.community-front {
  background: var(--surface);
  align-items: flex-start;
  justify-content: space-between;
}
.community-card:hover .community-front {
  border-color: rgba(147,210,232,.3);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.community-back {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(147,210,232,.1), transparent 60%),
    linear-gradient(155deg, var(--surface-2), var(--surface));
  border-color: rgba(147,210,232,.3);
  transform: rotateY(180deg);
  justify-content: space-between;
}

.community-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
}
.community-front-body { flex: 1; }
.community-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.community-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.community-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--frost-2);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  width: 100%;
}

.community-back-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frost-2);
  margin-bottom: 10px;
}
.community-back-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  flex: 1;
}
.community-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--frost-grad);
  color: var(--ink-on-frost);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
  transition: transform var(--dur);
}
.community-cta:hover { transform: translateY(-1px); }

/* ============ APPS (sec 08) ============ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.app-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.app-card:hover {
  border-color: rgba(147,210,232,.35);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.app-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
}
.app-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.app-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 14px;
}
.app-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  align-self: flex-start;
}
.app-arrow {
  position: absolute;
  top: 22px; right: 22px;
  color: var(--ink-3);
  font-size: 16px;
  transition: color var(--dur), transform var(--dur);
}
.app-card:hover .app-arrow { color: var(--frost-1); transform: translate(2px, -2px); }

.apps-more {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur), background var(--dur);
}
.apps-more:hover { border-color: var(--frost-3); }
.apps-more-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.apps-more-arrow {
  color: var(--frost-2);
  font-size: 18px;
  transition: transform var(--dur);
}
.apps-more:hover .apps-more-arrow { transform: translateX(4px); }

/* ============ CLOSING (ATH) ============ */
.closing {
  padding: clamp(72px, 9vw, 128px) var(--pad);
  background:
    radial-gradient(ellipse at 0% 100%, rgba(218,180,140,.05), transparent 40%),
    var(--bg-warm);
  border-top: 1px solid var(--line);
}
.closing-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) { .closing-inner { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

.closing-left {}
.closing-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.closing-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-2);
}
.closing-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: .95;
  margin-bottom: 14px;
  color: var(--ink);
}
.closing-cred {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 38ch;
}

.closing-mark {
  display: flex; align-items: center;
  margin-bottom: 22px;
}
.closing-mark-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--bg-warm);
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.closing-mark-avatar img { width: 100%; height: 100%; object-fit: cover; }

.closing-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink);
  transition: border-color var(--dur), background var(--dur);
}
.closing-link:hover { border-color: var(--line-strong); background: var(--surface-2); }

.closing-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}
.closing-quote-mark {
  position: absolute;
  top: -28px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: rgba(147,210,232,.28);
}
.closing-quote p { margin-bottom: 16px; }
.closing-quote p:last-of-type { margin-bottom: 22px; }
.closing-quote strong { font-style: normal; color: var(--frost-1); font-weight: 600; }
.closing-quote-foot {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* ============ FOOTER ============ */
.jfoot {
  padding: 56px var(--pad) 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.jfoot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 32px;
}
.jfoot-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.jfoot-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.jfoot-logo em { font-style: italic; font-weight: 400; color: var(--frost-2); }
.jfoot-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.jfoot-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .jfoot-links { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.jfoot-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.jfoot-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.jfoot-link--accent { border-color: rgba(147,210,232,.3); background: linear-gradient(135deg, rgba(147,210,232,.06), var(--surface)); }
.jfoot-link--accent:hover { border-color: rgba(147,210,232,.5); }
.jfoot-link-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.jfoot-link-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.jfoot-link--accent .jfoot-link-name { color: var(--frost-1); }

.jfoot-bottom {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: .02em;
}
.jfoot-bottom-sep { color: var(--line-strong); }

/* ============ SCROLL TOP ============ */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 18px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur), transform var(--dur), border-color var(--dur);
}
#scroll-top.is-visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { border-color: var(--frost-3); transform: translateY(-2px); }

/* ============ REVEAL ANIMATIONS — typed variants ============
   .reveal applies the baseline transition; .reveal--{variant} sets the
   from-state transform. .is-visible flips them to rest. The old
   list-of-selectors that hid everything by default has been replaced
   with explicit .reveal tagging from journey.js, so anything we don't
   tag (e.g. the route builder steps, footer) stays visible. */
.reveal {
  opacity: 0;
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal--up    { transform: translateY(22px); }
.reveal--left  { transform: translateX(-14px); }
.reveal--scale { transform: scale(.965) translateY(8px); transform-origin: left center; }
.reveal--card  { transform: translateY(20px) scale(.96); }
.reveal--fade  { /* no transform — stays grounded */ }

.is-visible {
  opacity: 1;
  transform: none;
}

/* Fast-scroll skip: deep-in-view on first observe → no animation. */
.reveal.reveal-no-anim {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

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

/* ============ STEPPER PULSE (single-shot on activation) ============ */
@keyframes step-dot-pulse {
  0%   { transform: scale(1.15); box-shadow: 0 0 0 4px var(--bg-2), 0 0 0   var(--frost-glow); }
  45%  { transform: scale(1.45); box-shadow: 0 0 0 4px var(--bg-2), 0 0 28px var(--frost-glow); }
  100% { transform: scale(1.15); box-shadow: 0 0 0 4px var(--bg-2), 0 0 16px var(--frost-glow); }
}
.stepper-list a.step-pulse.is-active .step-dot {
  animation: step-dot-pulse .6s var(--ease-out);
}

/* small screens: collapse stepper into top compact bar */
@media (max-width: 1279px) {
  .journey { padding-left: 0; }
}

/* ================================================================
   IMPROVEMENT PASS — additions / overrides only.
   This block is appended (not woven into the rules above) so the
   diff is contained. Everything here is additive and respects
   prefers-reduced-motion.
   ================================================================ */

/* ---- Typography ---- */
.seg-lead { font-size: 16px; line-height: 1.6; }
.proof-back p { font-size: 14.5px; }
.cando-blurb, .next-card-desc, .community-back-text, .app-desc {
  font-size: 14px;
  line-height: 1.6;
}

/* Tighter tracking on the largest titles */
.hero-title { letter-spacing: -0.035em; }
.seg-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }

/* ---- Buttons: universal press feedback + lift ---- */
.btn,
.seg-tab, .chain-pill, .method-tab,
.bridge-tab, .chain-tab, .route-type-tab,
.eco-persona-btn, .eco-cat-btn {
  -webkit-tap-highlight-color: transparent;
}
.btn:active,
.seg-tab:active, .chain-pill:active, .method-tab:active,
.bridge-tab:active, .chain-tab:active, .route-type-tab:active {
  transform: scale(.97);
  transition: transform 80ms ease;
}
.btn--frost:active { transform: scale(.97) translateY(0); }

/* ---- Hero: brighter glows + drawn-in route + portrait scale-in ---- */
.hero-glow--a { opacity: .48; }
.hero-glow--b { opacity: .42; }

/* SVG route draws itself in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-route path {
    stroke-dasharray: 4 8;
    /* Use the existing dasharray, but offset to push the dashes off-screen,
       then animate offset to 0 so the line "draws" in. */
    animation: hero-route-draw 2.4s cubic-bezier(.22,.61,.36,1) .2s both;
  }
  @keyframes hero-route-draw {
    0%   { stroke-dashoffset: 360; opacity: 0; }
    20%  { opacity: .55; }
    100% { stroke-dashoffset: 0;   opacity: .55; }
  }

  /* Portrait scale-in on load (subtle) */
  .hero-portrait-frame img {
    animation: hero-portrait-in 1.4s cubic-bezier(.22,.61,.36,1) .15s both;
  }
  @keyframes hero-portrait-in {
    0%   { transform: scale(.96); opacity: 0; }
    60%  { opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
  }
}

/* ---- Step 02: $3T+ card extra halo + brighter trust logos ---- */
.proof-card--lg .proof-front::after {
  content: '';
  position: absolute;
  inset: 30% -10% -20% 30%;
  background: radial-gradient(ellipse at 30% 50%, rgba(147,210,232,.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.proof-card--lg .proof-front > * { position: relative; z-index: 1; }

#why .trust-logo img { opacity: .72; }
#why .trust-logo:hover img { opacity: 1; }

/* ---- Step 03 (cando): per-card frost left accent for rhythm ---- */
.cando-grid .cando-card:nth-child(1) .cando-front,
.cando-grid .cando-card:nth-child(4) .cando-front {
  box-shadow: inset 3px 0 0 0 rgba(147,210,232,.35);
}
.cando-grid .cando-card:nth-child(2) .cando-front,
.cando-grid .cando-card:nth-child(5) .cando-front {
  box-shadow: inset 3px 0 0 0 rgba(147,210,232,.18);
}
.cando-grid .cando-card:nth-child(3) .cando-front,
.cando-grid .cando-card:nth-child(6) .cando-front {
  box-shadow: inset 3px 0 0 0 rgba(147,210,232,.55);
}

/* ---- Step 04: persistent soft frost halo behind the Solflare hero ---- */
.wallet-hero {
  position: relative;
}
.wallet-hero::after {
  content: '';
  position: absolute;
  inset: -40px -40px auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(147,210,232,.18), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.wallet-hero > * { position: relative; z-index: 1; }

/* ---- Step 05: Bridge/Buy as a real pill segment with sliding indicator ---- */
/* Desktop-only: sliding pill indicator inside the tab container.
   Below 700px the base .seg-tab active styles handle highlighting per tab. */
@media (min-width: 700px) {
  .seg-tabs--xl {
    position: relative;
    padding: 6px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    overflow: hidden;
  }
  .seg-tabs--xl::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
    left: 6px;
    background: linear-gradient(155deg, rgba(147,210,232,.10), rgba(147,210,232,.04));
    border: 1px solid rgba(147,210,232,.32);
    border-radius: 10px;
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
    z-index: 0;
  }
  /* When the second tab is active, slide indicator right */
  .seg-tabs--xl:has(> .seg-tab:nth-child(2).is-active)::before {
    transform: translateX(100%);
  }
  .seg-tabs--xl .seg-tab {
    position: relative;
    z-index: 1;
    background: transparent;
    border: 1px solid transparent;
  }
  .seg-tabs--xl .seg-tab:hover { background: transparent; border-color: transparent; }
  .seg-tabs--xl .seg-tab.is-active {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
  }
}

/* ---- Step 06 (next): dim siblings on hover, accent badge color ---- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .next-grid:hover .next-card { opacity: .55; transition: opacity .25s ease; }
  .next-grid:hover .next-card:hover { opacity: 1; }
}
.next-card:nth-child(1) .next-card-tag { color: var(--frost-2); border-color: rgba(147,210,232,.3); background: rgba(147,210,232,.06); }
.next-card:nth-child(4) .next-card-tag { color: rgb(196,160,232);  border-color: rgba(196,160,232,.3); background: rgba(196,160,232,.06); }

/* ---- Step 07: warmer surface tint without leaving the palette ---- */
.seg--07 .community-card .community-front {
  background: linear-gradient(155deg, #1a1c20 0%, #1f1d22 100%);
}
.seg--07 .community-card:hover .community-front {
  background: linear-gradient(155deg, #1d1f24 0%, #232026 100%);
}

/* ---- Step 08: hover frost glow + proper CTA button for "Explore" ---- */
.app-card {
  transition: border-color var(--dur), background var(--dur), transform var(--dur), box-shadow var(--dur);
}
.app-card:hover {
  box-shadow: 0 14px 36px -16px rgba(147,210,232,.45),
              0 0 0 1px rgba(147,210,232,.22);
}

.apps-more {
  padding: 18px 26px;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(147,210,232,.08), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border-color: rgba(147,210,232,.22);
  transition: border-color var(--dur), background var(--dur), transform var(--dur), box-shadow var(--dur);
}
.apps-more:hover {
  border-color: rgba(147,210,232,.5);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -16px rgba(147,210,232,.4);
}
.apps-more-text { color: var(--frost-1); }

/* ---- Newsletter checkpoint: more elevated band + celebratory success ---- */
.checkpoint {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(147,210,232,.10), transparent 60%),
    radial-gradient(ellipse at 100% 50%, rgba(178,150,220,.05), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border-top: 1px solid rgba(147,210,232,.18);
  border-bottom: 1px solid rgba(147,210,232,.18);
}

@keyframes checkpoint-success-pop {
  0%   { transform: scale(.94); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes checkpoint-success-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147,210,232,0); }
  50%      { box-shadow: 0 0 60px 6px rgba(147,210,232,.18); }
}
.checkpoint-success {
  animation: checkpoint-success-pop .55s cubic-bezier(.22,.61,.36,1) both;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147,210,232,.07), rgba(147,210,232,.02));
  border: 1px solid rgba(147,210,232,.25);
  position: relative;
}
.checkpoint-success::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  animation: checkpoint-success-glow 1.4s ease-out both;
}

/* ---- Section dividers as thin gradient lines (subtle, premium) ---- */
.seg {
  border-top: 0;
}
.seg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(147,210,232,.18) 25%,
    rgba(147,210,232,.28) 50%,
    rgba(147,210,232,.18) 75%,
    transparent 100%);
  opacity: .7;
  pointer-events: none;
  z-index: 2;
}
/* The first section after the hero doesn't need a divider — the hero already
   provides a strong visual break. Keep it for the rest. */
.seg--01::before { display: none; }

/* ---- Inline text-link underline (background trick, not text-decoration) ---- */
.step-link, .closing-link, .jfoot-link, .stepper-help-link, .cando-link, .community-cta {
  /* These are buttons or branded buttons, not inline text — skip. */
}
/* Apply to inline links found in body copy: closing-quote, etc. */
.closing-quote a,
.proof-back a,
.cando-back p a,
.hero-desc a,
.seg-lead a {
  background-image: linear-gradient(to right, var(--frost-2), var(--frost-2));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  text-decoration: none;
  transition: background-size .35s var(--ease);
}
.closing-quote a:hover,
.proof-back a:hover,
.cando-back p a:hover,
.hero-desc a:hover,
.seg-lead a:hover {
  background-size: 100% 1px;
}

/* ---- Section kicker variance: knowledge sections (01, 02) get silver,
        action sections (04, 05, 06) stay frost. Section 03/07/08 stay frost.
        Implemented via per-section overrides on .seg-label-num. ---- */
.seg--01 .seg-label-num,
.seg--02 .seg-label-num {
  background: linear-gradient(155deg, rgba(220,225,234,.22) 0%, rgba(158,165,176,.22) 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(220,225,234,.2);
}

/* ---- Light card-press feedback for tabs/pills ---- */
.chain-pill:active, .method-tab:active { transition: transform 80ms ease; }

/* ================================================================
   CARD SYSTEM NORMALIZATION
   Reference cards: .cando-card (step 03) for layout + hierarchy;
   .arch-card (gate) + .app-card (step 08) for touch & feel.

   Locked system:
     • Container — 280px tall · 28px padding · 12px radius · 1px outline
     • Hover    — translateY(-3px) · frost border · surface-2 bg
                  · soft frost glow shadow
     • Top      — 48–52px tinted glyph/badge (or small mono tag pill)
     • Title    — 22px serif weight 600
     • Body     — 14.5px line-1.55, color ink-2
     • CTA      — bottom, dashed top border, mono 11.5px uppercase frost
   ================================================================ */

/* ---------- Step 01 — Learn cards (flip) — alphabet-card layout ---------- */
/* Front: title fixed top · image fixed large · subtitle pinned to bottom   */
/* margin-top:auto on .learn-sub is the only reliable bottom-anchor method  */
.learn-grid { grid-auto-rows: 280px; }
.learn-card { height: 100%; }
.learn-front, .learn-back { padding: 24px 26px; }
/* Reduce bottom pad so caption sits closer to the card edge */
.learn-front { justify-content: flex-start; align-items: flex-start; padding-bottom: 16px; }
.learn-metric {
  font-size: clamp(1.8rem, 2.5vw, 2.15rem);
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}
/* All images share the same layout zone — same height, same margin-top.
   This locks all illustrations into the same central band and all captions
   onto the same shared baseline via margin-top:auto on .learn-sub.
   Visual size is adjusted per-card using scale() which is purely cosmetic
   and does not shift the layout zone at all.                              */
.learn-card-img {
  flex-shrink: 0;
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  margin-top: 10px;
  transform-origin: center;
}
/* sparkles feel largest visually → scale down to match the set */
.learn-grid .learn-card:nth-child(2) .learn-card-img { transform: scale(0.75); }
/* staking figure feels smallest → scale up to match the set */
.learn-grid .learn-card:nth-child(3) .learn-card-img { transform: scale(1.14); }
/* margin-top:auto consumes all remaining space above subtitle → always bottom-anchored */
.learn-sub {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.22vw, 1.02rem);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
  flex-shrink: 0;
}
.learn-back { justify-content: center; }
.learn-back-text { font-size: 16px; line-height: 1.7; margin: 0; flex: none; }
.learn-accent { color: var(--frost-2); }
.learn-card:hover .learn-front { box-shadow: 0 14px 36px -16px rgba(147,210,232,.32); }

/* ---------- Step 02 — Proof cards (flip) ---------- */
/* Equal grid, no 2×2 hero. $3T+ stays featured via gradient text + halo
   but at the same physical size as every other card. */
.proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 280px;
  gap: 18px;
  margin-bottom: 48px;
}
@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (min-width: 1080px) {
  .proof-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: 280px; }
}
.proof-card,
.proof-card--lg {
  grid-column: span 1;
  grid-row: span 1;
}
.proof-front, .proof-back { padding: 28px; }
.proof-metric {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 14px 0 6px;
}
.proof-card--lg .proof-metric {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ink);
}
.proof-card--lg .proof-title {
  font-size: 11.5px;
  color: var(--ink-2);
}
.proof-card--lg .proof-back p { font-size: 14.5px; line-height: 1.55; }
.proof-back p { font-size: 14.5px; line-height: 1.55; }

/* Hint moves from absolute to bottom-anchored row with a dashed top border,
   matching cando-cta / next-card-cta. */
.proof-hint {
  position: static;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--frost-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur), color var(--dur);
}
.proof-card:hover .proof-hint { gap: 10px; color: var(--frost-1); }
.proof-card .proof-front {
  justify-content: flex-start;
}
.proof-back p { flex: 1; }
.proof-back-hint { margin-top: 0; padding-top: 14px; border-top: 1px dashed var(--line-2); width: 100%; }
/* $3T+ card — same surface/border as all other proof cards */
.proof-card--lg .proof-front::after { display: none; }
.proof-card--lg .proof-front {
  background: var(--surface);
  border-color: var(--line-2);
}
/* The base CSS set position:relative + z-index:1 on all --lg front children
   so they'd stack above the halo. The halo is now hidden, but position:relative
   still causes bottom/right offsets from the old absolute .proof-hint rule to
   apply — shifting the footer left and up. Reset the stacking context. */
.proof-card--lg .proof-front > * {
  position: static;
  z-index: auto;
}

/* Match cando hover glow */
.proof-card:hover .proof-front {
  box-shadow: 0 14px 36px -16px rgba(147,210,232,.32);
}

/* ---------- Step 06 — Next cards (non-flip, vertical) ---------- */
.next-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.next-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  height: 280px;
  position: relative;
}
/* Number becomes a top badge — matches cando-glyph slot. */
.next-card-num {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: rgba(147,210,232,.07);
  border: 1px solid rgba(147,210,232,.18);
  color: var(--frost-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  line-height: 1;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.next-card:hover .next-card-num {
  background: rgba(147,210,232,.12);
  border-color: rgba(147,210,232,.35);
  color: var(--frost-2);
}
.next-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.next-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.next-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 14px;
  flex: 1;
  /* Clamp at 3 lines so the card height stays locked. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.next-card-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--frost-2);
  display: inline-flex; align-items: center; gap: 6px;
  width: 100%;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px dashed var(--line-2);
  transition: gap var(--dur), color var(--dur);
}
.next-card:hover .next-card-cta { gap: 10px; color: var(--frost-1); }
.next-card:hover .next-card-cta::after {
  /* no-op; gap+color handles it */
}
/* Keep small "tag" pill in top-right corner */
.next-card-tag { top: 22px; right: 22px; }
/* Match cando hover glow */
.next-card:hover {
  box-shadow: 0 14px 36px -16px rgba(147,210,232,.32);
}

/* ---------- Step 07 — Community cards (flip) ---------- */
.community-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.community-card { height: 280px; }
.community-front, .community-back { padding: 28px; }
.community-name { font-size: 22px; }
.community-tag { font-size: 12px; }
.community-back-text { font-size: 14.5px; line-height: 1.55; }
.community-logo,
.community-logo-frame {
  width: 52px; height: 52px;
  margin-bottom: 18px;
}
.community-card:hover .community-front {
  box-shadow: 0 14px 36px -16px rgba(147,210,232,.32);
}

/* ---------- Step 03 — Cando (reference): tighten to match exactly ---------- */
.cando-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.cando-card { height: 280px; }
.cando-glyph { width: 52px; height: 52px; margin-bottom: 18px; }
.cando-card:hover .cando-front {
  box-shadow: 0 14px 36px -16px rgba(147,210,232,.32);
}

/* ---------- Mobile ---------- */
@media (max-width: 719px) {
  /* Step 02 proof cards: normalization block uses minmax(260px,1fr) → 1 col on phones.
     Force 2-column compact grid so cards don't become huge full-width blocks. */
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
  }
  /* Fixed height so proof-inner (height:100%) and the absolute front/back faces
     all have a definite size — same 260px as Step 01 SOL cards for consistency */
  .proof-card, .proof-card--lg { height: 260px; }
  /* Tighter internal padding for compact 2-col cards */
  #why .proof-front, #why .proof-back { padding: 18px 16px; }
  /* Slightly smaller metric so numbers fit cleanly in narrow columns */
  #why .proof-metric { font-size: clamp(1.35rem, 5.5vw, 1.65rem); margin: 6px 0 4px; }

  /* Fixed height is required — height:auto breaks margin-top:auto subtitle anchoring */
  .learn-grid { grid-auto-rows: 260px; }
  .learn-card { height: 260px; }
  /* Same height for all — scale() overrides handle per-card visual size */
  .learn-card-img { height: 132px; }
  /* Step 03 cando: 2-column compact grid, fixed height so flip faces resolve correctly */
  #cando .cando-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #cando .cando-card { height: 260px; }
  #cando .cando-front, #cando .cando-back { padding: 18px 16px; }
  #cando .cando-glyph { width: 40px; height: 40px; margin-bottom: 12px; }
  #cando .cando-title { font-size: 17px; }
  #cando .cando-blurb { font-size: 13.5px; margin-bottom: 10px; }
  /* Back face: tighter spacing so title + short text + button all fit in 260px */
  #cando .cando-back-title { font-size: 15px; margin-bottom: 8px; }
  #cando .cando-back p { font-size: 13.5px; line-height: 1.5; }
  #cando .cando-link { margin-top: 10px; padding: 8px 12px; font-size: 13px; }
  /* community-card uses absolute-positioned faces — needs fixed height, same as proof/cando */
  .community-card { height: 260px; }

  /* Step 04: wallet-hero is intentionally full-width; just reduce heavy mobile padding */
  #wallet .wallet-hero { padding: 22px 20px; }
  #wallet .wallet-hero-ribbon { margin-bottom: 16px; }
  #wallet .wallet-hero-top { margin-bottom: 14px; }
  #wallet .wallet-hero-logo { width: 54px; height: 54px; }
  #wallet .wallet-hero-name { font-size: 24px; }
  #wallet .wallet-hero-num { font-size: 42px; }
  #wallet .wallet-hero-desc { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }

  /* Step 06: 2-column compact grid — typography matches Step 03 readable scale */
  #next .next-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #next .next-card { height: 260px; padding: 18px 16px; }
  #next .next-card-num { width: 38px; height: 38px; font-size: 17px; margin-bottom: 10px; }
  #next .next-card-title { font-size: 17px; line-height: 1.2; margin-bottom: 4px; }
  #next .next-card-desc { font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; -webkit-line-clamp: 3; }
  #next .next-card-tag { top: 14px; right: 12px; font-size: 9.5px; padding: 2px 6px; }
  #next .next-card-cta { font-size: 11px; padding-top: 10px; }

  /* Step 07: 2-column compact grid — same pattern and typography as Step 03 */
  #community .community-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #community .community-card { height: 260px; }
  #community .community-front, #community .community-back { padding: 18px 16px; }
  #community .community-logo,
  #community .community-logo-frame { width: 42px; height: 42px; margin-bottom: 12px; }
  #community .community-name { font-size: 17px; }
  #community .community-tag { font-size: 11px; }
  #community .community-hint { font-size: 11px; padding-top: 10px; margin-top: 10px; }
  #community .community-back-tag { font-size: 11px; margin-bottom: 8px; }
  #community .community-back-text { font-size: 13.5px; line-height: 1.5; }
  #community .community-cta { margin-top: 10px; padding: 8px 12px; font-size: 13px; }
}

/* Very narrow screens: drop back to 1 column to avoid clipping */
@media (max-width: 359px) {
  .proof-grid { grid-template-columns: 1fr; }
  #cando .cando-grid { grid-template-columns: 1fr; }
  #next .next-grid { grid-template-columns: 1fr; }
  #community .community-grid { grid-template-columns: 1fr; }
}


