/* =====================================================================
   Know Your Cryptos (KYC) - Main Stylesheet
   ---------------------------------------------------------------------
   Structure of this file:
     1.  Theme variables (colors, type, spacing)  <-- edit palette here
     2.  Base / reset
     3.  Typography
     4.  Layout helpers (container, section)
     5.  Buttons
     6.  Header + navigation (desktop + mobile menu)
     7.  Hero
     8.  Home page sections
     9.  Game mode tiles + feature rows
     10. About page (timeline)
     11. Support page (FAQ)
     12. Privacy page
     13. Footer
     14. Utilities + accessibility
     15. Responsive breakpoints
   ===================================================================== */


/* =====================================================================
   1. THEME VARIABLES - change these to re-skin the whole site
   ===================================================================== */
:root {
  /* Backgrounds (deep navy) */
  --bg-primary:      #0a1428;   /* page background */
  --bg-secondary:    #0d1a33;   /* alternating sections */
  --bg-elevated:     #13254799; /* translucent card surface */
  --bg-header:       #0a1428cc; /* sticky header (translucent) */

  /* Text */
  --text-primary:    #eaf1fb;
  --text-secondary:  #a6b8d6;
  --text-muted:      #8398ba;

  /* Accents */
  --accent-blue:     #2f6be6;
  --accent-blue-lt:  #4c8dff;
  --accent-cyan:     #38d2e8;
  --accent-gold:     #e7c46b;
  --accent-silver:   #c3d0e2;

  /* Borders & lines */
  --border-subtle:   rgba(150, 180, 224, 0.14);
  --border-strong:   rgba(150, 180, 224, 0.30);

  /* Signature gradient (blue -> cyan) */
  --grad-brand:      linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);

  /* Glows / shadows */
  --shadow-card:     0 14px 30px rgba(0, 0, 0, 0.45);
  --glow-cyan:       0 0 0 1px rgba(56, 210, 232, 0.35),
                     0 18px 46px rgba(20, 120, 190, 0.35);

  /* Type families */
  --font-display: "Fredoka", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  /* Layout */
  --container:       1180px;
  --container-narrow: 780px;
  --radius-lg:       22px;
  --radius-md:       14px;
  --radius-pill:     999px;

  /* Consistent section rhythm */
  --section-pad:     clamp(3.75rem, 8vw, 6.5rem);
  --gutter:          clamp(1.25rem, 4vw, 2.5rem);
}


/* =====================================================================
   2. BASE / RESET
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  /* Soft ambient glows that stay subtle and on-brand (no busy backgrounds) */
  background-image:
    radial-gradient(60rem 40rem at 78% -8%, rgba(47, 107, 230, 0.16), transparent 60%),
    radial-gradient(48rem 34rem at 8% 6%, rgba(56, 210, 232, 0.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { color: var(--accent-blue-lt); }

ul { margin: 0; padding: 0; }


/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Eyebrow: a small labelled kicker above section titles. Sentence case,
   not all-caps, with a short gradient tick to tie into the brand. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}


/* =====================================================================
   4. LAYOUT HELPERS
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); }
.section--alt { background-color: var(--bg-secondary); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }


/* =====================================================================
   5. BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease;
}

/* Primary: bright blue->cyan gradient with dark text for strong contrast */
.btn--primary {
  background: var(--grad-brand);
  color: #06122b;
  box-shadow: 0 10px 24px rgba(47, 107, 230, 0.30);
}
.btn--primary:hover {
  color: #06122b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(56, 210, 232, 0.40);
}

/* Secondary: outlined, quiet */
.btn--ghost {
  background: rgba(150, 180, 224, 0.05);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  background: rgba(56, 210, 232, 0.08);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }


/* =====================================================================
   6. HEADER + NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

/* --- Brand / logo lockup (placeholder - swap SVG/text for a real logo) --- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-badge { display: grid; place-items: center; flex: none; }
.brand-badge svg { width: 40px; height: 40px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.brand-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--accent-cyan);
  padding-left: 0.06em;
}

/* --- Primary navigation --- */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.primary-nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.primary-nav a:hover { color: var(--text-primary); background: rgba(150,180,224,0.08); }
.primary-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(56, 210, 232, 0.12);
}
.nav-cta { margin-left: 0.4rem; }

