/* ==========================================================================
   BRAIN ROT METER — style.css
   Modern Obsidian Dark Design System · Pure Hugeicons · World-Class UI/UX
   ========================================================================== */

/* ── Design Tokens ── */
:root {
  --bg:              #060608;
  --bg-elevated:     #0c0c10;
  --card-bg:         rgba(18, 18, 24, 0.75);
  --card-hover:      rgba(26, 26, 35, 0.85);
  --border:          rgba(255, 255, 255, 0.08);
  --border-hover:    rgba(245, 158, 11, 0.4);
  --border-glow:     rgba(245, 158, 11, 0.25);
  
  --primary:         #F59E0B;
  --primary-glow:    rgba(245, 158, 11, 0.35);
  --accent:          #FBBF24;
  --accent-light:    #FDE68A;
  --danger:          #EF4444;
  --success:         #22C55E;
  
  --text-primary:    #FFFFFF;
  --text-secondary:  #D4D4D8;
  --text-muted:      #8E8E99;
  --text-dim:        #52525B;
  
  --font-display:    'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       'Space Mono', monospace;
  
  --radius-xl:       28px;
  --radius-lg:       20px;
  --radius-md:       14px;
  --radius-sm:       8px;
  
  --transition:      0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Hugeicons Standard Vector System ── */
.hgi {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  overflow: visible;
}

.hgi-sm { width: 16px; height: 16px; }
.hgi-md { width: 22px; height: 22px; }
.hgi-lg { width: 26px; height: 26px; }
.hgi-xl { width: 34px; height: 34px; }

/* ── Ambient Background Glows ── */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.orb-1 {
  top: -150px;
  right: 10%;
  width: 650px;
  height: 650px;
  background: #f59e0b;
  animation: float-orb 18s ease-in-out infinite alternate;
}

.orb-2 {
  top: 40%;
  left: -100px;
  width: 500px;
  height: 500px;
  background: #ea580c;
  opacity: 0.1;
  animation: float-orb 22s ease-in-out infinite alternate-reverse;
}

@keyframes float-orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── Shared Typography & Section Layout ── */
section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 2rem;
  max-width: 1240px;
  margin: auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.accent {
  background: linear-gradient(135deg, #FFE082 0%, #FFB300 50%, #FF8F00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons & Interactive Elements ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
  filter: brightness(1.05);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary:active { transform: scale(0.98); }

.btn-large {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 2rem;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
}

.nav-inner {
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.nav-logo-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-connect {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--accent) !important;
}

.nav-link-connect:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--primary) !important;
  color: #000 !important;
  font-weight: 700 !important;
  margin-left: 0.4rem;
  padding: 0.45rem 1.1rem !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--primary-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO SECTION ── */
.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  padding: 8.5rem 2rem 5rem;
  max-width: 1240px;
  margin: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #E4E4E7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.pulse-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

.pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #22C55E;
  animation: pulse-ring-anim 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes pulse-ring-anim {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.25rem;
}

.hero-tags {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hero-tag-item .hgi {
  color: var(--primary);
}

/* ── Hero Interactive Mascot & Simulator ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.simulator-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 50px rgba(245, 158, 11, 0.08);
  backdrop-filter: blur(20px);
  position: relative;
  text-align: center;
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sim-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.mascot-stage {
  position: relative;
  width: 220px;
  height: 180px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  transition: background 0.5s ease;
  pointer-events: none;
}

.hero-brain-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
  animation: mascot-float 3.5s ease-in-out infinite;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sim-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.sim-count-wrap {
  text-align: left;
}

.sim-counter-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.sim-counter-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.sim-stage-info {
  text-align: right;
}

.sim-stage-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #22c55e;
  transition: color 0.3s;
}

.sim-stage-range {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Scrub bar */
.sim-scrubber {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
}

.scrub-pip {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.scrub-pip:hover {
  transform: scaleY(1.6);
  background: rgba(255, 255, 255, 0.4);
}

.scrub-pip.active {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ── BENTO FEATURES GRID ── */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 35px rgba(245, 158, 11, 0.08);
}

.bento-card-large {
  grid-column: span 2;
}

.bento-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform 0.2s, background 0.2s;
}

.bento-card:hover .bento-icon-wrap {
  transform: scale(1.05);
  background: rgba(245, 158, 11, 0.16);
  color: #fff;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ── 10 BRAIN STAGES INTERACTIVE VIEWER ── */
.stages-section {
  padding: 6.5rem 2rem;
  max-width: 1240px;
  margin: auto;
}

.stages-spotlight {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.spotlight-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.spotlight-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  transition: background 0.4s ease;
}

.spotlight-img {
  max-width: 240px;
  max-height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.spotlight-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.spotlight-tier {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

.spotlight-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.spotlight-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spotlight-meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.spotlight-meter-fill {
  height: 100%;
  background: #22C55E;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* Horizontal stages navigation rail */
.stages-rail {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.75rem;
}

.stage-pip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.stage-pip-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.stage-pip-card.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.stage-pip-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.stage-pip-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.stage-pip-card.active .stage-pip-num {
  color: var(--primary);
  font-weight: 700;
}

.stage-pip-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}

/* ── FRIENDS & LEADERBOARDS ── */
.friends-section {
  padding: 6.5rem 2rem;
  max-width: 1240px;
  margin: auto;
}

.friends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.friends-perks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.perk-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.perk-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.perk-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Mock leaderboard card */
.leaderboard-mock {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: 0 25px 70px rgba(0,0,0,0.7), 0 0 50px rgba(245, 158, 11, 0.06);
  backdrop-filter: blur(20px);
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.leader-row.highlight {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.leader-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leader-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  width: 22px;
}

.leader-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-danger  { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #EF4444; }
.avatar-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #F59E0B; }
.avatar-calm    { background: rgba(34, 197, 94, 0.15);  border: 1px solid rgba(34, 197, 94, 0.35);  color: #22C55E; }

.leader-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.rival-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-left: 6px;
  font-weight: 400;
}

.leader-stage {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.leader-count {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  line-height: 1.1;
}

.leader-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.leaderboard-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── STEPS PIPELINE ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding: 0.2rem 0.6rem;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 6px;
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── STATS SECTION ── */
.stats-section {
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: 1060px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── APP INTERFACE CAROUSEL ── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: auto;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.phone-shell {
  width: 240px;
  height: 480px;
  background: #09090c;
  border-radius: 38px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.phone-shell:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.screen-home { background: linear-gradient(170deg, #13121a 0%, #07060a 100%); }
.screen-overlay { background: linear-gradient(170deg, #1c1510 0%, #060504 100%); justify-content: center; }
.screen-stats { background: linear-gradient(170deg, #0f141c 0%, #06080c 100%); }
.screen-stages { background: linear-gradient(170deg, #170f1a 0%, #080509 100%); }

.mock-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mock-app-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.mock-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.mock-mascot-box {
  width: 110px;
  height: 95px;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-mascot-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}

.mock-reels-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mock-reels-count strong { color: var(--accent); }

.mock-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 0.4rem;
}

.mock-mini-bar {
  width: 85%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.mock-mini-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

/* Floating overlay screen */
.mock-insta-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.mock-float-pill {
  position: absolute;
  top: 3.5rem;
  right: 1rem;
  background: rgba(12, 10, 8, 0.95);
  border: 1px solid var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  box-shadow: 0 0 20px var(--primary-glow);
  animation: mascot-float 3s ease-in-out infinite;
}

/* Stats screen */
.mock-barchart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 90%;
  height: 110px;
  padding: 0 6px;
  margin: 0.75rem 0;
}

.mock-col {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--accent));
  border-radius: 4px 4px 0 0;
}

.mock-platforms {
  display: flex;
  gap: 8px;
  margin-top: 0.6rem;
}

.plat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #fff;
}

/* Stages list screen */
.mock-stage-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.mock-st-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mock-st-row.active {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fff;
}

.dot-s {
  width: 6px; height: 6px; border-radius: 50%;
}

.phone-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--accent);
}

.carousel-dots { display: flex; gap: 8px; }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* ── FAQ ACCORDION ── */
.faq-container {
  max-width: 820px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.faq-item.open {
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--card-hover);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.3rem 1.6rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item.open .faq-question { color: var(--accent); }

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 1.6rem 1.3rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── DOWNLOAD CTA ── */
.download-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.download-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.download-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 25px rgba(245, 158, 11, 0.25);
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.download-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.download-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.feat-pill .hgi { color: #22c55e; }

/* ── LEGAL SECTIONS ── */
.legal-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  margin-top: 2rem;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.legal-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.75rem 0 0.5rem;
}

.legal-box h3:first-of-type { margin-top: 0; }

.legal-box p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-box ul {
  padding-left: 1.4rem;
  list-style: disc;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-box a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Creator / About Section ── */
.creator-section {
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.creator-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.creator-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.creator-avatar {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

.creator-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.creator-bio {
  flex: 1;
}

.creator-bio h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.creator-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.creator-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.creator-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.creator-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s;
}

.creator-link:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .creator-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .creator-links {
    justify-content: center;
  }
}

/* ── FOOTER ── */
.site-footer {
  padding: 4rem 2rem 3rem;
  border-top: 1px solid var(--border);
  background: #040405;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.footer-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text-primary); }

.footer-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ── Scroll Reveal System ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ADAPTATIONS ── */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 7.5rem 1.5rem 4rem;
  }
  
  .hero-headline { font-size: clamp(2.5rem, 6vw, 3.8rem); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-tags { justify-content: center; }
  .hero-visual { order: -1; }
  
  .features-bento { grid-template-columns: 1fr; }
  .bento-card-large { grid-column: span 1; }
  
  .stages-spotlight {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .spotlight-info { align-items: center; }
  
  .stages-rail {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .friends-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.25rem; }
  
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
    z-index: 999;
  }
  
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.15rem; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  
  .stages-rail { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  .legal-box { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons a { width: 100%; }
  .download-btns { flex-direction: column; width: 100%; }
  .download-btns a { width: 100%; }
}
