/* =============================================================================
   Ethernodes — Landing Styles (v3 · restructured)
   -----------------------------------------------------------------------------
   1. Tokens       — :root custom properties
   2. Fonts        — @font-face
   3. Base         — resets + element defaults
   4. Utilities    — .eth-container, .eth-eyebrow, .eth-placeholder-tag
   5. Components   — .eth-card, .eth-btn, .eth-stat, .eth-live-pill, .eth-chip
   6. Sections
      6.1 TopNav
      6.2 Hero (Institutional Grade Yield) + Scroll indicator
      6.3 Ecosystem Partners (orbital)
      6.4 Our Products (Custodial / Non-Custodial)
      6.5 Simple CTA
      6.6 Team (Behind Ethernodes)
      6.7 Footer
   7. Scroll reveal
   8. Responsive (960 / 600)
   9. Reduced motion
   ============================================================================= */


/* ─── 1. Tokens ─────────────────────────────────────────────────────────── */

:root {
  --eth-black:        #000000;
  --eth-ink-900:      #1E1F1E;
  --eth-ink-800:      #232423;
  --eth-ink-700:      #282A28;
  --eth-ink-600:      #2D2F2D;
  --eth-ink-500:      #3A3D3A;
  --eth-ink-400:      #4B4F4B;
  --eth-ink-300:      #6E736E;
  --eth-ink-200:      #A0A6A0;
  --eth-ink-100:      #C8CCC8;
  --eth-ink-050:      #E7EAE7;
  --eth-white:        #FFFFFF;

  --eth-green-600:    #2E8A3A;
  --eth-green-500:    #4FB656;
  --eth-green-400:    #56B358;
  --eth-green-300:    #6EE074;
  --eth-green-200:    #93FF96;
  --eth-green-100:    #BFFFC1;
  --eth-green-050:    rgba(147, 255, 150, 0.08);

  --eth-fg:           var(--eth-ink-050);
  --eth-fg-muted:     var(--eth-ink-200);
  --eth-fg-subtle:    var(--eth-ink-300);
  --eth-fg-inverse:   #0B1A0C;
  --eth-fg-accent:    var(--eth-green-200);

  --eth-bg:           var(--eth-ink-900);
  --eth-bg-alt:       var(--eth-ink-800);
  --eth-surface:      var(--eth-ink-700);
  --eth-surface-alt:  var(--eth-ink-600);
  --eth-surface-raised:#303330;

  --eth-border:       var(--eth-ink-500);
  --eth-border-strong:var(--eth-ink-400);
  --eth-border-accent:var(--eth-green-200);

  --eth-warning:      #E8B24A;
  --eth-danger:       #E46B6B;

  --eth-font-sans:    "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --eth-font-mono:    "PP Fraktion Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --eth-sp-1:  4px;  --eth-sp-2:  8px;  --eth-sp-3:  12px;
  --eth-sp-4:  16px; --eth-sp-5:  20px; --eth-sp-6:  24px;
  --eth-sp-8:  32px; --eth-sp-10: 40px; --eth-sp-12: 48px;
  --eth-sp-16: 64px; --eth-sp-20: 80px; --eth-sp-24: 96px;
  --eth-sp-32: 128px;

  --eth-r-sm: 10px;
  --eth-r-md: 14px;
  --eth-r-lg: 18px;
  --eth-r-xl: 24px;
  --eth-r-pill: 999px;

  --eth-shadow-1: 0 1px 0 rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.30);
  --eth-shadow-2: 0 4px 16px -4px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.30);
  --eth-shadow-3: 0 10px 32px -8px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.35);
  --eth-glow-accent: 0 0 28px -6px rgba(147,255,150,0.28), 0 10px 32px -8px rgba(0,0,0,0.55);
  --eth-glow-cta:    0 0 0 1px var(--eth-green-200), 0 0 28px -4px rgba(147,255,150,0.45);

  --eth-ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --eth-dur:      220ms;
  --eth-dur-slow: 380ms;

  --eth-container: 1240px;
  --eth-gutter:    32px;
  --eth-nav-h:     72px;
}


/* ─── 2. Fonts ──────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Fraktion Mono";
  src: url("fonts/PPFraktionMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Fraktion Mono";
  src: url("fonts/PPFraktionMono-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}


/* ─── 3. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--eth-bg);
  color: var(--eth-fg);
  font-family: var(--eth-font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--eth-dur) var(--eth-ease), border-color var(--eth-dur) var(--eth-ease);
}
a:hover { color: var(--eth-green-200); }

button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

code, .eth-mono {
  font-family: var(--eth-font-mono);
  font-feature-settings: "ss01", "zero";
}

::selection { background: var(--eth-green-200); color: var(--eth-fg-inverse); }

:focus-visible {
  outline: 2px solid var(--eth-green-200);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ─── 4. Utilities ──────────────────────────────────────────────────────── */
.eth-container {
  max-width: var(--eth-container);
  margin: 0 auto;
  padding: 0 var(--eth-gutter);
}

.eth-eyebrow {
  display: inline-block;
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
  font-weight: 400;
}
.eth-eyebrow--accent { color: var(--eth-green-200); }

/* Signature motif: 2px green left bar + mono eyebrow */
.eth-eyebrow-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eth-eyebrow-bar::before {
  content: "";
  width: 2px;
  height: 12px;
  background: var(--eth-green-200);
  display: inline-block;
}

.eth-placeholder-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--eth-border);
  border-radius: 4px;
  font-family: var(--eth-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eth-fg-subtle);
  background: rgba(0,0,0,0.2);
  vertical-align: middle;
}


/* ─── 5. Components ─────────────────────────────────────────────────────── */
.eth-card {
  background: var(--eth-surface);
  border: 1px solid var(--eth-border);
  border-radius: var(--eth-r-lg);
  padding: var(--eth-sp-6);
  box-shadow: var(--eth-shadow-1);
  transition: border-color var(--eth-dur) var(--eth-ease),
              transform var(--eth-dur) var(--eth-ease),
              box-shadow var(--eth-dur) var(--eth-ease);
}
.eth-card--interactive:hover {
  border-color: var(--eth-green-200);
  transform: translateY(-2px);
  box-shadow: var(--eth-glow-accent);
}

