/* ===================================
   MILLIONAIRE MARKETING — FROST & EMERALD
   Global Styles & Animations
   =================================== */

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

:root {
  --bg: #090B10;
  --surface: #0F1218;
  --border: #1A1F2E;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --sky: #38BDF8;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --danger: #EF4444;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --gradient-emerald: linear-gradient(135deg, #10B981, #059669);
  --gradient-amber: linear-gradient(135deg, #F59E0B, #D97706);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
}

/* ===================================
   SCROLL PROGRESS BAR
   =================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #10B981, #059669);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: 0;
}

.font-grotesk { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.gradient-text-emerald {
  background: linear-gradient(135deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   SECTION LABELS
   =================================== */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--emerald);
}

.section-label-amber {
  color: var(--amber);
}

/* ===================================
   NAVIGATION
   =================================== */
.nav-transparent {
  background: transparent;
}

.nav-scrolled {
  background: rgba(9, 11, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #090B10;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-primary-amber {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  letter-spacing: 0;
}

.btn-secondary:hover {
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* ===================================
   CARDS
   =================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.06);
  transform: translateY(-3px);
}

.card-dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(26, 31, 46, 0.4) 79px,
    rgba(26, 31, 46, 0.4) 80px
  );
  pointer-events: none;
}

.hero-gradient-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ===================================
   PARTICLES
   =================================== */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.12;
}

@keyframes particleDrift1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(30px, -20px); }
  50%  { transform: translate(10px, -40px); }
  75%  { transform: translate(-20px, -20px); }
  100% { transform: translate(0, 0); }
}
@keyframes particleDrift2 {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-25px, 30px); }
  66%  { transform: translate(15px, 15px); }
  100% { transform: translate(0, 0); }
}
@keyframes particleDrift3 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(40px, 25px); }
  100% { transform: translate(0, 0); }
}
@keyframes particleDrift4 {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(-30px, -30px); }
  60%  { transform: translate(20px, -10px); }
  100% { transform: translate(0, 0); }
}

/* ===================================
   GRADIENT MESH ANIMATION
   =================================== */
@keyframes meshDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes meshDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20px, 30px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ===================================
   COUNTER ANIMATION
   =================================== */
@keyframes counterBounce {
  0%   { transform: scale(1); }
  90%  { transform: scale(1.08); }
  95%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.counter-bounce {
  animation: counterBounce 0.4s ease-out;
}

/* ===================================
   SCROLL ENTRANCE ANIMATIONS
   =================================== */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

/* ===================================
   MARQUEE (TRUST STRIP)
   =================================== */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #090B10, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, #090B10, transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   SERVICES CAROUSEL
   =================================== */
.services-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 16px;
  cursor: grab;
}

.services-carousel:active {
  cursor: grabbing;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-card {
  min-width: 340px;
  width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ===================================
   TIMELINE
   =================================== */
.timeline-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 16px;
}

.timeline-carousel::-webkit-scrollbar {
  display: none;
}

.timeline-card {
  min-width: 320px;
  width: 320px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ===================================
   WAR ROOM DASHBOARD
   =================================== */
.kpi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  flex: 1;
}

.tab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0;
}

.tab-btn.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* ===================================
   SMS PHONE MOCKUP
   =================================== */
.phone-mockup {
  background: #1a1a2e;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 20px 16px;
  width: 260px;
  position: relative;
  margin: 0 auto;
}

.phone-mockup::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sms-bubble-brand {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #090B10;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  margin-bottom: 8px;
  font-weight: 500;
  max-width: 85%;
  margin-left: auto;
}

.sms-bubble-reply {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  margin-bottom: 8px;
  max-width: 70%;
}

.sms-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

/* ===================================
   ROI CALCULATOR
   =================================== */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--emerald);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: box-shadow 0.2s;
}

.roi-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--emerald);
  cursor: pointer;
}

/* Track fill for Webkit */
.slider-container {
  position: relative;
}

/* ===================================
   BEFORE/AFTER DIVIDER LINE ANIMATION
   =================================== */
@keyframes lineDrawDown {
  0%   { height: 0; opacity: 0; }
  100% { height: 100%; opacity: 1; }
}

.line-draw {
  animation: lineDrawDown 0.8s ease-out forwards;
}

/* ===================================
   PROCESS SECTION — CONNECTING LINES
   =================================== */