/* --- Mobile menu toggle (hidden on desktop) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =====================================================================
   7. HERO
   ===================================================================== */
/* Full supplied card artwork floats directly on the navy background. */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 0.35em; }
.hero-copy h1 span { color: #72d8ed; }
.hero-copy .lead { font-family: var(--font-display); color: var(--text-primary); font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 0.7rem; }
.hero-copy > p:not(.lead):not(.eyebrow):not(.release-note) { max-width: 27rem; margin-bottom: 1.6rem; }
.hero-copy .eyebrow { color: var(--accent-silver); }
.release-note { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--text-secondary); margin: 1.25rem 0 0; }
.release-note > span { width: 6px; height: 6px; border-radius: 50%; background: #8acdb6; box-shadow: 0 0 0 4px rgba(138,205,182,0.08); flex: none; }
.hero-deck { position: relative; display: grid; place-items: center; min-height: clamp(26rem, 39vw, 35rem); isolation: isolate; }
.hero-deck::before { content: ""; position: absolute; inset: -5% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(49,113,190,0.27), rgba(56,210,232,0.035) 50%, transparent 70%); }
.hero-deck::after { content: ""; position: absolute; bottom: 1.5rem; width: 78%; height: 3rem; border-radius: 50%; background: rgba(0,0,0,0.25); filter: blur(20px); z-index: -1; }
.hero-deck img { position: absolute; border-radius: var(--radius-lg); filter: drop-shadow(0 20px 22px rgba(0,0,0,0.4)); }
.hero-deck .card-front { width: 55%; z-index: 3; transform: translateY(-4%) rotate(-4deg); }
.hero-deck .card-back-l { width: 41%; z-index: 1; transform: translate(-65%, 10%) rotate(-13deg); }
.hero-deck .card-back-r { width: 41%; z-index: 2; transform: translate(65%, 6%) rotate(12deg); }


/* =====================================================================
   8. HOME PAGE SECTIONS
   ===================================================================== */

/* "What is KYC" - a set of trait chips, not identical boxes */
.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.trait {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(150, 180, 224, 0.05);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.98rem;
}
.trait .dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--grad-brand); flex: none;
}

/* Two-column intro (text + supporting note card) */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.note-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
}
.note-card h3 { color: var(--accent-cyan); }