.eth-stat {
  font-family: var(--eth-font-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--eth-fg);
}
.eth-stat--sm { font-size: 28px; }
.eth-stat--md { font-size: 40px; }
.eth-stat--lg { font-size: 56px; }
.eth-stat--xl { font-size: clamp(48px, 6.4vw, 80px); }
.eth-stat__unit {
  font-family: var(--eth-font-mono);
  font-size: 0.4em;
  color: var(--eth-fg-muted);
  font-weight: 400;
  margin-left: 0.4em;
  letter-spacing: 0.06em;
  vertical-align: 0.2em;
}

.eth-meta { font-size: 13px; color: var(--eth-fg-muted); }
.eth-meta--positive { color: var(--eth-green-200); }

.eth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--eth-r-pill);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all var(--eth-dur) var(--eth-ease);
  cursor: pointer;
  white-space: nowrap;
}
.eth-btn--primary {
  background: var(--eth-green-200);
  color: var(--eth-fg-inverse);
}
.eth-btn--primary:hover {
  background: var(--eth-green-100);
  box-shadow: var(--eth-glow-cta);
}
.eth-btn--primary:active { background: var(--eth-green-400); }
.eth-btn--secondary {
  background: var(--eth-surface-alt);
  color: var(--eth-fg);
  border-color: var(--eth-border);
}
.eth-btn--secondary:hover {
  border-color: var(--eth-green-200);
  color: var(--eth-green-200);
  background: var(--eth-ink-600);
}
.eth-btn--sm { padding: 10px 18px; font-size: 13px; }

.eth-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--eth-r-pill);
  background: rgba(147,255,150,0.08);
  border: 1px solid rgba(147,255,150,0.30);
  color: var(--eth-green-200);
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eth-live-pill__dot {
  width: 6px; height: 6px;
  border-radius: var(--eth-r-pill);
  background: var(--eth-green-200);
  box-shadow: 0 0 8px rgba(147,255,150,0.8);
  animation: eth-pulse 2.4s var(--eth-ease) infinite;
}
@keyframes eth-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.eth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--eth-border);
  border-radius: var(--eth-r-pill);
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
  background: var(--eth-bg-alt);
}

.eth-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--eth-sp-4);
  margin-bottom: var(--eth-sp-16);
  max-width: 760px;
}
.eth-section__head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.eth-section__head p {
  font-size: 17px;
  color: var(--eth-fg-muted);
  max-width: 620px;
}


/* ─── 6. Sections ───────────────────────────────────────────────────────── */

/* 6.1 TopNav ---------------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(30,31,30,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--eth-dur) var(--eth-ease), background var(--eth-dur) var(--eth-ease);
}
.topnav.is-scrolled { border-bottom-color: var(--eth-border); background: rgba(30,31,30,0.86); }
.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--eth-container);
  margin: 0 auto;
  padding: 0 var(--eth-gutter);
}
.topnav__brand { display: flex; align-items: center; gap: 12px; }
.topnav__wordmark { height: 56px; display: block; }
.topnav__nav { display: flex; align-items: center; gap: 36px; }
.topnav__nav a {
  font-size: 14px;
  color: var(--eth-fg);
  padding-bottom: 2px;
}
.topnav__nav a:hover { color: var(--eth-green-200); border-bottom-color: currentColor; }
.topnav__cta { display: flex; align-items: center; gap: 18px; }


/* 6.2 Hero — centered vertical composition -------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
  min-height: calc(100vh - var(--eth-nav-h));
  display: flex;
  align-items: center;
}
.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 1200px;
  height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(147,255,150,0.10), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Garnier sphere backdrop (port of v3 codepen LMrRNW to v4) ───────── */
.hero__sphere {
  position: absolute;
  top: 32%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  /* Translucent so the sphere sits behind text without competing */
  opacity: 0.55;
}
.hero__sphere-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 580px;
  margin: -290px 0 0 -290px;
  /* JS sets transform: scale() to fit parent (replicates fitElementToParent) */
}
.hero__sphere-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.hero__sphere-svg path {
  fill: url(#heroSphereGradient);
  stroke-width: 0.6px;
  stroke: rgba(147, 255, 150, 0.35);
  backface-visibility: hidden;
}
@media (min-width: 500px) {
  .hero__sphere-svg path { stroke-width: 0.4px; }
}
@media (max-width: 768px) {
  .hero__sphere { width: 360px; height: 360px; opacity: 0.40; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  width: 100%;
}
.hero__pill { margin-bottom: 0; }

/* ─── Hero wordmark — replaces the live pill, animated in sync with sphere ── */
.hero__logo {
  display: inline-flex;
  width: 280px;
  max-width: 60vw;
  margin-top: 60px;
  /* Initially invisible — JS reveals after sphere completes one breath cycle.
     Falls back gracefully if JS disabled (overridden via .reveal mechanism). */
  opacity: 0;
  /* Subtle initial scale so the fade-in feels alive */
  transform: scale(0.92);
  transform-origin: center center;
  /* will-change hints compositor for smooth opacity/transform changes */
  will-change: opacity, transform, filter;
  /* No drop-shadow yet — JS sets it during the pulse loop */
}
.hero__logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Reduced motion: just show it static, no fade or pulse */
@media (prefers-reduced-motion: reduce) {
  .hero__logo {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .hero__logo { width: 200px; }
}


.hero__title {
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 1100px;
  text-wrap: balance;
  margin: 4px 0 24px;
  padding-bottom: 0.14em;
}
.hero__title em {
  color: var(--eth-green-200);
  font-style: normal;
}

/* Two compact dashboard cards */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1040px;
  margin-top: 24px;
}

/* Two-card variant (TVL + APR): narrower track so cards stay compact. */
.hero__stats--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}
@media (max-width: 880px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr; gap: 14px; }
}
.hero__stat {
  position: relative;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--eth-border);
  border-radius: var(--eth-r-lg);
  background: var(--eth-surface);
  transition: border-color var(--eth-dur) var(--eth-ease), transform var(--eth-dur) var(--eth-ease);
}
.hero__stat:hover {
  border-color: rgba(147,255,150,0.28);
  transform: translateY(-1px);
}
.hero__stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(147,255,150,0.12);
  color: var(--eth-green-200);
  flex: none;
}
.hero__stat-label {
  /* Match .eth-eyebrow style (mono, uppercase, tracked) used everywhere else
     for card labels — keeps the hero stats coherent with the rest of the page. */
  font-family: var(--eth-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
  line-height: 1.2;
}
.hero__stat-value {
  /* 4 cards in a row → less width per card → smaller value font.
     clamp scales fluidly so it stays readable on different viewport widths. */
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 2px;
  color: var(--eth-fg);
  /* While in placeholder state, dim the dash slightly */
}
.hero__stat-value[data-stat-pending="true"] {
  color: var(--eth-fg-muted);
  opacity: 0.7;
}

.hero__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--eth-fg-muted);
  max-width: 720px;
  line-height: 1.65;
  margin-top: 4px;
}

