/* ==========================================================================
   CashOut — getcashoutapp.com
   Design system + global styles.
   Brand tokens lifted 1:1 from the iOS app's Theme.swift.
   ========================================================================== */

/* ------------------------------------------------------------------ Reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Core surfaces (deep navy identity) */
  --bg:            #0A0F1A;
  --bg-2:          #0B1120;
  --surface:       #131A2B;
  --surface-high:  #1C2540;
  --surface-stroke: rgba(255, 255, 255, 0.06);
  --surface-translucent: rgba(255, 255, 255, 0.07);

  /* Brand */
  --primary:       #1B46E9;
  --primary-deep:  #0E2AB0;
  --primary-bright:#5C7BFF;
  --accent:        #F5C451;  /* gold */
  --teal:          #2EB8DB;
  --completion:    #18C964;  /* green "done" */
  --flame:         #FA8C33;
  --panic:         #E10015;
  --danger:        #FF5C5C;

  /* Text */
  --text:          #FFFFFF;
  --text-secondary:#A0AABF;
  --text-tertiary: #6B7891;
  --divider:       rgba(255, 255, 255, 0.08);

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #1B46E9 0%, #0E2AB0 100%);
  --grad-button:   linear-gradient(180deg, #2E5CF2 0%, #1238C7 100%);
  --grad-progress: linear-gradient(90deg, #1B46E9 0%, #2EB8DB 100%);
  --grad-card:     linear-gradient(225deg, #33E0B8 0%, #1AB39E 28%, #2E7AEB 64%, #8552F2 100%);
  --grad-hero:     linear-gradient(180deg, #0A0F1A 0%, #131C38 100%);
  --grad-gold:     linear-gradient(135deg, #FFE49B 0%, #F5C451 45%, #C9962B 100%);

  /* Type */
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Nunito Sans", system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 80px;
  --sp-4xl: 120px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --nav-h: 76px;

  /* Shadows / glows */
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glow-primary: 0 0 80px -10px rgba(27, 70, 233, 0.55);
  --glow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------- Base */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient page background — subtle radial brand auras pinned behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -5%, rgba(27, 70, 233, 0.22), transparent 70%),
    radial-gradient(50% 45% at 0% 12%, rgba(46, 184, 219, 0.10), transparent 70%),
    radial-gradient(55% 40% at 50% 110%, rgba(133, 82, 242, 0.12), transparent 70%);
  pointer-events: none;
}

::selection { background: rgba(27, 70, 233, 0.5); color: #fff; }

/* Typography ---------------------------------------------------------------*/
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(27,70,233,0.22), rgba(27,70,233,0.06));
  border: 1px solid rgba(92, 123, 255, 0.28);
  color: #cdd7ff;
}

.h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.lead {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.text-grad {
  background: var(--grad-progress);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout helpers -----------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(64px, 11vw, 130px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.center { text-align: center; }
.muted { color: var(--text-secondary); }
.stack-sm > * + * { margin-top: 12px; }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 18px; }

/* Buttons ------------------------------------------------------------------*/
.btn {
  --_bg: var(--grad-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 30px;
  border: 1px solid rgba(92, 123, 255, 0.5);
  border-radius: var(--r-pill);
  background: var(--_bg);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: 0 12px 30px -10px rgba(27, 70, 233, 0.65), inset 0 1px 0 rgba(255,255,255,0.25);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 18px 40px -10px rgba(27,70,233,0.8), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  --_bg: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); box-shadow: none; }
.btn-gold {
  --_bg: var(--grad-gold);
  color: #2A1A00;
  border-color: rgba(255, 220, 140, 0.6);
  box-shadow: 0 12px 30px -10px rgba(245, 196, 81, 0.6), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-lg { padding: 19px 38px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* App store badges ---------------------------------------------------------*/
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.5); }
.store-badge svg, .store-badge img { width: 26px; height: 26px; flex: none; object-fit: contain; }
.store-badge .sb-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.store-badge .sb-top {
  font-family: -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.62rem; font-weight: 400; color: #fff; letter-spacing: 0.01em; margin-bottom: 3px;
}
.store-badge .sb-main {
  font-family: -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; font-size: 1.3rem; line-height: 1; color: #fff; letter-spacing: -0.02em;
}

/* Cards --------------------------------------------------------------------*/
.card {
  background: linear-gradient(180deg, rgba(28,37,64,0.55), rgba(19,26,43,0.55));
  border: 1px solid var(--surface-stroke);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.card-glow { box-shadow: var(--glow-soft); }

/* ============================ NAVBAR ====================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--divider);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.brand .wordmark { background: linear-gradient(180deg,#fff,#c3ccdb); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--divider);
  cursor: pointer;
  position: relative;
}
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============================ HERO ======================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 7px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--divider);
  margin-bottom: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #dce3f0;
}
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg); object-fit: cover; margin-left: -10px;
}
.hero-trust .avatars img:first-child { margin-left: 0; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 540px; margin-bottom: 32px; }
.hero-badges { margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: var(--text-tertiary); }
.hero-note strong { color: var(--accent); font-weight: 700; }

/* Phone visual */
.hero-phone-wrap { position: relative; display: flex; justify-content: center; }
.hero-phone-glow {
  position: absolute;
  width: 80%; height: 70%;
  top: 8%; left: 10%;
  background: radial-gradient(circle, rgba(27,70,233,0.55), rgba(133,82,242,0.25) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.hero-phone {
  position: relative;
  z-index: 1;
  width: min(330px, 78%);
  border-radius: 44px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.05);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

/* ===================== PRESS / FEATURED STRIP ============================= */
.press { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.press-title { text-align: center; color: var(--text-tertiary); font-weight: 700; letter-spacing: 0.12em; font-size: 0.78rem; text-transform: uppercase; margin-bottom: 30px; }
.press-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 70px); }
.press-row img { height: 34px; width: auto; opacity: 0.62; filter: grayscale(1) brightness(1.6); transition: opacity 0.2s; }
.press-row .press-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: #cdd3df; opacity: 0.6; font-size: 1.35rem; letter-spacing: 0.01em; }
.press-row img:hover, .press-row .press-name:hover { opacity: 0.95; }

/* ===================== SCROLL-REVEAL MISSION ============================== */
/* Pinned section: big statement fills word-by-word, then stats slide up.    */
.reveal-section { position: relative; }
.reveal-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  gap: 56px;
}
.reveal-text {
  max-width: 1000px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(1.7rem, 4.6vw, 3.5rem);
}
.reveal-text .word {
  color: rgba(255,255,255,0.14);
  transition: color 0.12s linear, text-shadow 0.12s linear;
}
/* No-JS / reduced-motion fallback: text is simply legible, stats visible. */
html:not(.js) .reveal-text .word { color: #fff; }
html:not(.js) .reveal-stats { opacity: 1; transform: none; }
html:not(.js) .reveal-section { height: auto !important; }
html:not(.js) .reveal-sticky { position: static; min-height: 0; }
.reveal-text .word.lit { color: #fff; }
.reveal-text .word.brandword {
  color: rgba(80,120,255,0.5);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.reveal-text .word.brandword.lit {
  color: #4F7BFF;
  text-shadow: 0 0 28px rgba(79,123,255,0.75), 0 0 60px rgba(27,70,233,0.5);
}

.reveal-stats {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 40px 36px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(28,37,64,0.6), rgba(13,18,32,0.5));
  border: 1px solid var(--surface-stroke);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stats.show { opacity: 1; transform: translateY(0); }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; }
.stat .num.blue { background: linear-gradient(180deg, #7d96ff, #1B46E9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num.gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num.green { background: linear-gradient(180deg, #5cf0a0, #18C964); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { margin-top: 12px; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.reveal-spacer { height: 60vh; }

/* ===================== HOW IT WORKS (alternating) ========================= */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  margin-bottom: clamp(60px, 9vw, 120px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
.feature-copy h3 { margin-bottom: 18px; }
.feature-copy .lead { font-size: 1.1rem; }
.feature-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.feature-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-weight: 500; }
.feature-list li .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(24,201,100,0.16); color: var(--completion);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}
.feature-visual { display: flex; justify-content: center; }

/* Real device-framed screenshots in feature rows (transparent-corner PNGs) */
.shot { position: relative; display: flex; justify-content: center; width: 100%; }
.shot-glow {
  position: absolute; width: 72%; height: 60%; top: 12%; left: 14%;
  background: radial-gradient(circle, rgba(27,70,233,0.5), rgba(133,82,242,0.22) 45%, transparent 72%);
  filter: blur(48px); z-index: 0;
}
.shot img {
  position: relative; z-index: 1; width: min(300px, 80%);
  filter: drop-shadow(0 36px 66px rgba(0,0,0,0.7));
}

/* ===================== PHONE MOCKUP (CSS device) ========================== */
.device {
  position: relative;
  width: 290px;
  aspect-ratio: 290 / 600;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2a3142, #0c111c 60%);
  box-shadow: 0 40px 80px -28px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.device::before { /* notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 14px; background: #05080f; z-index: 4;
}
.device-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  background: radial-gradient(120% 80% at 50% 0%, #14203f 0%, #0a0f1a 60%);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  padding: 46px 16px 18px;
}
.device-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 30%, rgba(27,70,233,0.35), transparent 70%);
  pointer-events: none;
}

/* Mini in-app components used inside CSS phones */
.mini-topbar { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.06em; color: #fff; z-index: 2; }
.mini-flame { display: inline-flex; align-items: center; gap: 4px; background: rgba(250,140,51,0.16); color: var(--flame); padding: 4px 9px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 800; }
.mini-gem { width: 130px; margin: 18px auto 8px; filter: drop-shadow(0 14px 26px rgba(0,0,0,0.5)); z-index: 2; }
.mini-gem-name { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff; z-index: 2; }
.mini-gem-sub { text-align: center; color: var(--text-secondary); font-size: 0.72rem; margin-bottom: 14px; z-index: 2; }
.mini-pills { display: flex; gap: 7px; z-index: 2; }
.mini-pill { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--divider); border-radius: 12px; padding: 8px 6px; text-align: center; }
.mini-pill .mp-top { font-size: 0.56rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
.mini-pill .mp-val { font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; color: #fff; margin-top: 2px; }
.mini-pill.goal .mp-val { color: var(--completion); }
.mini-actions { display: flex; justify-content: space-between; margin-top: 14px; z-index: 2; }
.mini-action { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-secondary); font-size: 0.58rem; font-weight: 600; }
.mini-action .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--divider); display: grid; place-items: center; font-size: 1rem; }
.mini-bar-label { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--text-secondary); margin: 16px 0 6px; z-index: 2; }
.mini-bar { height: 8px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); overflow: hidden; z-index: 2; }
.mini-bar > i { display: block; height: 100%; width: 26%; background: var(--grad-progress); border-radius: inherit; }
.mini-panic { margin-top: 14px; background: linear-gradient(180deg,#ff2a3d,#c10012); color:#fff; text-align:center; font-family:var(--font-display); font-weight:800; font-size:0.82rem; padding:11px; border-radius:14px; z-index:2; box-shadow:0 8px 20px -6px rgba(225,0,21,0.6); }

/* Ace orb (recreated from the app's AceAvatar) */
.ace-orb {
  width: 150px; height: 150px; border-radius: 50%;
  margin: 6px auto 0;
  background:
    radial-gradient(40% 35% at 50% 22%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, #2EB8DB 0%, #1B46E9 55%, #1A8C52 100%);
  box-shadow: 0 0 60px -6px rgba(27,70,233,0.7), inset 0 -10px 20px rgba(0,0,0,0.25);
  position: relative;
}
.ace-orb::before, .ace-orb::after {
  content: ""; position: absolute; top: 46%; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
.ace-orb::before { left: 38%; }
.ace-orb::after { right: 38%; }

/* community / learn chips inside phones */
.mini-chip { border-radius: var(--r-pill); padding: 12px 18px; font-family: var(--font-display); font-weight: 800; color: #fff; text-align: center; box-shadow: 0 8px 18px -6px rgba(0,0,0,0.5); }
.mini-bubble { background: rgba(255,255,255,0.06); border: 1px solid var(--divider); border-radius: 16px; padding: 12px; margin-top: 10px; z-index: 2; }
.mini-bubble .mb-name { font-weight: 800; font-size: 0.78rem; color: #fff; }
.mini-bubble .mb-meta { font-size: 0.62rem; color: var(--text-tertiary); margin-bottom: 5px; }
.mini-bubble .mb-body { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.4; }

/* progress ring */
.ring-wrap { display: grid; place-items: center; margin: auto; position: relative; z-index: 2; }
.ring { width: 190px; height: 190px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 16; stroke-linecap: round; }
.ring .track { stroke: rgba(255,255,255,0.08); }
.ring .prog { stroke: url(#ringgrad); stroke-dasharray: 534; stroke-dashoffset: 150; }
.ring-center { position: absolute; text-align: center; }
.ring-center .rc-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; }
.ring-center .rc-lab { font-size: 0.64rem; letter-spacing: 0.1em; color: var(--text-secondary); text-transform: uppercase; }

/* ===================== GEMS / MILESTONES ================================= */
.gems-track-wrap { overflow: hidden; position: relative; padding-block: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gems-track { display: flex; gap: 20px; width: max-content; animation: gem-scroll 60s linear infinite; }
.gems-track-wrap:hover .gems-track { animation-play-state: paused; }
@keyframes gem-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gem-card {
  width: 210px; flex: none;
  background: linear-gradient(180deg, rgba(28,37,64,0.5), rgba(13,18,32,0.4));
  border: 1px solid var(--surface-stroke);
  border-radius: var(--r-lg);
  padding: 26px 20px 22px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s;
}
.gem-card:hover { transform: translateY(-6px); border-color: rgba(92,123,255,0.4); box-shadow: var(--glow-soft); }
.gem-card img { width: 124px; height: 150px; object-fit: contain; margin: 0 auto 14px; filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5)); }
.gem-card .gem-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #fff; }
.gem-card .gem-day { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }
.gem-card .gem-day b { color: var(--accent); }

/* ===================== REVIEWS =========================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { display: flex; flex-direction: column; gap: 18px; }
.review p { color: #e6ebf5; font-size: 1.02rem; line-height: 1.55; }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.review .stars b { color: var(--text-secondary); font-weight: 600; margin-left: 6px; font-size: 0.85rem; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review .who .name { font-weight: 700; color: #fff; }
.review .who .role { font-size: 0.82rem; color: var(--text-tertiary); }

/* ===================== BENEFITS ========================================== */
.benefits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(27,70,233,0.18), transparent 60%),
    linear-gradient(180deg, rgba(19,26,43,0.7), rgba(10,15,26,0.7));
  border: 1px solid var(--surface-stroke);
}
.benefits-list { display: flex; flex-direction: column; gap: 12px; }
.benefit {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--divider);
  font-weight: 600; font-size: 1.05rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.benefit:hover { transform: translateX(6px); background: rgba(255,255,255,0.06); border-color: rgba(92,123,255,0.35); }
.benefit .b-ic { font-size: 1.4rem; flex: none; }

/* ===================== COMMUNITY FORUM =================================== */
.forum-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.forum-posts { display: flex; flex-direction: column; gap: 16px; }
.forum-post { padding: 24px; }
.forum-post .fp-meta { font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 10px; }
.forum-post .fp-meta b { color: var(--primary-bright); font-weight: 700; }
.forum-post h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.forum-post p { color: var(--text-secondary); font-size: 0.97rem; }
.forum-stats { padding: 28px; position: sticky; top: 100px; }
.forum-stats h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 20px; }
.forum-stat { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.forum-stat:last-of-type { border-bottom: none; }
.forum-stat .fs-label { color: var(--text-secondary); }
.forum-stat .fs-val { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }

/* ===================== GUIDE CARDS ====================================== */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guide-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--surface-stroke);
  background: var(--surface);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.guide-card:hover { transform: translateY(-5px); border-color: rgba(92,123,255,0.4); box-shadow: var(--shadow-card); }
.guide-card .gc-img { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--grad-primary); }
.guide-card .gc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.guide-card:hover .gc-img img { transform: scale(1.05); }
.guide-card .gc-img .gc-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; }
.guide-card .gc-body { padding: 22px 24px 26px; }
.guide-card h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.guide-card p { color: var(--text-secondary); margin-top: 10px; font-size: 0.95rem; }
.guide-card .gc-read { margin-top: 16px; color: var(--primary-bright); font-weight: 700; font-size: 0.9rem; }

/* ===================== FAQ ============================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: #fff;
}
.faq-q .faq-ic { flex: none; width: 26px; height: 26px; position: relative; transition: transform 0.3s; }
.faq-q .faq-ic::before, .faq-q .faq-ic::after { content: ""; position: absolute; background: var(--primary-bright); border-radius: 2px; }
.faq-q .faq-ic::before { top: 12px; left: 3px; right: 3px; height: 2px; }
.faq-q .faq-ic::after { left: 12px; top: 3px; bottom: 3px; width: 2px; transition: opacity 0.3s; }
.faq-item.open .faq-ic::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 4px 24px; color: var(--text-secondary); line-height: 1.6; }

/* ===================== FINAL CTA ======================================== */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(48px, 8vw, 96px) 32px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(27,70,233,0.4), transparent 65%),
    linear-gradient(180deg, rgba(20,28,52,0.85), rgba(10,15,26,0.9));
  border: 1px solid rgba(92,123,255,0.25);
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { max-width: 560px; margin: 0 auto 32px; }
.cta-band .store-badges { justify-content: center; }
.cta-sign { margin-top: 22px; color: var(--text-tertiary); font-style: italic; }

/* ===================== FOOTER =========================================== */
.footer { border-top: 1px solid var(--divider); padding-block: 64px 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); max-width: 280px; margin-bottom: 20px; font-size: 0.95rem; }
.footer-col h5 { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; margin-bottom: 16px; color: #fff; }
.footer-col a { display: block; color: var(--text-secondary); padding: 6px 0; font-size: 0.92rem; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); color: var(--text-tertiary); font-size: 0.85rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--divider); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.footer-socials a:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.footer-socials img { width: 18px; height: 18px; border-radius: 4px; opacity: 0.85; }
.footer-disclaimer { margin-top: 22px; color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.6; max-width: 900px; }

/* ===================== REVEAL ON SCROLL (generic) ======================= */
.fx { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.fx.in { opacity: 1; transform: none; }
.fx-d1 { transition-delay: 0.08s; }
.fx-d2 { transition-delay: 0.16s; }
.fx-d3 { transition-delay: 0.24s; }

/* ===================== ARTICLE / GUIDE PAGES ============================ */
.article { max-width: var(--maxw-narrow); margin-inline: auto; }
.article-hero { padding-top: calc(var(--nav-h) + 40px); }
.article-kicker { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 18px; }
.article-meta { color: var(--text-tertiary); font-size: 0.9rem; margin-bottom: 12px; }
.article-banner { aspect-ratio: 16/7; border-radius: var(--r-lg); margin: 28px 0 40px; background: var(--grad-primary); overflow: hidden; border: 1px solid var(--surface-stroke); position: relative; }
.article-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,15,26,0.45)); pointer-events: none; }
.article-body { font-size: 1.1rem; line-height: 1.75; color: #dbe1ee; }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; color: #fff; }
.article-body h3 { font-size: 1.3rem; margin-top: 1.6em; color: #fff; }
.article-body p { color: #cfd6e4; }
.article-body strong { color: #fff; }
.article-body a { color: var(--primary-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body li { color: #cfd6e4; }
.article-body blockquote {
  border-left: 3px solid var(--primary); padding: 6px 0 6px 22px; margin-left: 0;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.4;
}
.article-body .callout {
  background: rgba(27,70,233,0.1); border: 1px solid rgba(92,123,255,0.3);
  border-radius: var(--r-md); padding: 20px 24px;
}
.article-body .callout strong { color: var(--primary-bright); }
.toc {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-md);
  padding: 22px 26px; margin: 32px 0;
}
.toc h4 { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 12px; }
.toc a { display: block; color: var(--text-secondary); padding: 5px 0; font-size: 0.96rem; }
.toc a:hover { color: var(--primary-bright); }

/* Simple page hero used by support / legal */
.page-hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 20px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { margin-top: 16px; }

/* Pills / chips reused */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 8px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,0.05); border: 1px solid var(--divider); font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }

/* ===================== RESPONSIVE ======================================= */
@media (max-width: 980px) {
  :root { --nav-h: 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-badges .store-badges, .hero .hero-trust { justify-content: center; }
  .hero-phone-wrap { margin-top: 30px; order: -1; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .feature-row.reverse .feature-visual { order: -1; }
  .feature-row.reverse .feature-copy { order: 2; }
  .feature-list { align-items: center; }
  .feature-list li { justify-content: flex-start; max-width: 360px; }
  .feature-tag, .feature-copy { display: block; }
  .benefits { grid-template-columns: 1fr; gap: 30px; }
  .forum-grid { grid-template-columns: 1fr; }
  .forum-stats { position: static; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,15,26,0.97); backdrop-filter: blur(18px);
    padding: 16px; gap: 4px; border-bottom: 1px solid var(--divider);
  }
  .nav.menu-open .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .reveal-stats { grid-template-columns: 1fr; gap: 8px; padding: 28px 20px; }
  .reveal-stats .stat { padding: 14px; border-bottom: 1px solid var(--divider); }
  .reveal-stats .stat:last-child { border-bottom: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 64px; }
  .store-badge { min-width: 0; flex: 1; }
}
@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
