/* ===================================================
   QUOTEX REFERRAL LANDING PAGE — style.css
   Dark theme | Blue+Green gradients | Glassmorphism
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-base:       #050b18;
  --bg-surface:    #0c1528;
  --bg-elevated:   #111d36;
  --border:        rgba(255,255,255,0.08);
  --border-glow:   rgba(37,99,235,0.35);

  --blue-500:      #2563eb;
  --blue-600:      #1d4ed8;
  --blue-400:      #3b82f6;
  --green-500:     #10b981;
  --green-400:     #34d399;
  --amber-500:     #f59e0b;

  --grad-primary:  linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  --grad-glow:     linear-gradient(135deg, #1d4ed8 0%, #059669 100%);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-glow:   0 0 30px rgba(37,99,235,0.35), 0 0 60px rgba(16,185,129,0.15);

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* Light mode override */
body.light-mode {
  --bg-base:       #f1f5f9;
  --bg-surface:    #ffffff;
  --bg-elevated:   #e8f0fe;
  --border:        rgba(0,0,0,0.08);
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.06);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
blockquote { margin: 0; }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 8px 32px rgba(37,99,235,0.15);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37,99,235,0.5), 0 4px 16px rgba(16,185,129,0.3);
}

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

.btn-glow {
  box-shadow: 0 4px 20px rgba(37,99,235,0.4), 0 2px 8px rgba(16,185,129,0.2);
}

.btn-large {
  font-size: 1.1rem;
  padding: 18px 36px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--blue-500);
  background: rgba(37,99,235,0.08);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 50px;
  background: rgba(16,185,129,0.08);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(5,11,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.nav-cta {
  background: var(--grad-primary) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.dark-toggle:hover { color: var(--text-primary); border-color: var(--blue-500); background: rgba(37,99,235,0.1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  bottom: -150px; right: -80px;
  animation-delay: -3s;
}

.shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -6s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%        { transform: translate(20px, -20px) scale(1.05); }
  66%        { transform: translate(-10px, 15px) scale(0.97); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stat { text-align: left; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition-delay: 0.2s;
}

.chart-card {
  padding: 20px;
}

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

.chart-label { font-size: 0.9rem; font-weight: 600; }

.chart-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.chart-badge.up { background: rgba(16,185,129,0.15); color: var(--green-400); }

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

.pulse-dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; r: 9; }
  50%       { opacity: 0.7; r: 13; }
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-weight: 600;
}

.trade-now-btn {
  font-size: 0.82rem;
  color: var(--green-400);
  transition: var(--transition);
}
.trade-now-btn:hover { color: var(--green-500); }

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-card strong { display: block; font-size: 0.9rem; font-weight: 600; }
.mini-card span   { font-size: 0.78rem; }
.up-text          { color: var(--green-400); }
.neutral-text     { color: var(--amber-500); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  animation: fadeInUp 1s 2s both;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

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

/* ===== WHY QUOTEX ===== */
.why-section { background: var(--bg-surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ===== HOW TO START ===== */
.steps-section { background: var(--bg-base); }

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  z-index: 1;
  transition: var(--transition);
}

.step-item:hover .step-icon-wrap {
  border-color: var(--blue-500);
  box-shadow: 0 0 20px rgba(37,99,235,0.3);
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--grad-primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

.step-connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  opacity: 0.3;
  z-index: 0;
}

.step-item:last-child .step-connector { display: none; }

.steps-cta { text-align: center; margin-top: 50px; }

/* ===== FEATURES ===== */
.features-section { background: var(--bg-surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}

.fi-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ===== STATS ===== */
.stats-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(16,185,129,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--bg-surface); }

.slider-wrapper { overflow: hidden; position: relative; }

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-card {
  min-width: calc(50% - 12px);
  padding: 32px;
  flex-shrink: 0;
}

.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-card blockquote p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.t-author strong { display: block; font-size: 0.92rem; }
.t-author span   { font-size: 0.8rem; color: var(--text-muted); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  color: var(--text-primary);
  border-color: var(--blue-500);
  background: rgba(37,99,235,0.1);
}

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

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

.slider-dot.active {
  background: var(--blue-400);
  width: 22px;
  border-radius: 4px;
}

/* ===== FAQ ===== */
.faq-section { background: var(--bg-base); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover { color: var(--blue-400); }

.faq-chevron { flex-shrink: 0; transition: transform 0.3s; color: var(--text-muted); }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--blue-400); }

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

.faq-answer:not([hidden]) {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer[hidden] { display: block !important; }

.faq-answer p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.cta-bg { position: absolute; inset: 0; overflow: hidden; }
.cta-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}
.cta-shape.s1 { width: 500px; height: 500px; background: #2563eb; top: -200px; left: -100px; }
.cta-shape.s2 { width: 400px; height: 400px; background: #10b981; bottom: -150px; right: -80px; }

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 18px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 50px;
  margin-bottom: 24px;
  color: var(--blue-400);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.cta-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-features span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-400);
}

.cta-note {
  margin-top: 16px !important;
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 14px 0 20px;
  max-width: 260px;
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--blue-500);
  background: rgba(37,99,235,0.1);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--blue-400); }

.footer-cta-wrap { margin-top: 20px; }
.footer-cta { padding: 10px 24px; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.disclaimer { color: var(--text-muted) !important; max-width: 600px; margin: 0 auto !important; line-height: 1.5; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.5);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .shape, .scroll-wheel, .pulse-dot { animation: none; }
  .reveal { transition: none; }
  html   { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */

/* Large tablet */
@media (max-width: 1024px) {
  .cards-grid       { grid-template-columns: repeat(2, 1fr); }
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .hero-content     { gap: 40px; }
}

/* Tablet */
@media (max-width: 900px) {
  .steps-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .step-connector { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .testimonial-card { min-width: calc(100% - 0px); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .cards-grid    { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps-list    { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions  { flex-direction: column; }
  .hero-stats    { gap: 12px; }
  .cta-features  { flex-direction: column; align-items: center; gap: 8px; }

  /* Mobile nav */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,11,24,0.98);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links.mobile-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a { font-size: 1.2rem; padding: 12px 24px; }
  .hamburger { display: flex; z-index: 1000; }
  .back-to-top { bottom: 16px; right: 16px; }
}