/* Scroll indicator — "SCROLL TO CONTINUE" + mouse glyph */
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--eth-font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eth-fg-subtle);
  border-bottom: none;
  transition: color var(--eth-dur) var(--eth-ease);
}
.hero__scroll:hover { color: var(--eth-green-200); }
.hero__scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--eth-border-strong);
  border-radius: 14px;
  position: relative;
  display: inline-block;
}
.hero__scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--eth-green-200);
  animation: eth-scroll-wheel 1.8s var(--eth-ease) infinite;
}
@keyframes eth-scroll-wheel {
  0%   { transform: translate(-50%, 0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}


/* 6.3 Ecosystem Partners — constellation map ----------------------------- */

.ecosystem {
  padding: 64px 0 148px;
  position: relative;
  overflow: hidden;
}
.ecosystem__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.ecosystem__head {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.ecosystem__head h2 {
  font-size: clamp(36px, 4.4vw, 52px);
  margin: 0;
}
.ecosystem__head p {
  color: var(--eth-fg-muted);
  font-size: 17px;
  margin: 0;
}

/* Background dust particles canvas */
.eth-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#eth-particles-canvas,
#eth-particles-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Spiral galaxy backdrop (canvas, behind the constellation) ─────── */
.eth-galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.ecosystem .eth-container { position: relative; z-index: 1; }

/* Constellation stage */
.constellation {
  position: relative;
  width: min(1440px, 98vw);
  height: min(760px, 82vh);
  isolation: isolate;
  /* Center on viewport regardless of parent container width.
     vw-based negative margins cancel parent's flow positioning. */
  margin-left: calc(50% - min(720px, 49vw));
  margin-right: calc(50% - min(720px, 49vw));
  align-self: stretch;
}

/* Connection lines (SVG fills the stage) */
.cn-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.cn-line {
  stroke: rgba(147, 255, 150, 0.32);
  stroke-width: 0.22;
  fill: none;
  vector-effect: non-scaling-stroke;
  transition: stroke 240ms ease, stroke-width 240ms ease, opacity 240ms ease;
}
.cn-line--intra { stroke: rgba(147, 255, 150, 0.20); }
.cn-line.is-active {
  stroke: rgba(147, 255, 150, 0.85);
  stroke-width: 0.35;
}
.constellation.is-focused .cn-line:not(.is-active) { opacity: 0.25; }

/* Pulse canvas (particles traveling along lines) */
.cn-pulses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  user-select: none;
}

.cn-pulses,
.cn-pulses canvas {
  pointer-events: none !important;
}

/* Central Ethernodes mark */
.cn-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cn-core::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 180px; height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #000 0%, rgba(0,0,0,0.92) 28%, rgba(0,0,0,0.6) 48%, rgba(0,0,0,0) 72%);
  z-index: 1;
  pointer-events: none;
}
.cn-core img {
  width: 96px;
  height: 96px;
  display: block;
  position: relative;
  z-index: 2;
}
.cn-core__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 255, 150, 0.55);
  transform: translate(-50%, -50%);
  animation: cn-pulse 3.6s ease-out infinite;
  z-index: 1;
}
.cn-core__pulse--2 { animation-delay: 1.8s; }

@keyframes cn-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
  70%  { opacity: 0.05; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

/* Partner nodes */
.cn-node {
  position: absolute;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: pointer;
  transition: transform 240ms ease, opacity 240ms ease;
  outline: none;
}
.cn-node__disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--eth-ink-700, #282A28);
  border: 1px solid rgba(147, 255, 150, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}
.cn-node__disc img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.92;
  transition: opacity 240ms ease;
}

