/* ============================================================================
   WEB3 DAPP — Landing page styles
   ----------------------------------------------------------------------------
   HOW TO EDIT
   • Colours, fonts, radii and spacing tokens live in  :root  (below).
   • Every section is grouped under a numbered banner (01 Header, 02 Hero ...).
   • Layout values are written mobile-first; desktop rules sit in @media blocks.
   ========================================================================== */

/* --------------------------------------------------------------- 0. FONTS */
/* Self-hosted Outfit variable font (all weights 100–900 in one file).      */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.woff2") format("woff2-variations"),
       url("../fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- 0. TOKENS */
:root {
  /* Brand palette (sampled from the reference design) */
  --primary: #3a96ff;          /* blue   */
  --primary-rgb: 58, 150, 255;
  --secondary: #f0b90b;        /* gold   */
  --accent-mint: #12ffb8;      /* teal glow */
  --brand-pink: #ff4e98;       /* logo "e"  */
  --brand-sky: #44c4ff;        /* logo rest */

  /* Surfaces */
  --bg: #02050a;               /* page background        */
  --bg-alt: #09131d;           /* alternating section bg */
  --surface: #0f1e2e;          /* cards / panels         */
  --surface-2: #131f2e;        /* nested card            */
  --line: #1e2329;             /* borders                */
  --line-soft: rgba(218, 218, 218, 0.12);

  /* Text */
  --text: #ffffff;
  --text-muted: #dadada;
  --text-dim: rgba(255, 255, 255, 0.7);

  /* Type */
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.125rem, 1.1rem + 4.4vw, 3.9rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-h4: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lead: clamp(1rem, 0.94rem + 0.28vw, 1.25rem);
  --fs-body: clamp(0.95rem, 0.92rem + 0.16vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* Metrics */
  --container: 1320px;
  --gutter: clamp(1rem, 0.35rem + 2.6vw, 2.5rem);
  --section-y: clamp(4rem, 2.4rem + 5vw, 7.5rem);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --header-h: 64px;

  /* Effects */
  --glow-blur: 85px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------- 1. RESET/CORE */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; overflow: hidden; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--base { background: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Accent words inside headings */
.accent-blue {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}
.accent-gold {
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
}

/* Section heading block */
.section-head { margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.75rem); }
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
}
.section-head p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 34rem;
}

/* Decorative blurred glows ------------------------------------------------ */
.glow {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  filter: blur(var(--glow-blur));
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.glow--blue  { background: var(--primary); }
.glow--mint  { background: var(--accent-mint); }
.glow--gold  { background: var(--secondary); }
.glow--tl { top: -6%; left: -10%; }
.glow--tr { top: -6%; right: -8%; }
.glow--bl { bottom: -6%; left: -10%; }
.glow--br { bottom: -6%; right: -8%; }

/* ---------------------------------------------------------------- 2. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease),
              color 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Primary: solid blue pill with the reference's detached outline ring */
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--primary);
}
.btn--primary:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--primary);
}

/* Secondary: dark pill, blue ring */
.btn--ghost {
  background: var(--surface);
  color: #fff;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--primary);
}
.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* On coloured panels (step 1) — ring stays visible on blue */
.on-blue .btn--primary {
  background: var(--primary);
  box-shadow: 0 0 0 3px #0a66c9, 0 0 0 4.5px #ffffff;
}
.on-blue .btn--primary:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 0 0 3px #2b7fdc, 0 0 0 4.5px #fff;
}

/* Small link-style button (View Details) */
.link-btn {
  display: inline-block;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.link-btn:hover { color: var(--primary); text-decoration-color: var(--primary); }

/* --------------------------------------------------------------- 3. HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(2, 5, 10, 0.94);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

/* Logo — shield mark + two-line wordmark -------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}
.logo__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(58, 150, 255, 0.28));
}
.logo__type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.logo__name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.logo__w { color: var(--secondary); }
.logo__e { color: var(--brand-pink); }
.logo__rest { color: var(--brand-sky); }
.logo__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1;
  margin-left: 1px;   /* optically aligns the first letter under the wordmark */
}