/* Ecosystem category tags ("Learn while playing") */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }
.tag {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(56, 210, 232, 0.06);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Website illustrations for rewards; these are not captured app UI. */
.reward-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.reward { --reward-color: var(--accent-cyan); padding: 0; border: 0; background: none; }
.reward--score { --reward-color: #81cfeb; }
.reward--streak { --reward-color: #c3d0e2; }
.reward--token { --reward-color: #d5b86e; }
.reward--brain { --reward-color: #8acdb6; }
.reward--progress { --reward-color: #76a6ed; }
.reward .reward-mark { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; margin-bottom: 1.2rem; border-radius: 21px 21px 21px 7px; color: var(--reward-color); border: 1px solid rgba(150,180,224,0.25); background: linear-gradient(145deg, rgba(150,180,224,0.13), rgba(13,26,51,0.5)); box-shadow: inset 0 1px 0 rgba(234,241,251,0.12), 0 9px 18px rgba(0,0,0,0.18); }
.reward-mark svg { width: 2.7rem; height: 2.7rem; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.kyc-reward-letter { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; }
.reward h3 { font-size: 1.13rem; margin-bottom: 0.45rem; }
.reward p { font-size: 0.88rem; margin: 0; color: var(--text-secondary); }

.disclaimer-inline {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 44rem;
}

/* Closing CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }


/* =====================================================================
   9. GAME MODE TILES + FEATURE ROWS
   ===================================================================== */

/* Art and editorial captions rather than bordered dashboard tiles. */
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; margin-top: 2.5rem; }
.mode-tile { display: grid; grid-template-columns: 47% 1fr; gap: 1.3rem; align-items: center; padding-block: 1.8rem; position: relative; border-radius: 16px; color: var(--text-primary); }
.mode-tile::after { content: ""; position: absolute; bottom: 0; left: 5%; right: 0; height: 1px; background: linear-gradient(90deg, rgba(150,180,224,0.2), transparent); }
.mode-tile img { width: 100%; height: auto; transform: rotate(-2deg); filter: drop-shadow(0 14px 18px rgba(0,0,0,0.35)); transition: transform 0.25s ease, filter 0.25s ease; }
.mode-tile:nth-child(even) img { transform: rotate(2deg); }
.mode-caption { min-width: 0; }
.mode-category { display: block; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-silver); margin-bottom: 0.8rem; }
.mode-number { font-variant-numeric: tabular-nums; color: var(--accent-gold); margin-right: 0.5rem; }
.mode-caption h3 { font-size: clamp(1.3rem, 1.7vw, 1.65rem); line-height: 1.15; margin-bottom: 0.55rem; }
.mode-caption p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.mode-link { color: #72d8ed; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.mode-link > span { transition: transform 0.2s ease; }
.mode-tile:hover img, .mode-tile:focus-visible img { transform: translateY(-6px) rotate(0); filter: drop-shadow(0 18px 24px rgba(31,119,170,0.23)); }
.mode-tile:hover .mode-link > span, .mode-tile:focus-visible .mode-link > span { transform: translateX(4px); }
.mode-grid-cta { margin-top: 2.5rem; text-align: center; }

/* --- Game Modes page: alternating feature rows --- */
.mode-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  scroll-margin-top: 6rem; /* clear the sticky header when jumped to via #anchor */
}
.mode-row + .mode-row { border-top: 1px solid var(--border-subtle); }
/* Alternate the image to the opposite side on even rows (desktop only) */
.mode-row:nth-child(even) .mode-figure { order: 2; }

.mode-figure { display: grid; place-items: center; }
.mode-figure img {
  width: min(100%, 21rem);
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.5));
}
.mode-detail h2 { margin-bottom: 0.4em; }
.mode-detail p { max-width: 34rem; }

/* "What it tests" pill */
.tests-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(231, 196, 107, 0.08);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
}


/* =====================================================================
   10. ABOUT PAGE - timeline
   ===================================================================== */
.about-lead { max-width: 42rem; }

.creator-block {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 1rem;
}
/* Placeholder frame for an optional creator photo (see about.html comment) */
.creator-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(circle at 50% 38%, rgba(56,210,232,0.14), transparent 60%),
    var(--bg-elevated);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  padding: 1.5rem;
}

/* Timeline (a genuine sequence, so numbered/ordered markers fit here) */
.timeline {
  list-style: none;
  margin-top: 1rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.05rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--accent-cyan), var(--accent-blue));
  opacity: 0.5;
}
.timeline li {
  position: relative;
  padding-left: 3.25rem;
  padding-block: 0.85rem;
}
.timeline .step-num {
  position: absolute;
  left: 0; top: 0.7rem;
  width: 2.15rem; height: 2.15rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.timeline h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.timeline p { margin: 0; font-size: 0.98rem; }


/* =====================================================================
   11. SUPPORT PAGE - FAQ (native details/summary, no JS needed)
   ===================================================================== */
.support-contact {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}
.support-contact .email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-cyan);
  word-break: break-word;
}

.faq { display: grid; gap: 0.85rem; }
.faq details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(150, 180, 224, 0.04);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.25rem 1.2rem; color: var(--text-secondary); }
.faq .faq-body p { margin-bottom: 0.6rem; }


/* =====================================================================
   12. PRIVACY PAGE
   ===================================================================== */
.notice-card {
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(56,210,232,0.06), transparent 40%),
    var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-card);
}
.notice-card h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }


/* =====================================================================
   13. FOOTER
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.95rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand p { margin-top: 0.5rem; max-width: 24rem; color: var(--text-muted); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }
.footer-nav a { color: var(--text-secondary); font-weight: 500; }
.footer-nav a:hover { color: var(--text-primary); }
.footer-legal {
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: grid;
  gap: 0.6rem;
}
.footer-legal p { margin: 0; max-width: 62rem; }


/* =====================================================================
   14. UTILITIES + ACCESSIBILITY
   ===================================================================== */