/* Tooltip */
.cn-node__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(28, 30, 28, 0.96);
  border: 1px solid rgba(147, 255, 150, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 10;
  white-space: nowrap;
}
.cn-node__name {
  font-family: var(--eth-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--eth-green-200, #93FF96);
  letter-spacing: 0.02em;
}
.cn-node__desc {
  font-family: var(--eth-font-mono, monospace);
  font-size: 11px;
  color: var(--eth-ink-200, #A0A6A0);
}

/* Hover states with stronger emphasis on focused vs related */
.cn-node:hover,
.cn-node:focus { z-index: 6; }
.cn-node:hover .cn-node__disc,
.cn-node.is-active .cn-node__disc {
  border-color: var(--eth-green-200, #93FF96);
  box-shadow: 0 0 0 2px rgba(147, 255, 150, 0.45),
              0 0 24px rgba(147, 255, 150, 0.55);
  transform: scale(1.18);
}
.cn-node:hover .cn-node__disc img,
.cn-node.is-active .cn-node__disc img { opacity: 1; }
.cn-node:hover .cn-node__tooltip,
.cn-node:focus .cn-node__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Related nodes (same cluster as focused) — softer highlight */
.cn-node.is-related .cn-node__disc {
  border-color: rgba(147, 255, 150, 0.6);
  box-shadow: 0 0 12px rgba(147, 255, 150, 0.2);
}

/* Dim everything else when something is focused */
.constellation.is-focused .cn-node:not(.is-active):not(.is-related) {
  opacity: 0.35;
}

/* When something is PINNED (is-focused) and you hover another node, let that
   node's :hover highlight win over the dim — temporary lone-node "peek". */
.constellation.is-focused .cn-node:hover,
.constellation.is-focused .cn-node:focus {
  opacity: 1;
}

/* Cluster title line under the header (click-to-pin). Green hero accent. */
.ecosystem__group-desc.eth-eyebrow {
  color: var(--eth-green-200);
  margin: 6px 0 0;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.ecosystem__group-desc.is-visible { opacity: 1; transform: translateY(0); }
.ecosystem__group-desc.is-changing { opacity: 0; transform: translateY(-2px); }

/* Mobile fallback: hide constellation, show simple grid */
.constellation-fallback { display: none; }
@media (max-width: 768px) {
  .constellation { display: none; }
  .constellation-fallback {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* 6.4 Our Products — expandable 90/10 panels ------------------------------ */
.products {
  padding: 96px 0 48px;
}
.products__grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-height: 720px;
}

.ppanel {
  position: relative;
  background: var(--eth-surface);
  border: 1px solid var(--eth-border);
  border-radius: var(--eth-r-xl);
  overflow: hidden;
  display: flex;
  transition: flex-grow var(--eth-dur-slow) var(--eth-ease),
              flex-basis var(--eth-dur-slow) var(--eth-ease),
              border-color var(--eth-dur) var(--eth-ease),
              box-shadow var(--eth-dur) var(--eth-ease);
}
.ppanel.is-active {
  flex: 9 1 0;
  border-color: rgba(147,255,150,0.28);
  box-shadow: var(--eth-shadow-2);
}
.ppanel.is-collapsed {
  flex: 1 1 0;
  cursor: pointer;
  background: var(--eth-bg-alt);
  border-color: rgba(147, 255, 150, 0.28);
  /* Breathing green outline to signal "click to expand", calm like the hero. */
  animation: ppanel-collapsed-breath 2.6s ease-in-out infinite;
}
@keyframes ppanel-collapsed-breath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(147,255,150,0.10), 0 0 10px -2px rgba(147,255,150,0.20); border-color: rgba(147,255,150,0.28); }
  50%      { box-shadow: 0 0 0 1px rgba(147,255,150,0.45), 0 0 22px -2px rgba(147,255,150,0.55); border-color: rgba(147,255,150,0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .ppanel.is-collapsed { animation: none; }
}
.ppanel.is-collapsed:hover {
  border-color: var(--eth-green-200);
  box-shadow: var(--eth-glow-accent);
  background: var(--eth-surface);
  animation: none;
}

.ppanel__watermark {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 340px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* Expanded view */
.ppanel__expanded {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: 100%;
  opacity: 1;
  position: relative;
  z-index: 1;
  transition: opacity var(--eth-dur) var(--eth-ease);
}
.ppanel.is-collapsed .ppanel__expanded {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.ppanel__visual {
  position: relative;
  min-height: 420px;
  padding: 44px;
  border-left: 1px solid var(--eth-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(147,255,150,0.07), transparent 55%),
    var(--eth-ink-800);
  grid-column: 2;
  grid-row: 1;
}
.ppanel__body {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
.ppanel__intro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ppanel__title {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 560px;
  margin: 0;
}
.ppanel__desc {
  font-size: 15px;
  color: var(--eth-fg-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0;
}

/* Small boxed stat cards — each stat gets its own card */
.ppanel__stats {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ppanel__stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ppanel__stats--two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ppanel__stats .product-stat {
  padding: 16px 18px;
  border: 1px solid var(--eth-border);
  border-radius: 14px;
  background: var(--eth-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--eth-dur) var(--eth-ease), background var(--eth-dur) var(--eth-ease);
}
.ppanel__stats .product-stat:hover {
  border-color: rgba(147,255,150,0.28);
  background: rgba(147,255,150,0.04);
}

.ppanel__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 0;
}

/* Collapsed rail */
.ppanel__collapsed {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 14px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--eth-dur) var(--eth-ease);
  position: relative;
}
.ppanel.is-collapsed .ppanel__collapsed { opacity: 1; pointer-events: auto; }

.ppanel__collapsed-top,
.ppanel__collapsed-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ppanel__collapsed-mark {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--eth-green-200);
}
.ppanel__collapsed-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Rotation set per side below (points toward the open panel). */
  transform: translate(-50%, -50%);
  font-family: var(--eth-font-mono);
  color: rgba(147, 255, 150, 0.85);
  font-size: 36px;
  transition: color var(--eth-dur) var(--eth-ease);
  animation: ppanel-arrow-pulse 2.2s ease-in-out infinite;
}
/* Point toward the open panel. Custodial = left panel -> arrow right (default
   glyph). Non-custodial = right panel -> arrow left. */
[data-panel="non-custodial"] .ppanel__collapsed-arrow { transform: translate(-50%, -50%) rotate(180deg); }
@keyframes ppanel-arrow-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1.0; }
}
@media (prefers-reduced-motion: reduce) {
  .ppanel__collapsed-arrow { animation: none; opacity: 0.85; }
}
.ppanel.is-collapsed:hover .ppanel__collapsed-arrow { color: var(--eth-green-200); }
.ppanel__vlabel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--eth-font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
  align-self: center;
}
.ppanel__collapsed .ppanel__vlabel--accent { color: var(--eth-green-200); }

/* Product stat */
.product-stat { display: flex; flex-direction: column; gap: 6px; }
.product-stat small {
  font-family: var(--eth-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eth-fg-subtle);
}

/* --- Illustrative visuals (shared with previous version) ---------------- */

/* Custodial flow graph */
.ppanel__visual--custodial .pv-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  padding: 48px 40px;
  align-items: center;
}
.pv-node {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  border: 1px solid var(--eth-border);
  border-radius: 12px;
  background: var(--eth-surface);
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eth-fg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
  box-shadow: var(--eth-shadow-1);
}
.pv-node em {
  font-style: normal;
  font-size: 9px;
  color: var(--eth-fg-muted);
  letter-spacing: 0.1em;
}
.pv-node--client { justify-self: start; }
.pv-node--core {
  justify-self: center;
  border-color: rgba(147,255,150,0.35);
  background: linear-gradient(180deg, rgba(147,255,150,0.06), transparent), var(--eth-surface);
}
.pv-node--core span { color: var(--eth-green-200); }

.pv-line {
  position: absolute;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--eth-green-200), transparent);
  z-index: 1;
}
.pv-line--1 { left: 20%; right: 55%; }
.pv-line--2 { left: 50%; right: 22%; }

