/* ============================================
   ZEDD FUNDING — EMAIL COLLECTION
   Matching the dark fintech aesthetic from
   the original zeddfunded.com landing page
   ============================================ */

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

:root {
  /* Base dark */
  --bg:          #07070f;
  --bg-2:        #0a0a14;
  --bg-card:     #0d0d1c;
  --bg-card-2:   #111128;

  /* Brand Pink/Magenta — left side of logo Z */
  --pink-600:  #9333ea;
  --pink-500:  #a855f7;
  --pink-400:  #c026d3;
  --pink-300:  #e040fb;
  --pink-200:  #f0abfc;

  /* Brand Blue — right side of logo Z */
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --blue-400:  #60a5fa;
  --blue-300:  #93c5fd;

  /* Gradient — the core brand expression */
  --grad:        linear-gradient(135deg, #c026d3 0%, #a855f7 40%, #3b82f6 100%);
  --grad-glow:   linear-gradient(135deg, rgba(192,38,211,0.5) 0%, rgba(59,130,246,0.5) 100%);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted:     rgba(255,255,255,0.35);

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(168,85,247,0.45);

  /* Glow */
  --glow-main: rgba(168,85,247,0.3);
  --glow-blue: rgba(59,130,246,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- AMBIENT ORBS ---- */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(192,38,211,0.18) 0%, transparent 70%);
}
.orb-2 {
  width: 500px; height: 500px;
  top: 30%; right: -180px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
}
.orb-3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
}

/* ---- GRID OVERLAY ---- */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(7,7,15,0.92) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-mark-sm {
  width: 30px;
  height: 30px;
}

.logo-wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-wordmark span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 130px 28px 80px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- EYEBROW ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pink-200);
  width: fit-content;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 8px rgba(192,38,211,0.7);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ---- HEADLINE ---- */
.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

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

/* ---- SUB ---- */
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 400;
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 0;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 28px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- FORM ---- */
.form-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.capture-form {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.capture-form:focus-within {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.1), 0 0 0 3px rgba(59,130,246,0.06);
}

.field-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.field-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.email-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-primary);
  min-width: 0;
}

.email-field::placeholder {
  color: var(--text-muted);
}

/* ---- CTA BUTTON ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 24px rgba(192,38,211,0.35), 0 4px 24px rgba(59,130,246,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  letter-spacing: 0.01em;
}

.cta-btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 32px rgba(192,38,211,0.5), 0 6px 32px rgba(59,130,246,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(168,85,247,0.4);
}

.cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.cta-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}

.cta-btn-center {
  margin: 0 auto;
  padding: 14px 32px;
  font-size: 0.95rem;
  border-radius: 12px;
  width: fit-content;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.8rem;
  color: #f87171;
  min-height: 1.2em;
}

/* ---- SUCCESS STATE ---- */
.success-state {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: rgba(168,85,247,0.07);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 520px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s ease forwards;
}

.success-state.visible {
  display: flex;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-glow {
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,38,211,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.success-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(192,38,211,0.45), 0 0 24px rgba(59,130,246,0.25);
  flex-shrink: 0;
}

.success-check svg {
  width: 20px;
  height: 20px;
  color: white;
}

.success-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.success-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- HERO VISUAL — TRADING ILLUSTRATION ---- */
.hero-visual {
  flex-shrink: 0;
  width: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Soft glow behind the card */
.visual-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(192,38,211,0.15) 0%, rgba(59,130,246,0.1) 60%, transparent 100%);
  pointer-events: none;
  filter: blur(30px);
}

/* ---- MAIN CHART CARD ---- */
.chart-card {
  width: 100%;
  background: rgba(13,13,28,0.88);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 20px;
  padding: 18px 18px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
}

/* Card header */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pair-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.pair-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #34d399;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 4px;
  padding: 2px 6px;
  animation: blink 2s ease-in-out infinite;
}

.chart-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.chart-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.chart-change {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px;
}

.chart-change.positive {
  color: #34d399;
  background: rgba(52,211,153,0.1);
}

.chart-change.negative {
  color: #f87171;
  background: rgba(248,113,113,0.1);
}

/* Chart body */
.chart-body {
  position: relative;
  width: 100%;
  height: 140px;
  margin-bottom: 8px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Pulsing dot on live price */
.pulse-dot {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { r: 8; opacity: 0.2; }
  50%       { r: 12; opacity: 0.08; }
}

/* Price cursor line */
.price-cursor {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.cursor-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(192,38,211,0.6), rgba(59,130,246,0.3), transparent);
  margin-right: 4px;
}

.cursor-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pink-200);
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* Volume bars */
.volume-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  padding: 0 2px;
}

.vol-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