/* Desktop navigation ----------------------------------------------------- */
.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(0.75rem, 0.2rem + 1vw, 1.75rem); }
.nav-list a {
  display: inline-block;
  padding: 0.35rem 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-actions .btn { padding: 0.6rem 1rem; font-size: 0.875rem; }

/* Login text link */
.auth-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s var(--ease);
}
.auth-link:hover { color: var(--primary); }

/* Create Account sits a shade brighter than Login */
.auth-link--strong { color: #fff; font-weight: 600; }
.auth-link--strong:hover { color: var(--primary); }

/* Below the desktop-nav breakpoint the drawer carries both account links */
.auth-link,
.auth-cta { display: none; }

/* Hamburger -------------------------------------------------------------- */
/* Loud by design: a labelled, filled button rather than three thin bars on a
   transparent background. On a 375px screen this is the only way into the
   menu, so it has to be impossible to miss. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(58, 150, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, #4AA2FF 0%, var(--primary, #3A96FF) 100%);
  box-shadow: 0 6px 18px -6px rgba(58, 150, 255, 0.75);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #4AA2FF;
  box-shadow: 0 8px 22px -6px rgba(58, 150, 255, 0.9);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  flex: 0 0 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__label { white-space: nowrap; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] { background: var(--secondary, #F0B90B); border-color: #F0B90B; color: #02050A; box-shadow: 0 6px 18px -6px rgba(240, 185, 11, 0.75); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { background: #02050A; }

/* Mobile drawer ---------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: min(340px, 88vw);
  padding: 1.25rem var(--gutter) 2rem;
  background: #10334a;              /* deep teal-blue, as in the reference */
  background-image: linear-gradient(160deg, #0b1b26 0%, #184a63 55%, #2f6f8c 100%);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.drawer-brand img { display: block; flex: 0 0 auto; }
.drawer-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}
.drawer-nav { display: flex; flex-direction: column; gap: 1.6rem; }
.drawer-nav a { font-size: 1.35rem; font-weight: 400; }
.drawer-nav a:hover { color: #cfe9ff; }
/* Signed-out drawer: the twelve Quick Links in two compact columns, so the
   whole list fits above the account block without a long scroll. */
.drawer-quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.drawer-quick-links .drawer-nav__link {
  display: block;
  padding: 0.45rem 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
.drawer-quick-links .drawer-nav__link:hover,
.drawer-quick-links .drawer-nav__link.is-current { color: #cfe9ff; }
.drawer-auth {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.drawer-auth__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.15rem;
}
.drawer-auth__link {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
}
.drawer-auth__link:hover { color: #cfe9ff; }

.drawer-cta {
  margin-top: 1.75rem;
  display: inline-flex;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-weight: 600;
}
.drawer-scrim {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- 4. HERO */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem));
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background: var(--bg);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  text-align: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.005em;
  max-width: none;
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

/* Hero artwork ------------------------------------------------------------ */
.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 1rem 2rem;
}
.hero__art { align-items: center; }
.hero__art .hero__cluster { position: relative; z-index: 2; width: min(112%, 760px); height: auto; }
.hero__art .glow {
  width: 280px; height: 280px;
  opacity: 0.5;
}

/* Large glow ellipse top-left (reference hero) */
.hero__ellipse {
  position: absolute;
  left: -50px; top: 2rem;
  width: clamp(90px, 12vw, 180px);
  height: auto;
  z-index: 0;
  opacity: 0.55;
  filter: blur(26px);
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (min-width: 1700px) { .hero__ellipse { display: none; } }

/* Rocket decoration bottom-left of the hero (desktop) */
.hero__rocket {
  position: absolute;
  left: 2%; bottom: 12%;
  width: clamp(60px, 7vw, 130px);
  height: auto;
  z-index: 1;
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}
@media (max-width: 991px) { .hero__rocket { display: none; } }

/* Floating decorative coins (desktop only) */
.float-coin { position: absolute; z-index: 1; pointer-events: none; height: auto; }
.float-coin--btc { left: 4%; bottom: 26%; width: 68px; animation: spin 26s linear infinite; }
.float-coin--eth { right: 9%; top: 34%; width: 56px; animation: spin 22s linear infinite reverse; }
.float-globe { position: absolute; right: 2%; top: 4%; width: 84px; height: auto; opacity: 0.9; animation: spin 40s linear infinite; }
.float-orbit { position: absolute; left: -6%; top: 8%; width: 100px; opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Stats ------------------------------------------------------------------ */
.stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem) 1rem;
  padding-bottom: var(--section-y);
}
.stat__value {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
}
.stat__label {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-body);
}


/* ------------------------------------------------------- 5. CAPABILITY CARDS */
.cards-grid {
  display: grid;
  gap: 1rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 0;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}
.card p {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: var(--fs-lead);
  max-width: 26rem;
}
.card__media { margin-top: auto; display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.card__media img { width: auto; max-height: 260px; object-fit: contain; }
.card--tall .card__media img { max-height: 300px; }

/* --------------------------------------------------------------- 6. EXPLORE */
.explore-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.75rem);
}
.explore-head .section-head { margin-bottom: 0; }

.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 340px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.explore-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.explore-card:hover { background: var(--surface); border-color: rgba(58, 150, 255, 0.35); }
.explore-card__icon {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: var(--primary);
  margin-bottom: 1.5rem;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.explore-card:hover .explore-card__icon { background: #2b84e8; transform: translateY(-2px); }
.explore-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.explore-card p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  margin-bottom: 1.5rem;
  max-width: 26ch;
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel__btn {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.carousel__btn--next {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.carousel__btn:hover { background: #2b84e8; color: #fff; }
.carousel__btn--next:hover { background: var(--primary); }
.carousel__btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.carousel__progress {
  position: relative;
  height: 2px;
  margin-top: 1.75rem;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.carousel__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
}

/* ---------------------------------------------------------------- 7. STEPS */
.steps-wrap { position: relative; }
.steps {
  position: relative;
  display: grid;
  gap: 0;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 0;
}
/* Shared panel behind the four steps */
.steps::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step + .step { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.step--active {
  background: var(--primary);
  border-radius: var(--radius-lg);
  border-top-color: transparent;
}
.step__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.step__num {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step p {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.82);
  max-width: 30ch;
}
.step--active p { color: rgba(255, 255, 255, 0.92); }
.step .btn { margin-top: 1.75rem; }
.step b { font-weight: 700; color: #fff; }

/* Error copy hidden under the annotation in the reference — kept for editors */
.step__missing { display: none; }

/* -------------------------------------------------------------- 8. RECOVERY */
.recovery__grid { display: grid; gap: 2.5rem; align-items: center; }
.recovery__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  object-fit: cover;
  object-position: 46% 50%;
}
@media (min-width: 992px) {
  .recovery__media img { aspect-ratio: 1432 / 806; }
}
.recovery h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}
.recovery__card {
  padding: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.recovery__card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.recovery__card p { color: var(--text-muted); font-size: var(--fs-body); }
.recovery__card .btn { align-self: flex-start; }

/* ------------------------------------------------------------------ 9. FAQ */
.faq__grid { display: grid; gap: 1.5rem; align-items: start; }
.faq-panel {
  padding: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.faq-panel__eyebrow {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.faq-panel h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.faq-panel > p { color: var(--text-muted); margin-bottom: 1.5rem; }

.faq-help {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.faq-help__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.faq-help__badge {
  flex: 0 0 auto;
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
}
.faq-help__badge span {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.faq-help h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.faq-help p { color: var(--text-muted); font-size: var(--fs-small); }

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 0.8rem + 1.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background-color 0.3s var(--ease);
}
.accordion__item.is-open { background: var(--surface); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.15rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
}
.accordion__icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: #fff;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.accordion__item.is-open .accordion__icon { background: var(--primary); }
.accordion__icon svg { transition: transform 0.3s var(--ease); }
.accordion__item.is-open .accordion__icon svg { transform: rotate(180deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  padding: 0 1.15rem 1.4rem;
  color: var(--text-muted);
  font-size: var(--fs-body);
  max-width: 60ch;
}

/* -------------------------------------------------------------- 10. TRUSTED */
.trusted { text-align: center; }
.trusted h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.75rem);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 1.5rem; }
.marquee__row {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  animation: marquee-left 38s linear infinite;
}
.marquee--reverse .marquee__row { animation-name: marquee-right; animation-duration: 44s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row img {
  height: auto;
  width: auto;
  max-height: 40px;
  opacity: 0.95;
  transition: opacity 0.3s var(--ease);
}
.marquee__row img:hover { opacity: 1; }

@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none; }
  .float-coin, .float-globe { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- 11. FOOTER */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  background-image:
    radial-gradient(120% 90% at 85% 0%, rgba(18, 255, 184, 0.16), transparent 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(58, 150, 255, 0.18), transparent 60%);
  padding-top: var(--section-y);
}
.footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--section-y);
}
.footer h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  max-width: 22rem;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: var(--fs-body);
  position: relative;
  width: fit-content;
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.footer__links a:hover { color: var(--primary); }
.footer__links a:hover::after { transform: scaleX(1); }

.footer__news { text-align: center; padding-inline: clamp(0rem, 0.5vw, 2.5rem); }
.footer__news p {
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 34rem;
}
.newsletter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  margin-inline: auto;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter input:focus { outline: none; border-color: var(--primary); }
.newsletter button {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.newsletter button:hover { background: #2b84e8; transform: translateY(-2px); }
.newsletter__msg {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  color: var(--accent-mint);
  min-height: 1.25rem;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer__bottom p { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.9); }
.footer__domain { margin-top: 0.35rem; }
.footer__domain a {
  color: var(--brand-sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(68, 196, 255, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__domain a:hover { color: #fff; border-color: #fff; }

.footer__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.footer__deco--faq { right: 2%; top: 8%; width: 200px; opacity: 0.5; }
.footer__deco--el { right: 0; bottom: 0; width: 220px; opacity: 0.7; }

/* ------------------------------------------------------ 12. SCROLL REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================== 13. TABLET */
@media (min-width: 768px) {
  :root { --header-h: 76px; }

  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recovery__grid { gap: 3rem; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .footer__news { text-align: center; padding-inline: clamp(0rem, 0.5vw, 2.5rem); }
  .carousel__track { grid-auto-columns: min(46%, 340px); }
}

/* ============================================ 14. DESKTOP NAV SWITCH (1280)
   Everything above 1280px uses the inline menu; below it the drawer so the
   logo, 11 links, 2 account actions and the CTA always fit.
   ====================================================================== */
@media (min-width: 1280px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-drawer, .drawer-scrim { display: none; }
  .auth-link { display: inline-flex; }

  /* Fluid sizing keeps logo + 11 links + 2 account links + CTA inside the
     1320px container at every width from 1280px upward. */
  .nav-list { gap: clamp(9px, 0.3vw + 6px, 12px); }
  .nav-list a { font-size: clamp(13.5px, 0.15vw + 12px, 14.5px); }
  .header-actions { gap: clamp(10px, 0.4vw + 5px, 14px); }
  .header-actions .btn {
    padding: 0.7rem clamp(1rem, 0.4vw + 0.5rem, 1.3rem);
    font-size: clamp(0.88rem, 0.12vw + 0.8rem, 0.95rem);
  }
  .auth-link { font-size: clamp(0.82rem, 0.1vw + 0.76rem, 0.9rem); }
}

/* ============================================================= 15. DESKTOP */
@media (min-width: 992px) {
  :root { --header-h: 88px; --section-y: clamp(5rem, 3rem + 4vw, 7.5rem); }

  .header-actions .btn { padding: 0.75rem 1.6rem; font-size: 1rem; }
  .logo__mark { width: 46px; height: 46px; }
  .logo__name { font-size: 1.45rem; }
  .logo__sub { font-size: 0.66rem; }

  /* Hero becomes two-column; copy aligns left like the source layout */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 0.5rem + 2vw, 3rem);
    text-align: left;
  }
  .hero__copy { align-items: flex-start; }
  .hero h1 { max-width: 13ch; }
  .hero__actions { justify-content: flex-start; }
  .hero__lead { margin-top: 1.5rem; }
  .hero__art { padding-block: 0; }
  .hero__art img { width: 100%; }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-bottom: clamp(4rem, 2rem + 5vw, 7.5rem);
  }
  .stat { padding-inline: clamp(1rem, 0.4rem + 1.4vw, 2rem); }
  .stat:not(:first-child) { border-left: 1px solid rgba(218, 218, 218, 0.35); }

  /* Cards: 3 columns, first card spans two rows */
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
  .card { padding: clamp(1.5rem, 1rem + 1vw, 2rem) clamp(1.5rem, 1rem + 1vw, 2rem) 0; }
  .card--tall { grid-row: span 2; }
  .card--tall .card__media img { width: 100%; max-height: none; }
  .card__media img { max-height: 230px; }

  .carousel__track { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }

  /* Steps: 4 across with the shared panel behind */
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding: clamp(2rem, 1rem + 2.5vw, 3.75rem) clamp(1rem, 0.5rem + 1vw, 2rem); }
  .step + .step { border-top: 0; }

  .recovery__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
  .recovery__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .recovery__card > div { max-width: 26rem; }
  .recovery__card .btn { align-self: center; }

  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 0.5rem + 2vw, 2.5rem); }

  .footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
  .footer__links { max-width: none; }
  .footer__deco--faq { width: 260px; }

}

@media (min-width: 1280px) {
  .carousel__track { gap: 1.5rem; }
  .cards-grid { gap: 1.5rem; }
  .hero h1 { max-width: 12.5ch; }
}

/* ======================================================== 15. LAYOUT EXTRAS
   Rules that pair with individual sections (split headings,
   step title, carousel widths). Kept together for easy tweaking.
   ====================================================================== */

/* Two-part section heading: title left, supporting copy right */
.split-head { display: grid; gap: 1rem; }
@media (min-width: 992px) {
  .split-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 1rem + 6vw, 12rem);
    align-items: start;
  }
  .split-head > p { margin-top: 0.35rem; max-width: 26rem; justify-self: end; }
}

/* Steps heading */
.steps-title {
  text-align: center;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.75rem);
}

/* Carousel card widths per breakpoint */
@media (min-width: 992px) {
  .carousel__track { grid-auto-columns: calc((100% - 2rem) / 3); }
  .carousel__nav { justify-content: center; }
}
@media (min-width: 1280px) {
  .carousel__track { grid-auto-columns: calc((100% - 4.5rem) / 4); }
}

/* Brand logos keep their aspect ratio inside the marquee */
.marquee__row img { flex: 0 0 auto; }

/* Explore icon image sizing */
.explore-card__icon img {
  width: auto;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}


/* Footer decorations */
.footer { position: relative; }
.footer__deco--faq { top: auto; bottom: 1.5rem; right: 0.5%; width: clamp(70px, 8vw, 130px); opacity: 0.2; z-index: 0; }

/* Small toast used for placeholder actions (wallet buttons) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 120;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ================================================ 16. VISUAL QA FIXES
   Isolated fixes so the hero artwork and header behave exactly as
   intended at every width.
   ================================================================== */

/* The main cluster image is the only one that fills the art column —
   the small floating tokens keep their own sizes. */
.hero__art .float-globe { width: clamp(48px, 6vw, 84px); height: auto; }
.hero__art .float-coin--btc { width: clamp(38px, 5vw, 68px); }
.hero__art .float-coin--eth { width: clamp(30px, 4vw, 56px); }
.hero__art img { max-width: 100%; }

/* Mobile header: keep the logo, CTA and burger on one line without clipping */
@media (max-width: 991px) {
  .header-inner { gap: 0.5rem; }
  .logo { gap: 0.45rem; flex-shrink: 1; min-width: 0; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 1.05rem; }
  .logo__sub { font-size: 0.52rem; letter-spacing: 0.15em; gap: 4px; }
  .header-actions { gap: 0.4rem; flex-shrink: 0; }
  .header-actions .btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
  .nav-toggle { min-height: 44px; padding: 0 13px; }
}
@media (max-width: 480px) {
  /* The CTA is redundant once the drawer is one tap away, and removing it is
     what guarantees the labelled menu button never gets squeezed. */
  .header-actions .btn { display: none; }
  .nav-toggle { padding: 0 12px; font-size: 0.8rem; }
}
@media (max-width: 380px) {
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 0.95rem; }
  .logo__sub { font-size: 0.46rem; letter-spacing: 0.12em; }
  .nav-toggle { padding: 0 11px; font-size: 0.78rem; gap: 7px; }
  .nav-toggle__bars { width: 16px; flex-basis: 16px; }
}