.pv-proto {
  position: absolute;
  right: 40px;
  width: 50px; height: 36px;
  border: 1px solid var(--eth-border);
  border-radius: 8px;
  background: var(--eth-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--eth-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--eth-fg-muted);
}
.pv-proto--1 { top: 32px; }
.pv-proto--2 { top: 84px; }
.pv-proto--3 { bottom: 84px; }
.pv-proto--4 { bottom: 32px; }

.pv-tick {
  position: absolute;
  left: 32px;
  font-family: var(--eth-font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--eth-green-200);
  opacity: 0.75;
}
.pv-tick--a { top: 32px; }
.pv-tick--b { top: 52px; }
.pv-tick--c { top: 72px; }

/* Non-custodial validator cluster */
.ppanel__visual--noncustodial {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pv-cluster {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}
.pv-cluster__row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.pv-val {
  height: 18px;
  border-radius: 3px;
  background: var(--eth-ink-600);
  border: 1px solid var(--eth-ink-500);
}
.pv-val--on {
  background: var(--eth-green-200);
  border-color: var(--eth-green-200);
  box-shadow: 0 0 6px rgba(147,255,150,0.4);
  animation: eth-val-blink 3s var(--eth-ease) infinite;
}
.pv-cluster__row:nth-child(1) .pv-val:nth-child(2) { animation-delay: 0.3s; }
.pv-cluster__row:nth-child(1) .pv-val:nth-child(4) { animation-delay: 0.8s; }
.pv-cluster__row:nth-child(2) .pv-val:nth-child(1) { animation-delay: 0.2s; }
.pv-cluster__row:nth-child(2) .pv-val:nth-child(5) { animation-delay: 1.1s; }
.pv-cluster__row:nth-child(3) .pv-val:nth-child(3) { animation-delay: 0.6s; }
.pv-cluster__row:nth-child(4) .pv-val:nth-child(7) { animation-delay: 1.4s; }
@keyframes eth-val-blink {
  0%, 90%, 100% { opacity: 1; }
  95%           { opacity: 0.35; }
}
.pv-cluster__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--eth-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--eth-border);
}
.pv-cluster__meta strong { color: var(--eth-green-200); font-weight: 400; }


/* 6.5 Simple CTA ----------------------------------------------------------- */
.simple-cta {
  padding: 64px 0 96px;
}
.simple-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 56px;
  border: 1px solid var(--eth-border);
  border-radius: var(--eth-r-xl);
  background:
    radial-gradient(ellipse at right top, rgba(147,255,150,0.05), transparent 60%),
    var(--eth-surface);
}
.simple-cta__text { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.simple-cta__text h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.simple-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}


/* 6.6 Team ----------------------------------------------------------------- */
.team {
  padding: 32px 0 128px;
}
.team__head { margin-bottom: 64px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--eth-dur) var(--eth-ease);
}
.team-card:hover { transform: translateY(-2px); }
.team-card:hover .team-card__portrait {
  border-color: var(--eth-green-200);
  box-shadow: var(--eth-glow-accent);
}
.team-card__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(147,255,150,0.04), transparent 50%),
    var(--eth-ink-800);
  border: 1px solid var(--eth-border);
  border-radius: var(--eth-r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--eth-dur) var(--eth-ease), box-shadow var(--eth-dur) var(--eth-ease);
}
/* Photo: fills the portrait, scales on hover (zoom inside the framed window) */
.team-card__photo {
  filter: grayscale(1);  /* uniform BN across the team grid */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight bias toward upper portion of the photo so faces sit higher
     in the frame (heads not cut off when image is square cropped to 4:5) */
  object-position: center 30%;
  display: block;
  z-index: 1;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.team-card:hover .team-card__photo { transform: scale(1.08); }

/* Green editorial tint — fades out on hover to reveal full color photo */
.team-card__portrait-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(147, 255, 150, 0.22);
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.4s var(--eth-ease);
  pointer-events: none;
}
.team-card:hover .team-card__portrait-overlay { opacity: 0; }

/* Fallback initials are hidden by default; would only show if someone
   manually adds the class .team-card__portrait--no-photo. */
.team-card__initials--fallback { display: none; }
/* No-photo cards: show initials. */
.team-card__portrait--no-photo .team-card__initials--fallback { display: block; }
.team__head--advisors { margin-top: 56px; margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  .team-card__photo,
  .team-card__portrait-overlay { transition: none; }
  .team-card:hover .team-card__photo { transform: scale(1); }
  /* Tint stays even on hover for visual coherence with reduced motion */
  .team-card:hover .team-card__portrait-overlay { opacity: 1; }
}

.team-card__portrait::before {
  /* Soft mono grid to suggest "placeholder portrait" on-brand */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(147,255,150,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147,255,150,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}
.team-card__portrait::after {
  content: "";
  position: absolute;
  left: 14px; top: 14px;
  width: 18px; height: 18px;
  border-left: 1px solid var(--eth-green-200);
  border-top:  1px solid var(--eth-green-200);
  opacity: 0.7;
}
.team-card__initials {
  position: relative;
  z-index: 1;
  font-family: var(--eth-font-mono);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 64px);
  letter-spacing: 0.02em;
  color: var(--eth-ink-100);
  opacity: 0.9;
}
.team-card__portrait-tag {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--eth-font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eth-fg-subtle);
  z-index: 1;
}
.team-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-card__meta h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--eth-green-200);
}
.team-card__role {
  font-family: var(--eth-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eth-fg-muted);
}
.team-card__quote {
  margin-top: 6px;
  font-size: 14px;
  color: var(--eth-fg);
  line-height: 1.55;
  max-width: 280px;
}


/* 6.7 Footer (Morpho-inspired) ------------------------------------------ */

