/* ==========================================================================
   PubVance — Design System
   Premium dark SaaS/fintech visual language: deep navy/black base,
   violet → cyan gradient accents, glassmorphism, subtle glow, restrained motion.
   ========================================================================== */

:root {
  /* --- Core palette --- */
  --bg-void:      #05060a;
  --bg-base:      #07080f;
  --bg-raised:    #0d0f1a;
  --bg-card:      #10121f;
  --border-soft:  rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.14);

  --text-primary:   #f5f6fb;
  --text-secondary: #a6acc4;
  --text-muted:     #6b7190;

  --accent-violet: #7c5cff;
  --accent-blue:   #3b82f6;
  --accent-cyan:   #22d3ee;
  --accent-pink:   #e879f9;
  --accent-green:  #34d399;
  --accent-amber:  #fbbf24;
  --accent-red:    #fb7185;

  --grad-primary: linear-gradient(120deg, var(--accent-violet) 0%, var(--accent-blue) 55%, var(--accent-cyan) 100%);
  --grad-primary-hover: linear-gradient(120deg, #8b6bff 0%, #4c8dff 55%, #35dfff 100%);
  --grad-text: linear-gradient(120deg, #c9b8ff 0%, #9db8ff 45%, #7fe6ff 100%);
  --grad-border: linear-gradient(135deg, rgba(124,92,255,0.6), rgba(34,211,238,0.15) 60%, rgba(124,92,255,0.05));

  --glow-violet: 0 0 120px rgba(124, 92, 255, 0.28);
  --glow-cyan:   0 0 120px rgba(34, 211, 238, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.6);
  --shadow-card-hover: 0 30px 80px -20px rgba(76, 60, 200, 0.35);

  --ease-out: cubic-bezier(.16,1,.3,1);
  --nav-h: 76px;

  --container: 1240px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
}

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

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--accent-violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

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

/* --- Background texture (grid + glow), applied once at top of <body> --- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 8%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(50% 40% at 85% 15%, rgba(34,211,238,0.12), transparent 60%),
    radial-gradient(45% 35% at 50% 95%, rgba(124,92,255,0.10), transparent 60%),
    var(--bg-void);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 85%);
}

/* --- Section rhythm --- */
.section { position: relative; padding: 112px 0; }
.section--tight { padding: 72px 0; }
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); font-size: 17px; }

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

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-primary);
  color: #05060a;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.55);
}
.btn-primary:hover { background: var(--grad-primary-hover); box-shadow: 0 14px 40px -8px rgba(124, 92, 255, 0.7); transform: translateY(-2px); }

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Glass card / gradient border utility --- */
.glass {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(124,92,255,0.35);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(5, 6, 10, 0.82);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent-cyan); text-transform: uppercase; margin-top: -2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a {
  font-size: 13.8px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text-primary); }

.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
}
.nav-toggle span { position: relative; width: 18px; height: 2px; background: var(--text-primary); display: block; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text-primary); transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(6, 7, 13, 0.98);
  backdrop-filter: blur(20px);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-menu .container { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a.nav-link { font-size: 20px; font-weight: 600; padding: 14px 6px; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .mobile-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 64px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
}

.hero-copy h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  margin-bottom: 22px;
}
.hero-copy p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.trust-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.trust-line svg { width: 16px; height: 16px; color: var(--accent-cyan); }

/* Hero visual composition */
.hero-visual {
  position: relative;
  min-height: 460px;
}
.hero-visual .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
}
.hero-visual .glow--a { width: 340px; height: 340px; background: rgba(124,92,255,0.35); top: -40px; right: 10%; }
.hero-visual .glow--b { width: 280px; height: 280px; background: rgba(34,211,238,0.25); bottom: -20px; left: 0; }