@keyframes dashDraw {
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

@keyframes connectorGrow {
  0%   { width: 0; opacity: 0; }
  100% { width: 100%; opacity: 1; }
}

.connector-line {
  animation: connectorGrow 0.6s ease-out forwards;
}

/* ===================================
   PULSE ANIMATIONS
   =================================== */
@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
  50%  { box-shadow: 0 0 40px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ===================================
   FORM INPUTS
   =================================== */
.form-input {
  width: 100%;
  background: #090B10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0;
}

.form-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ===================================
   SMS FUNNEL BARS
   =================================== */
@keyframes barGrowRight {
  0%   { width: 0; }
  100% { width: var(--target-width); }
}

.funnel-bar {
  height: 28px;
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* ===================================
   TESTIMONIAL CARDS
   =================================== */
.testimonial-center {
  transform: scale(1.02);
  border-color: rgba(16, 185, 129, 0.15) !important;
}

/* ===================================
   PILL BADGES
   =================================== */
.pill-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--emerald);
  letter-spacing: 0;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--amber);
}

.pill-white {
  background: rgba(241, 245, 249, 0.05);
  border-color: rgba(241, 245, 249, 0.1);
  color: var(--text-primary);
}

/* ===================================
   ACTIVE SECTION NAV
   =================================== */
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}

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

.nav-link.active {
  color: var(--emerald);
}

/* ===================================
   SCROLL HINT ARROW
   =================================== */
@keyframes arrowPulse {
  0%   { opacity: 0.4; transform: translateX(0); }
  50%  { opacity: 1; transform: translateX(5px); }
  100% { opacity: 0.4; transform: translateX(0); }
}

.scroll-hint {
  animation: arrowPulse 1.5s ease-in-out infinite;
}

/* ===================================
   RADAR CHART CUSTOM
   =================================== */
.recharts-radar-polygon {
  transition: all 0.3s ease;
}

/* ===================================
   MINI BOUNCE FOR ROI NUMBERS
   =================================== */
@keyframes miniBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.05); }
  60%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.mini-bounce {
  animation: miniBounce 0.3s ease-out;
}

/* ===================================
   SECTION PADDING
   =================================== */
.section-padding {
  padding: 100px 0;
}

/* ===================================
   EMERALD CHECKMARK
   =================================== */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .section-padding {
    padding: 48px 0;
  }

  .hero-number {
    font-size: 64px !important;
  }

  .section-headline-56 { font-size: 32px !important; }
  .section-headline-52 { font-size: 28px !important; }
  .section-headline-48 { font-size: 26px !important; }
  .section-headline-44 { font-size: 24px !important; }
  .section-headline-40 { font-size: 24px !important; }

  .services-carousel {
    flex-wrap: nowrap;
  }

  .particle {
    display: none;
  }

  .hero-grid {
    display: none;
  }

  .phone-mockup {
    width: 220px;
  }
}

@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }
}

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

  .fade-up, .fade-in {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* ===================================
   GLOW PULSE FOR CTA BUTTON
   =================================== */
@keyframes ctaGlow {
  0%   { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
  50%  { box-shadow: 0 0 40px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

.cta-glow {
  animation: ctaGlow 2s ease-in-out infinite;
}

/* ===================================
   BEFORE/AFTER CARDS
   =================================== */
.before-card {
  border-color: var(--border);
}

.after-card {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.08);
}

/* ===================================
   STAGGER ANIMATION DELAYS
   =================================== */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Green pulse dot */
.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

/* Amber pulse dot */
.amber-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  display: inline-block;
}

/* ===================================
   WAR ROOM TABLE
   =================================== */
.war-room-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.war-room-table tr:last-child {
  border-bottom: none;
}

.war-room-table tr:hover {
  background: rgba(16, 185, 129, 0.03);
}

.war-room-table .sms-row {
  background: rgba(245, 158, 11, 0.03);
}

/* ===================================
   FOOTER LINKS
   =================================== */
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0;
}

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

/* ===================================
   MONOGRAM
   =================================== */
.mm-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--emerald);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 1;
}

/* ===================================
   RADAR CHART CONTAINER
   =================================== */
.radar-container {
  position: relative;
}

/* ===================================
   HERO BADGE
   =================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0;
}

/* Word animation helper */
.word-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.word-span.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service card icon hover */
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  transition: transform 0.3s ease;
}

.service-icon {
  transition: transform 0.3s ease;
}

/* ===================================
   TIMELINE LINE
   =================================== */
.timeline-line {
  height: 1px;
  background: var(--border);
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--emerald);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -1px;
}

/* ===================================
   RECHARTS TOOLTIP OVERRIDE
   =================================== */
.recharts-tooltip-wrapper .recharts-default-tooltip {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}

/* ===================================
   PROCESS CARDS CONNECTOR
   =================================== */
.process-connector {
  flex: 1;
  height: 2px;
  position: relative;
  overflow: hidden;
}

.process-connector-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), rgba(16, 185, 129, 0.3));
  border-radius: 1px;
  width: 0;
  transition: width 0.6s ease-out;
  border-top: 2px dashed var(--emerald);
  height: 0;
  top: 50%;
}