.footer {
  background: var(--eth-black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 64px;
  align-items: start;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer__symbol {
  width: 44px;
  height: 44px;
  display: block;
  opacity: 0.95;
  transition: opacity 200ms ease;
}
.footer__brand:hover .footer__symbol { opacity: 1; }

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__col-title {
  font-family: var(--eth-font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--eth-ink-050);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.footer__col a {
  font-family: var(--eth-font-sans);
  font-size: 14px;
  color: var(--eth-ink-300);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}
.footer__col a:hover {
  color: var(--eth-ink-050);
}

/* Social icons in Community column */
.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
}
.footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--eth-ink-300);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.footer__social-icon:hover {
  color: var(--eth-green-200);
  border-color: rgba(147, 255, 150, 0.4);
  transform: translateY(-1px);
}

/* Big wordmark image at the bottom — copyright overlays it */
.footer__wordmark-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: 0;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.footer__wordmark-img {
  width: 100vw;
  max-width: none;
  height: 18vw;
  min-height: 140px;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  opacity: 0.12;
  pointer-events: none;
  filter: saturate(0.9);
}
.footer__copy {
  position: relative;
  text-align: left;
  margin: -28px 0 0;
  padding: 0 0 16px;
  font-family: var(--eth-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--eth-ink-300);
  pointer-events: auto;
  z-index: 2;
}

@media (max-width: 768px) {
  .footer { padding: 64px 0 0; }
  .footer__inner { gap: 40px; }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer__columns {
    grid-template-columns: 1fr;
  }
  .footer__wordmark-wrap .footer__copy {
    position: static;
    margin-top: 16px;
    text-align: center;
  }
}

/* 6.9 Fixed scroll indicator — bottom-center, hides near footer ----------- */
.scroll-fixed {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--eth-r-pill);
  background: rgba(14,16,14,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--eth-border);
  font-family: var(--eth-font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eth-fg-subtle);
  text-decoration: none;
  transition: opacity 0.45s var(--eth-ease),
              transform 0.45s var(--eth-ease),
              color var(--eth-dur) var(--eth-ease);
  pointer-events: auto;
}
.scroll-fixed:hover { color: var(--eth-green-200); }
.scroll-fixed.is-hidden {
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
}
.scroll-fixed__mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--eth-border-strong);
  border-radius: 12px;
  position: relative;
  display: inline-block;
}
.scroll-fixed__wheel {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--eth-green-200);
  animation: eth-scroll-wheel 1.8s var(--eth-ease) infinite;
}
@media (max-width: 640px) {
  .scroll-fixed__label { display: none; }
  .scroll-fixed { padding: 10px 14px; }
}

/* Inline-style replacement (CSP compliance) */
.ppanel__collapsed-mark--dim {
  opacity: 0.5;
}


/* ─── Particles backdrop for Ecosystem section ────────────────────────────
   Three layered effects make this look premium instead of "default tsparticles":
   1. mix-blend-mode: screen — particles add light to background, not paint over.
   2. mask-image radial-gradient — particles fade out near section edges so they
      don't visually clash with adjacent sections.
   3. backdrop blur (subtle) — softens hard pixel edges.
   The canvas sits behind everything in the section via z-index. */

/* ─── Subtle horizontal divider above Ecosystem section ──────────────── */
.ecosystem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: rgba(147, 255, 150, 0.22);
  z-index: 1;
}

.ecosystem { position: relative; isolation: isolate; }

.eth-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 75% 85% at center, #000 30%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.4) 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at center, #000 30%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.4) 80%, transparent 100%);
}

#eth-particles-canvas {
  width: 100%;
  height: 100%;
  /* Fancy treatment: particles add light to the dark background instead of
     painting on top, with a soft glow and slight saturation boost.
     Combined with the radial mask, this gives the etheric "fireflies in
     orbit" feel rather than the flat default tsparticles look. */
  mix-blend-mode: screen;
  filter: saturate(1.3) brightness(1.1);
}

#eth-particles-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* eth-particles-canvas styles moved up into combined block */

#eth-particles-canvas canvas {
  display: block;
}

/* Make sure the orbit and content stay above the particle layer */
.ecosystem .eth-container { position: relative; z-index: 1; }

/* Disable on narrow viewports as a CSS belt-and-braces (JS already skips init) */
@media (max-width: 768px) {
  .eth-particles { display: none; }
}

/* Respect reduced-motion at the CSS layer too */
@media (prefers-reduced-motion: reduce) {
  .eth-particles { display: none; }
}

.footer__inner { position: relative; }


/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT PANELS — CLEAN LAYOUT (rewrite from scratch)
   Active panel: text on left ~60%, SVG icon box on right ~40%
   ═══════════════════════════════════════════════════════════════════════ */

/* Active panel must fill its parent flex container */
.ppanel.is-active {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;  /* center .ppanel__expanded vertically */
}
.ppanel.is-collapsed {
  flex: 0 0 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
}
.products__grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 0;
}

/* Expanded container: 2-column grid filling the panel */
.ppanel.is-active .ppanel__expanded {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important;
  gap: 32px;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center;
  padding: 0;
}

/* Body (left column): text content fills its column naturally */
.ppanel.is-active .ppanel__body {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 32px 48px 52px;
  min-width: 0;
  max-width: none;
}
.ppanel.is-active .ppanel__title {
  max-width: none;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.ppanel.is-active .ppanel__desc {
  max-width: none;
}

/* Fonts: ensure correct families on intro and titles */
.ppanel__intro .eth-eyebrow,
.ppanel__intro .eth-chip {
  font-family: var(--eth-font-mono);
}
.ppanel__title,
.ppanel__desc {
  font-family: var(--eth-font-sans);
}

/* Mask (right column): SVG box pinned top-right */
.ppanel.is-active .ppanel__mask {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 52px 0 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 400ms ease;
}
.ppanel__mask-svg {
  width: 320px;
  height: 320px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 0 12px rgba(147, 255, 150, 0.25));
}

/* Hide mask when panel is collapsed */
.ppanel.is-collapsed .ppanel__mask {
  opacity: 0;
}