.device-frame {
  position: relative;
  z-index: 2;
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 40px;
  padding: 14px;
  background: linear-gradient(160deg, #14162a, #0a0b14);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), var(--glow-violet);
}
.device-screen {
  border-radius: 28px;
  background: linear-gradient(185deg, #12142280, #05060a);
  padding: 20px 16px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.device-notch { width: 90px; height: 18px; background: #05060a; border-radius: 0 0 14px 14px; margin: 0 auto 14px; }

.mock-app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-app-title { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-primary); }

.mock-balance-card {
  border-radius: 18px;
  padding: 18px;
  background: var(--grad-primary);
  color: #0a0a12;
  margin-bottom: 16px;
}
.mock-balance-card .label { font-size: 11px; font-weight: 600; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }
.mock-balance-card .value { font-size: 26px; font-weight: 700; margin-top: 4px; font-family: "Space Grotesk", sans-serif; }
.mock-balance-card .sub { font-size: 12px; margin-top: 6px; opacity: 0.8; }

.mock-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mock-stat {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border-soft);
}
.mock-stat .label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mock-stat .value { font-size: 17px; font-weight: 700; margin-top: 2px; font-family: "Space Grotesk", sans-serif; }
.mock-stat .delta { font-size: 11px; color: var(--accent-green); margin-top: 2px; }

.mock-chart {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
}
.mock-chart svg { width: 100%; height: 70px; }

/* Floating stat chips over hero visual */
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(13, 15, 26, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7);
  animation: float 6s ease-in-out infinite;
}
.float-chip .ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-chip .ico svg { width: 18px; height: 18px; }
.float-chip .fc-label { font-size: 11px; color: var(--text-muted); }
.float-chip .fc-value { font-size: 16px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }

.chip-clicks { top: 6%; left: -6%; animation-delay: 0s; }
.chip-earnings { top: 40%; right: -10%; animation-delay: 1.2s; }
.chip-links { bottom: 10%; left: -10%; animation-delay: 2.1s; }
.chip-growth { bottom: -4%; right: 6%; animation-delay: 0.6s; }

@media (max-width: 640px) {
  .float-chip { padding: 8px 11px; }
  .float-chip .fc-value { font-size: 14px; }
  /* On narrow screens, percentage offsets no longer clear the device card,
     so chips are pinned to peek just outside the four corners instead. */
  .chip-clicks { top: -16px; left: -6px; bottom: auto; right: auto; }
  .chip-earnings { top: -16px; right: -6px; left: auto; bottom: auto; }
  .chip-links { bottom: -16px; left: -6px; top: auto; right: auto; }
  .chip-growth { bottom: -16px; right: -6px; top: auto; left: auto; }
  .hero-visual { padding: 24px 0 20px; }
}

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

.demo-tag {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Trust strip --- */
.trust-strip { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); }
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border-soft);
}
.trust-item {
  background: var(--bg-void);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.trust-item .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(124,92,255,0.12); color: var(--accent-cyan); }
.trust-item .ico svg { width: 20px; height: 20px; }
.trust-item span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

@media (max-width: 980px) { .trust-strip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .trust-strip-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- How it works --- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step-card { position: relative; padding: 30px 26px; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #05060a;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 18px; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 14.5px; }
.step-connector {
  display: none;
}
@media (min-width: 981px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,92,255,0.5), rgba(34,211,238,0.5), transparent);
    z-index: 0;
  }
}

/* --- Two apps / ecosystem --- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
}
@media (max-width: 900px) { .ecosystem-grid { grid-template-columns: 1fr; } }

.eco-link {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: var(--glow-violet);
}
@media (min-width: 901px) { .eco-link { display: flex; } }
.eco-link svg { width: 26px; height: 26px; color: var(--accent-cyan); }

.app-card { padding: 40px 32px; display: flex; flex-direction: column; }
.app-card .app-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; width: fit-content;
}
.app-card.app-user .app-badge { background: rgba(34,211,238,0.12); color: var(--accent-cyan); border: 1px solid rgba(34,211,238,0.3); }
.app-card.app-pro .app-badge { background: rgba(124,92,255,0.14); color: #b6a4ff; border: 1px solid rgba(124,92,255,0.35); }
.app-card h3 { font-size: 26px; margin-bottom: 8px; }
.app-card .app-sub { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; }
.app-feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.app-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.app-feature-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent-green); }
.app-card .app-mock { margin: 8px 0 28px; border-radius: 18px; overflow: hidden; }

/* --- Provider audience grid --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card { padding: 26px; display: flex; align-items: center; gap: 16px; }
.audience-card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,92,255,0.12); color: var(--accent-violet); flex-shrink: 0;
}
.audience-card .ico svg { width: 22px; height: 22px; }
.audience-card h3 { font-size: 15.5px; margin-bottom: 3px; }
.audience-card p { font-size: 13px; color: var(--text-muted); }

/* --- Analytics dashboard section --- */
.analytics-panel { padding: 28px; }
.analytics-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.analytics-top h3 { font-size: 18px; }
.demo-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-amber); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3);
  padding: 4px 10px; border-radius: 999px;
}
.analytics-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 900px) { .analytics-stats { grid-template-columns: repeat(2, 1fr); } }
.a-stat { padding: 18px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft); }
.a-stat .label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.a-stat .value { font-size: 24px; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.a-stat .value[data-count] { }
.a-stat .delta { font-size: 12px; margin-top: 6px; color: var(--accent-green); }

.analytics-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 780px) { .analytics-charts { grid-template-columns: 1fr; } }
.chart-box { padding: 20px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft); }
.chart-box h4 { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; font-weight: 600; }
.chart-box svg { width: 100%; height: 160px; }

.link-rows { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 13px; }
.link-row .name { color: var(--text-secondary); }
.link-row .clicks { font-weight: 700; color: var(--text-primary); }

/* --- Earnings flow --- */
.flow-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.flow-step {
  flex: 1 1 160px;
  padding: 22px 18px;
  text-align: center;
  border-radius: var(--radius-md);
}
.flow-step .ico { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 10px; background: rgba(124,92,255,0.14); display: flex; align-items: center; justify-content: center; color: var(--accent-cyan); }
.flow-step .ico svg { width: 20px; height: 20px; }
.flow-step h4 { font-size: 14.5px; }
.flow-arrow { display: flex; align-items: center; color: var(--text-muted); }
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 780px) {
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
}