/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent-cyan);
  color: #06122b;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; color: #06122b; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden (screen-reader only) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }


/* =====================================================================
   15. RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* Tablet and below: collapse the primary nav into a mobile menu */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    /* hidden by default; revealed when header has .is-open */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .site-header { position: sticky; }          /* keep sticky context */
  .site-header .header-inner { position: relative; }
  .site-header.is-open .primary-nav { max-height: 26rem; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--gutter) 1.1rem;
  }
  .primary-nav a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.4rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* Stack hero + two-column layouts on smaller screens */
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-deck { min-height: clamp(22rem, 65vw, 30rem); width: min(100%, 34rem); margin-inline: auto; }

  .split { grid-template-columns: 1fr; }
  .creator-block { grid-template-columns: 1fr; }
  .creator-photo { max-width: 18rem; }

  .mode-row { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Reset alternation so the image always sits above the text on mobile */
  .mode-row:nth-child(even) .mode-figure { order: 0; }
  .mode-figure img { width: min(100%, 18rem); }

  .footer-top { flex-direction: column; }
}

/* Phone: comfortable tap targets, no tiny text */
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .brand-name { font-size: 1.02rem; }
}


/* =====================================================================
   Respect users who prefer reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   16. KYC visual polish shared by the existing pages
   ===================================================================== */