/* Panel min-width allows shrink animation */
.ppanel {
  min-width: 0 !important;
}

/* Mobile: stack columns */
@media (max-width: 900px) {
  .ppanel.is-active .ppanel__expanded {
    grid-template-columns: 1fr !important;
  }
  .ppanel.is-active .ppanel__mask {
    display: none !important;
  }
}


/* ─── Final fix: collapsed strip in active panel takes no space ──────── */
.ppanel.is-active .ppanel__collapsed {
  display: none !important;
}

/* ─── CAROUSEL:partners: auto-scroll inside ppanel body ───────── */
/* Inserted as last child of .ppanel__body. Does not modify any
   existing selector. Contained for layout isolation. CSS-only. */
.ppanel__partners {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(147, 255, 150, 0.12);
  contain: layout paint;
}

.ppanel__partners-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* soft fade on both ends so logos enter/exit suavito */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #fff 64px,
    #fff calc(100% - 64px),
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0,
    #fff 64px,
    #fff calc(100% - 64px),
    transparent 100%
  );
}

.ppanel__partners-track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: max-content;
  /* track is duplicated 2x in HTML for seamless loop:
     translate -50% and restart → no visual jump */
  animation: ppanel-partners-scroll 30s linear infinite;
  will-change: transform;
}

/* pause on hover → user puede inspeccionar */
.ppanel__partners-viewport:hover .ppanel__partners-track {
  animation-play-state: paused;
}

.ppanel__partner {
  flex: 0 0 auto;
  height: 56px;
  min-width: 96px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 255, 150, 0.04);
  border: 1px solid rgba(147, 255, 150, 0.12);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(147, 255, 150, 0.06),
    0 0 18px -4px rgba(147, 255, 150, 0.18);
  opacity: 0;
  animation: ppanel-partner-fadein 0.6s var(--eth-ease, ease) forwards;
  animation-delay: 0.2s;
  transition:
    background 250ms var(--eth-ease, ease),
    border-color 250ms var(--eth-ease, ease),
    box-shadow 250ms var(--eth-ease, ease),
    transform 250ms var(--eth-ease, ease);
}

.ppanel__partner img {
  max-height: 28px;
  max-width: 112px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  transition: opacity 250ms var(--eth-ease, ease);
  user-select: none;
  -webkit-user-drag: none;
}

.ppanel__partner:hover {
  background: rgba(147, 255, 150, 0.07);
  border-color: rgba(147, 255, 150, 0.28);
  box-shadow:
    0 0 0 1px rgba(147, 255, 150, 0.18),
    0 0 24px -4px rgba(147, 255, 150, 0.35);
  transform: scale(1.02);
}

.ppanel__partner:hover img {
  opacity: 1;
}

@keyframes ppanel-partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes ppanel-partner-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

/* accesibilidad: pausa animación para usuarios que piden menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .ppanel__partners-track {
    animation: none;
  }
  .ppanel__partner {
    animation: none;
    opacity: 0.85;
  }
}

/* Mobile (bajo 900px, donde las columnas se apilan): el carrousel
   acompaña sin tocar nada más. No requiere overrides. */


/* ─── Topnav menu: active state + smooth scroll offset + mobile hide ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* topnav 84px + 12px breathing */
}

.topnav__nav a {
  position: relative;
  transition: color var(--eth-dur) var(--eth-ease);
}

.topnav__nav a.is-active {
  color: var(--eth-green-200);
}

.topnav__nav a.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eth-green-200);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(147, 255, 150, 0.55);
}

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

/* Mobile: hide menu entries, keep only brand + CTA */
@media (max-width: 900px) {
  .topnav__nav { display: none; }
}

/* ─── Regulatory disclosure band (above footer) ───────────────────────── */
.legal-band {
  border-top: 1px solid var(--eth-border);
  padding: 28px 0;
}
.legal-band__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-band__label { color: var(--eth-fg-subtle); }
.legal-band__text {
  margin: 0;
  font-family: var(--eth-font-sans);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--eth-fg-subtle);
}


/* ─── Partners carousel as full-width band ──────────────────────────────
   Carousel moved out of .ppanel__body to be a direct grid child, spanning
   both columns at the foot of the panel. */