.earnings-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .earnings-details { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .earnings-details { grid-template-columns: 1fr; } }
.ed-card { padding: 22px; }
.ed-card .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(34,211,238,0.12); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ed-card .ico svg { width: 18px; height: 18px; }
.ed-card h4 { font-size: 15px; margin-bottom: 6px; }
.ed-card p { font-size: 13px; color: var(--text-muted); }

.disclaimer-note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(251, 113, 133, 0.06);
  border: 1px solid rgba(251, 113, 133, 0.2);
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.disclaimer-note svg { width: 18px; height: 18px; color: var(--accent-red); flex-shrink: 0; margin-top: 2px; }

/* --- Feature grid (why choose) --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 28px; }
.feature-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #05060a; margin-bottom: 18px;
}
.feature-card .ico svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.8px; color: var(--text-secondary); }

/* --- Security section --- */
.security-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; } }
.security-visual { display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.security-visual .shield-glow { position: absolute; width: 260px; height: 260px; background: rgba(124,92,255,0.28); filter: blur(80px); border-radius: 50%; }
.security-visual svg { width: 180px; height: 180px; position: relative; z-index: 1; }
.security-list { display: flex; flex-direction: column; gap: 18px; }
.security-list .item { display: flex; gap: 16px; padding: 18px; border-radius: 14px; }
.security-list .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(34,211,238,0.12); color: var(--accent-cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.security-list .ico svg { width: 19px; height: 19px; }
.security-list h4 { font-size: 15px; margin-bottom: 4px; }
.security-list p { font-size: 13.5px; color: var(--text-muted); }

/* --- Payout section --- */
.payout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .payout-grid { grid-template-columns: 1fr; } }
.payout-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.payout-method { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.payout-method .ico { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.payout-method .ico svg { width: 22px; height: 22px; color: var(--accent-cyan); }
.payout-method h4 { font-size: 15px; }
.payout-method p { font-size: 12.5px; color: var(--text-muted); }

.wallet-card { padding: 30px; }
.wallet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.wallet-top span { font-size: 13px; color: var(--text-muted); }
.wallet-balance { font-size: 40px; font-weight: 700; font-family: "Space Grotesk", sans-serif; margin-bottom: 6px; }
.wallet-sub { font-size: 13px; color: var(--accent-green); margin-bottom: 26px; }
.wallet-actions { display: flex; gap: 12px; }

/* --- Download section --- */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }
.download-card { padding: 40px 32px; text-align: center; }
.download-card .app-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
}
.download-card .app-icon svg { width: 34px; height: 34px; }
.download-card h3 { font-size: 22px; margin-bottom: 6px; }
.download-card p.tag { color: var(--text-secondary); font-size: 14px; margin-bottom: 26px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  background: #000; border: 1px solid var(--border-strong);
  transition: transform .2s var(--ease-out), border-color .2s ease;
}
.store-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.35); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn .store-text { text-align: left; line-height: 1.2; }
.store-btn .store-text small { display: block; font-size: 10px; color: var(--text-muted); }
.store-btn .store-text strong { font-size: 15px; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-size: 15.5px; font-weight: 600;
}
.faq-q .plus { width: 22px; height: 22px; border-radius: 50%; background: rgba(124,92,255,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s var(--ease-out); }
.faq-q .plus svg { width: 12px; height: 12px; color: var(--accent-cyan); }
.faq-item[data-open="true"] .faq-q .plus { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out), padding .4s var(--ease-out); padding: 0 24px; }
.faq-item[data-open="true"] .faq-a { max-height: 320px; padding: 0 24px 22px; }
.faq-a p { color: var(--text-secondary); font-size: 14.5px; }

/* --- Final CTA --- */
.final-cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(124,92,255,0.25), transparent 60%), var(--bg-raised);
  border: 1px solid var(--border-soft);
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 100%, rgba(34,211,238,0.18), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 14px; position: relative; }
.final-cta p { color: var(--text-secondary); font-size: 17px; margin-bottom: 34px; position: relative; }
.final-cta .hero-actions { justify-content: center; position: relative; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border-soft); padding: 64px 0 32px; background: var(--bg-void); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 13.5px; margin: 14px 0 18px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; color: var(--text-secondary); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: color .2s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-muted); }
.footer-tagline { font-size: 13px; color: var(--text-muted); }

/* --- Reveal-on-scroll animation --- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* --- Simple page hero (legal / about / delete-account) --- */
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); max-width: 600px; margin-inline: auto; }
.legal-content { max-width: 780px; margin-inline: auto; padding-bottom: 100px; }
.legal-content h2 { font-size: 20px; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-secondary); font-size: 15px; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }
.legal-callout {
  padding: 18px 22px; border-radius: 14px; margin-bottom: 36px;
  background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.25);
  font-size: 13.5px; color: var(--text-secondary);
}

/* --- Delete account form --- */
.delete-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.delete-tab { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border-soft); font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.delete-tab[aria-selected="true"] { background: var(--grad-primary); color: #05060a; border-color: transparent; }
.delete-panel { display: none; max-width: 560px; margin-inline: auto; padding: 36px; }
.delete-panel.is-active { display: block; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft); color: var(--text-primary);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent-violet); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