body { background-attachment: scroll; }
:root { --section-pad: clamp(3.5rem, 7vw, 5.75rem); --accent-success: #8acdb6; }
.header-inner { min-height: 4.25rem; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.16em; margin-top: 0.2rem; color: var(--text-secondary); }
.primary-nav a { font-size: 0.9rem; padding: 0.5rem 0.8rem; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem; height: 2px; border-radius: 2px; background: var(--accent-cyan); transform: scaleX(0); transition: transform 0.2s ease; }
.primary-nav a[aria-current="page"] { background: transparent; color: var(--text-primary); }
.primary-nav a[aria-current="page"]::after, .primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.primary-nav a:hover { background: rgba(150,180,224,0.04); }
.btn { gap: 0.65rem; font-size: 0.9rem; padding: 0.95rem 1.2rem; min-height: 46px; }
.btn--primary { background: linear-gradient(140deg, #4c8dff, #67cce0); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 18px rgba(47,107,230,0.16); }
.btn--ghost { background: transparent; }
.section-head h2, .split h2 { font-size: clamp(1.9rem, 3.1vw, 2.8rem); letter-spacing: -0.015em; }
.section-head .lead { font-size: 1.06rem; max-width: 36rem; }
.eyebrow { font-family: var(--font-body); font-size: 0.73rem; letter-spacing: 0.12em; text-transform: uppercase; color: #72d8ed; }
.eyebrow::before { width: 1.25rem; height: 2px; border-radius: 0; }
.home-page .section { position: relative; }
.home-page .section--alt { background: linear-gradient(180deg, transparent, rgba(22,43,75,0.4) 25%, rgba(22,43,75,0.24) 75%, transparent); }
.home-page .section--alt::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(150,180,224,0.18), transparent); }
.home-page .split { grid-template-columns: 1.4fr 0.8fr; gap: clamp(2rem, 7vw, 6rem); }
.home-page .split > div > p:not(.eyebrow) { max-width: 34rem; }
.trait-list { gap: 0.5rem 1.25rem; margin-top: 1.25rem; }
.trait { padding: 0; border: 0; background: none; font-size: 0.83rem; color: var(--text-secondary); }
.trait .dot { width: 0.35rem; height: 0.35rem; background: var(--accent-success); }
.note-card { padding: 1rem 0 1rem 1.75rem; border: 0; border-left: 2px solid rgba(231,196,107,0.4); border-radius: 0; box-shadow: none; background: none; }
.note-card h3 { color: var(--text-primary); font-size: 1.45rem; }
.note-card p { font-size: 0.95rem; margin-bottom: 0; }
.note-kicker { color: var(--accent-gold); display: block; font-size: 0.73rem; margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.learn-section { text-align: center; }
.learn-section .section-head { margin-inline: auto; }
.learn-section .section-head .lead { margin-inline: auto; }
.learn-section .tag-cloud { justify-content: center; max-width: 48rem; margin-inline: auto; }
.tag { padding: 0.55rem 0.95rem; border-radius: 100px; background: rgba(150,180,224,0.04); color: var(--accent-silver); font-size: 0.85rem; }
.rewards-section .disclaimer-inline { max-width: 52rem; font-size: 0.82rem; line-height: 1.65; margin-top: 2.5rem; padding-left: 1rem; border-left: 2px solid rgba(231,196,107,0.3); }
.closing-section { background: radial-gradient(ellipse at 50% 65%, rgba(47,107,230,0.13), transparent 70%) !important; }
.closing-section h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.site-footer { background: rgba(6,15,31,0.45); padding-block: 2rem; border-top-color: rgba(150,180,224,0.1); }
.footer-top { padding-bottom: 1.1rem; border-bottom: 0; }
.footer-brand p { font-size: 0.85rem; }
.footer-legal { font-size: 0.75rem; line-height: 1.65; max-width: 58rem; }
.footer-nav a { font-size: 0.84rem; }
.mode-figure { position: relative; isolation: isolate; }
.mode-figure::before { content: ""; position: absolute; inset: 7% 3%; background: radial-gradient(ellipse, rgba(47,107,230,0.13), transparent 70%); z-index: -1; }
.mode-figure img { width: min(100%, 23rem); }
.mode-row + .mode-row { border-top-color: rgba(150,180,224,0.08); }
.tests-pill { font-size: 0.73rem; border: 0; padding: 0; background: none; text-transform: uppercase; letter-spacing: 0.05em; }
/* Grid children must be able to shrink without forcing horizontal overflow. */
.hero-grid > *, .split > *, .mode-row > *, .reward-grid > * { min-width: 0; }
@media (max-width: 1050px) {
  .mode-grid { column-gap: 1.75rem; }
  .mode-tile { grid-template-columns: 1fr; gap: 1.4rem; align-items: start; padding: 1.5rem 0; }
  .mode-tile img { width: min(100%, 19rem); justify-self: center; }
  .mode-caption { padding-inline: 0.75rem; }
  .mode-caption h3 { font-size: 1.5rem; }
  .reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 860px) {
  .primary-nav { visibility: hidden; transition: max-height 0.28s ease, visibility 0.28s ease; }
  .site-header.is-open .primary-nav { visibility: visible; }
  .primary-nav a { min-height: 44px; font-size: 1rem; }
  .primary-nav a::after { right: auto; width: 1rem; bottom: 0.4rem; }
}
@media (max-width: 780px) {
  .hero-grid { gap: 2rem; }
  .hero-copy { max-width: 35rem; }
  .hero-copy h1 { font-size: clamp(3.2rem, 8vw, 4.5rem); }
  .hero { padding-top: 3rem; padding-bottom: 2rem; }
  .home-page .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-deck { order: 0; }
  .mode-figure img { width: min(100%, 22rem); }
}
@media (max-width: 580px) {
  .mode-grid { grid-template-columns: 1fr; margin-top: 1rem; gap: 0.5rem; }
  .mode-tile { grid-template-columns: 44% 1fr; gap: 1.25rem; align-items: center; padding-block: 1.5rem; }
  .mode-caption { padding: 0; }
  .mode-caption h3 { font-size: 1.23rem; }
  .mode-caption p { font-size: 0.82rem; line-height: 1.5; margin-bottom: 0.8rem; }
  .mode-category { font-size: 0.62rem; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
  .mode-number { margin-right: 0.3rem; }
  .mode-link { font-size: 0.75rem; }
  .reward-grid { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 2rem; }
  .reward { display: grid; grid-template-columns: 4.2rem 1fr; align-items: center; gap: 1.1rem; }
  .reward .reward-mark { margin-bottom: 0; }
  .reward h3 { margin-bottom: 0.3rem; }
  .home-page .section { padding-block: 3rem; }
  .release-note { font-size: 0.72rem; }
  .hero-deck { min-height: 23rem; }
  .tag { font-size: 0.78rem; }
  .footer-nav ul { gap: 0.75rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mode-tile:hover img, .mode-tile:focus-visible img { transform: rotate(0); }
}