.ppanel__expanded > .ppanel__partners {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0 52px 40px;
  margin-top: 8px;
}
.ppanel.is-active .ppanel__expanded > .ppanel__partners {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* ─── Per-logo size bump for visually small marks ───────────────────────
   These 6 logos render small at the shared 28px cap (square symbols or marks
   with lots of internal padding). Bump them to 44px in the carousel only.
   Scoped to carousel/ paths so constellation logos are never affected. */
.ppanel__partner img[src*="carousel/oasis"],
.ppanel__partner img[src*="carousel/kava"],
.ppanel__partner img[src*="carousel/sonic"],
.ppanel__partner img[src*="carousel/lombard"],
.ppanel__partner img[src*="carousel/noon"],
.ppanel__partner img[src*="carousel/fxprotocol"] {
  max-height: 44px;
  max-width: 132px;
}

/* ─── Discover — How we operate (coverflow) ─────────────────────────────── */
.disc-sep {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--eth-border) 20%, var(--eth-border) 80%, transparent);
  opacity: 0.6;
}
.disc { padding-top: 64px; padding-bottom: 64px; }
.disc__head { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.cf {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  margin-top: 40px;
}
.cf__track { position: relative; width: 380px; height: 440px; transform-style: preserve-3d; }
.cf__card {
  position: absolute; top: 0; left: 0;
  width: 380px; height: 440px;
  border-radius: var(--eth-r-lg);
  border: 1px solid var(--eth-border);
  box-shadow: var(--eth-shadow-3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.55s var(--eth-ease), opacity 0.55s var(--eth-ease),
              box-shadow 0.45s var(--eth-ease), border-color 0.45s var(--eth-ease);
  will-change: transform, opacity;
}
.cf__card[data-pos="0"] {
  border-color: var(--eth-green-200);
  box-shadow: 0 0 0 1px var(--eth-green-200), 0 24px 60px -16px rgba(0,0,0,0.7), 0 0 40px -8px rgba(147,255,150,0.25);
}
.cf__img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.4) translate(18%, 18%); will-change: transform; }
.cf__img--brand { background: linear-gradient(160deg, var(--eth-ink-800), var(--eth-ink-900)); }
.cf__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,20,0.82), rgba(20,21,20,0.93));
  transition: opacity 0.5s var(--eth-ease);
}
.cf__overlay--brand { opacity: 0.5; }
.cf__content {
  position: absolute; inset: 0; padding: 30px;
  display: flex; flex-direction: column; z-index: 2;
  transition: opacity 0.45s var(--eth-ease), transform 0.45s var(--eth-ease);
}
.cf__num { font-family: var(--eth-font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--eth-green-200); margin-bottom: 16px; transition: opacity 0.45s var(--eth-ease), transform 0.45s var(--eth-ease); }
.cf__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--eth-green-050); display: flex; align-items: center; justify-content: center; color: var(--eth-green-200); margin-bottom: 18px; transition: opacity 0.45s var(--eth-ease), transform 0.45s var(--eth-ease); }
.cf__title { font-size: 21px; font-weight: 600; margin: 0 0 12px; line-height: 1.2; color: var(--eth-fg); }
.cf__desc { font-size: 14px; line-height: 1.6; color: var(--eth-fg-muted); margin: 0 0 18px; transition: opacity 0.45s var(--eth-ease), transform 0.45s var(--eth-ease); }
.cf__btn-info {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--eth-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--eth-green-200); text-decoration: none;
  border: 1px solid var(--eth-border); border-radius: var(--eth-r-pill);
  padding: 9px 16px; background: rgba(20,21,20,0.6);
  transition: border-color 0.2s, background 0.2s;
}
.cf__btn-info:hover { border-color: var(--eth-green-200); background: var(--eth-green-050); }
@media (hover: hover) {
  .cf__card[data-pos="0"]:hover .cf__overlay { opacity: 0.18; }
  .cf__card[data-pos="0"]:hover .cf__img { animation: eth-kenburns 12s ease-in-out infinite alternate; }
  /* On hover: hide icon/number/description, KEEP title + info button over the image */
  .cf__card[data-pos="0"]:hover .cf__icon,
  .cf__card[data-pos="0"]:hover .cf__num,
  .cf__card[data-pos="0"]:hover .cf__desc { opacity: 0; transform: translateY(6px); pointer-events: none; }
  .cf__card[data-pos="0"]:hover .cf__title { opacity: 1; }
  .cf__card[data-pos="0"]:hover .cf__btn-info { opacity: 1; pointer-events: auto; }
}
.cf__card:not([data-pos="0"]) .cf__content { opacity: 0.7; }
.cf__nav { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 36px; }
.cf__btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--eth-border); color: var(--eth-fg);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cf__btn:hover { border-color: var(--eth-green-200); color: var(--eth-green-200); background: var(--eth-green-050); }
.cf__dots { display: flex; gap: 8px; align-items: center; }
.cf__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--eth-ink-500); border: none; padding: 0; cursor: pointer; transition: background 0.3s, width 0.3s; }
.cf__dot.is-active { background: var(--eth-green-200); width: 22px; border-radius: 4px; }

@media screen and (max-width: 600px) {
  .cf { height: 440px; }
  .cf__track, .cf__card { width: 300px; height: 400px; }
}
/* ─── end Discover ──────────────────────────────────────────────────────── */

/* Ken-burns for Discover card screenshots (central card on hover) */
@keyframes eth-kenburns {
  0%   { transform: scale(1.4) translate(18%, 18%); }
  100% { transform: scale(1.4) translate(-18%, -22%); }
}
@media (prefers-reduced-motion: reduce) {
  .cf__card[data-pos="0"]:hover .cf__img { animation: none; }
}


/* ─── Nav dropdown (Contact) ─────────────────────────────────────────────── */
.nav-dd { position: relative; display: inline-block; }
.nav-dd__btn {
  background: none; border: none; color: var(--eth-fg); font: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0;
  transition: color 0.18s;
}
.nav-dd__btn:hover, .nav-dd[data-open="true"] .nav-dd__btn { color: var(--eth-green-200); }
.nav-dd__caret { transition: transform 0.25s var(--eth-ease); }
.nav-dd[data-open="true"] .nav-dd__caret { transform: rotate(180deg); }
.nav-dd__menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--eth-ink-800); border: 1px solid var(--eth-border); border-radius: 12px;
  min-width: 210px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--eth-ease), transform 0.22s var(--eth-ease), visibility 0.22s;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7); z-index: 60;
}
.nav-dd[data-open="true"] .nav-dd__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd__item {
  color: var(--eth-fg); text-decoration: none; font-size: 14px;
  padding: 11px 14px; border-radius: 8px; transition: background 0.18s, color 0.18s;
}
.nav-dd__item:hover { background: var(--eth-green-050); color: var(--eth-green-200); }
/* ─── end nav dropdown ───────────────────────────────────────────────────── */


/* ─── Team card LinkedIn icon ────────────────────────────────────────────── */
.team-card__name-row { display: flex; align-items: center; gap: 8px; }
.team-card__name-row h4 { margin: 0; }
.team-card__li {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--eth-ink-200); transition: color 0.18s, transform 0.18s;
  line-height: 0;
}
.team-card__li:hover { color: var(--eth-green-200); transform: translateY(-1px); }
/* ─── end team LinkedIn ──────────────────────────────────────────────────── */


/* ─── Hero title — blur fade-in entrance (once on load, after the logo) ───── */
.hero__title--blur {
  opacity: 0;
  animation: eth-title-blurfade 2.5s ease-in 0.8s both;
}
@keyframes eth-title-blurfade {
  0%   { opacity: 0;   text-shadow: 0 0 40px rgba(255,255,255,0.9); transform: scale(1.3); }
  50%  { opacity: 0.5; text-shadow: 0 0 10px rgba(255,255,255,0.6); transform: scale(1.1); }
  100% { opacity: 1;   text-shadow: 0 0 1px rgba(255,255,255,0.7);  transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title--blur { opacity: 1; animation: none; }
}
/* ─── end hero title blur ────────────────────────────────────────────────── */