/* ---- FLOATING PILLS ---- */
.float-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,10,20,0.92);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: 3;
  animation: floatPill 4s ease-in-out infinite;
}

.pill-tl {
  top: 0;
  left: -10px;
  animation-delay: 0s;
}

.pill-br {
  bottom: 20px;
  right: -10px;
  animation-delay: 1.3s;
}

.pill-bl {
  bottom: -10px;
  left: 10px;
  animation-delay: 2.6s;
}

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

.pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-icon svg {
  width: 15px;
  height: 15px;
}

.pill-green {
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.25);
  color: #34d399;
}

.pill-purple {
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--pink-200);
}

.pill-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pill-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill-value {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.pill-value.green  { color: #34d399; }
.pill-value.purple {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- WHY SECTION ---- */
.why-section {
  position: relative;
  z-index: 1;
  padding: 100px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(13,13,26,0.8) 50%, transparent 100%);
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-200);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.22);
  border-radius: 100px;
  padding: 5px 14px;
  width: fit-content;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
  cursor: default;
}

.why-card:hover {
  background: var(--bg-card-2);
  border-color: rgba(168,85,247,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(192,38,211,0.12), 0 16px 48px rgba(59,130,246,0.08);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(192,38,211,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(168,85,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg {
  width: 20px;
  height: 20px;
  color: var(--pink-200);
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- BOTTOM CTA ---- */
.bottom-cta {
  position: relative;
  z-index: 1;
  padding: 100px 28px;
  overflow: hidden;
}

.bottom-cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(192,38,211,0.12) 0%, rgba(59,130,246,0.08) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.bottom-cta-inner {
  gap: 24px;
}

/* ---- FOOTER ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-risk {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 320px;
  text-align: right;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE — COMPLETE
   375px / 480px / 600px / 768px / 1000px
   ============================================ */

/* ---- TABLET & SMALL DESKTOP (≤1000px) ---- */
@media (max-width: 1000px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 110px 28px 60px;
    gap: 40px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    gap: 24px;
  }

  .hero-visual {
    width: 100%;
    max-width: 460px;
    align-self: center;
    padding: 36px 16px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-section {
    padding: 80px 28px;
  }

  .bottom-cta {
    padding: 80px 28px;
  }
}

/* ---- LARGE PHONE / SMALL TABLET (≤768px) ---- */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 48px;
    gap: 36px;
  }

  .hero-content { gap: 20px; }

  .stats-bar {
    width: 100%;
    border-radius: 12px;
    padding: 14px 0;
  }

  .stat-item { padding: 0 16px; }
  .stat-num  { font-size: 1.3rem; }
  .stat-lbl  { font-size: 0.65rem; }

  .hero-visual {
    max-width: 380px;
    padding: 28px 12px;
  }

  .pill-tl { left: -6px; top: 2px; }
  .pill-br { right: -6px; bottom: 18px; }
  .pill-bl { left: 6px;  bottom: -6px; }

  .why-section { padding: 64px 20px; }
  .bottom-cta  { padding: 64px 20px; }

  .section-sub { font-size: 0.9rem; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-risk {
    text-align: center;
    max-width: 100%;
  }
}

/* ---- PHONE (≤600px) ---- */
@media (max-width: 600px) {
  /* Shrink orbs so they don't cause overflow */
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 260px; height: 260px; }
  .orb-3 { width: 200px; height: 200px; }

  .navbar { padding: 14px 0; }
  .nav-inner { padding: 0 16px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-wordmark { font-size: 1.05rem; }

  .hero {
    padding: 90px 16px 40px;
    gap: 28px;
  }

  .hero-content { gap: 18px; }

  .eyebrow {
    font-size: 0.68rem;
    padding: 5px 12px;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .stat-item {
    padding: 14px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+4) { border-bottom: none; }

  /* Hide separators — grid handles layout */
  .stat-sep { display: none; }

  .stat-num { font-size: 1.2rem; }
  .stat-lbl { font-size: 0.62rem; }

  .form-block { max-width: 100%; }

  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 0.875rem;
  }

  .success-state {
    padding: 20px;
    max-width: 100%;
  }

  /* Hero visual — hide floating pills on very small screens */
  .hero-visual {
    max-width: 100%;
    padding: 20px 0 40px;
  }

  .float-pill {
    padding: 8px 10px;
    gap: 7px;
    border-radius: 10px;
  }

  .pill-icon { width: 26px; height: 26px; border-radius: 6px; }
  .pill-icon svg { width: 12px; height: 12px; }
  .pill-value { font-size: 0.78rem; }
  .pill-label { font-size: 0.58rem; }

  .pill-tl { left: 0;  top: 8px; }
  .pill-br { right: 0; bottom: 28px; }
  .pill-bl { left: 4px; bottom: 0; }

  .why-section { padding: 52px 16px; }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-card {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .bottom-cta { padding: 52px 16px; }

  .cta-btn-center {
    width: auto;
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .footer { padding: 24px 16px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-risk { text-align: center; max-width: 100%; }
  .footer-copy { font-size: 0.72rem; }
}

/* ---- SMALL PHONE (≤400px) ---- */
@media (max-width: 400px) {
  .hero { padding: 84px 14px 36px; }

  .hero-headline { letter-spacing: -0.025em; }

  .stats-bar { border-radius: 10px; }
  .stat-num  { font-size: 1.05rem; }

  .chart-price { font-size: 0.95rem; }
  .pair-name   { font-size: 0.8rem; }

  .float-pill { display: none; } /* too cramped at 375px */

  .hero-visual { padding: 16px 0 16px; }

  .why-card { padding: 16px 14px; }

  .modal {
    padding: 24px 16px 20px;
    border-radius: 18px;
    margin: 0 4px;
  }

  .modal-title { font-size: 1.1rem; }
  .modal-sub   { font-size: 0.8rem; }
  .modal-input-wrap input { font-size: 0.85rem; padding: 11px 0; }
  .modal-submit { padding: 12px; font-size: 0.875rem; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   WAITLIST MODAL
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #0d0d1c;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 36px 32px 32px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* Modal header */
.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(192, 38, 211, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 24px rgba(192, 38, 211, 0.2);
}

.modal-icon svg {
  width: 24px;
  height: 24px;
  color: var(--pink-200);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Form fields */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-input-wrap:focus-within {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.modal-input-wrap.error {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}

.modal-input-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.modal-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 13px 0;
  min-width: 0;
}

.modal-input-wrap input::placeholder {
  color: var(--text-muted);
}

.field-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1em;
  padding-left: 2px;
}

.global-error {
  font-size: 0.8rem;
  color: #f87171;
  text-align: center;
  min-height: 1em;
}

/* ---- PHONE FIELD — CUSTOM COUNTRY CODE PICKER ---- */
.phone-wrap {
  padding: 0;
  gap: 0;
  position: relative;
  overflow: visible !important; /* allow dropdown to overflow */
}

.cc-picker {
  position: relative;
  flex-shrink: 0;
}

.cc-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 13px 10px 13px 14px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 10px 0 0 10px;
  transition: background 0.15s;
}

.cc-trigger:hover {
  background: rgba(255,255,255,0.05);
}

.cc-flag {
  font-size: 1rem;
  line-height: 1;
}

.cc-code {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 32px;
}

.cc-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cc-trigger[aria-expanded="true"] .cc-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.cc-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 260px;
  background: #111128;
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 2000;
  overflow: hidden;
  animation: fadeUp 0.18s ease;
}

.cc-dropdown.open {
  display: block;
}

/* Search inside dropdown */
.cc-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cc-search-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cc-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.cc-search::placeholder {
  color: var(--text-muted);
}

/* Country list */
.cc-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.3) transparent;
}

.cc-list::-webkit-scrollbar { width: 4px; }
.cc-list::-webkit-scrollbar-track { background: transparent; }
.cc-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 4px; }

.cc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cc-option:hover,
.cc-option.active {
  background: rgba(168,85,247,0.12);
  color: var(--text-primary);
}

.cc-option .opt-flag { font-size: 1rem; flex-shrink: 0; }
.cc-option .opt-name { flex: 1; font-size: 0.82rem; }
.cc-option .opt-code { font-size: 0.8rem; font-weight: 600; color: var(--pink-200); }

.phone-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.phone-wrap input[type="tel"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 13px 14px 13px 10px;
  min-width: 0;
}

.phone-wrap input[type="tel"]::placeholder {
  color: var(--text-muted);
}
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
  border-radius: 11px;
  margin-top: 4px;
}

.modal-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* Modal success state */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 0 4px;
  animation: fadeUp 0.35s ease forwards;
}

.modal-success.visible {
  display: flex;
}

.modal-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(192, 38, 211, 0.4), 0 0 32px rgba(59, 130, 246, 0.2);
  margin-bottom: 4px;
}

.modal-success-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.modal-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-success p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.6;
}

.modal-done-btn {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 10px;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 600px) {
  .modal {
    padding: 28px 20px 24px;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-title { font-size: 1.2rem; }
  .modal-sub   { font-size: 0.82rem; }

  .modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .modal-header { margin-bottom: 20px; gap: 6px; }

  .modal-form { gap: 12px; }

  .modal-input-wrap input {
    padding: 12px 0;
    font-size: 0.875rem;
  }

  .modal-submit {
    padding: 13px;
    font-size: 0.9rem;
  }
}
