/* 
   Quant Pattern — Marketing Landing Page
   Premium Theme with Light/Dark Mode + Glassmorphism
    */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/*  CSS Custom Properties — DARK MODE (default)  */
:root {
  --bg-deep: #000000;
  --bg-primary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-solid: #111111;
  --bg-glass: #111111;
  --bg-input: #1a1a1a;
  --border-glass: #222222;
  --border-glow: #333333;

  --blue-primary: #2563eb;
  --blue-light: #60a5fa;
  --purple-primary: #2563eb;
  --purple-deep: #1d4ed8;
  --gold-primary: #16a34a;
  --gold-warm: #15803d;
  --cyan-accent: #0891b2;
  --green-accent: #16a34a;
  --red-accent: #dc2626;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-on-gradient: #ffffff;

  --gradient-hero: linear-gradient(135deg, #f3f4f6 0%, #f3f4f6 100%);
  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
  --gradient-gold: linear-gradient(135deg, #16a34a 0%, #16a34a 100%);
  --gradient-card: #111111;

  --shadow-glow: none;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-btn: none;
  --shadow-soft: none;

  --overlay-quote: rgba(255, 255, 255, 0.05);
  --star-color: transparent;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 50%;

  --transition-fast: 0.1s ease;
  --transition-smooth: 0.2s ease;
  --transition-bounce: 0.2s ease;
}

/*  LIGHT MODE  */
[data-theme="light"] {
  --bg-deep: #f3f4f6;
  --bg-primary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-glass: #ffffff;
  --bg-input: #f9fafb;
  --border-glass: #e5e7eb;
  --border-glow: #d1d5db;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-on-gradient: #ffffff;

  --shadow-glow: none;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-btn: none;
  --shadow-soft: none;

  --overlay-quote: rgba(0, 0, 0, 0.05);
  --star-color: transparent;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/*  Animated Background Stars  */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .stars-container {
  opacity: 0.4;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star-color);
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: var(--max-opacity);
    transform: scale(1);
  }
}

/*  Utility Classes  */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 60px 0;
  /* Increased breathing room */
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(244, 209, 220, 0.1);
  border: 1px solid rgba(244, 209, 220, 0.2);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  /* Premium tight tracking */
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-gradient {
  color: var(--text-primary);
}

.text-gradient-blue {
  color: var(--blue-primary);
}

.text-gradient-gold {
  color: var(--gold-primary);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  /* For spotlight */
}

/* Spotlight glow effect layer */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.1),
      transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/*  Fade-In Animations  */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* scale-in for stagger children */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* 
   NAVBAR
    */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-blue);
  color: var(--text-on-gradient);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(244, 209, 220, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--blue-light);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid rgba(244, 209, 220, 0.4);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(244, 209, 220, 0.1);
  border-color: var(--blue-primary);
  transform: translateY(-2px);
}

/*  Theme Toggle Button  */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: rgba(244, 209, 220, 0.15);
  border: 1.5px solid rgba(244, 209, 220, 0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  padding: 2px;
  flex-shrink: 0;
}

/* ── App Toggle Pill ── */
.app-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px 5px 10px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.10);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.app-toggle-pill:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
  color: #4ade80;
}
.app-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: ldot 1.4s ease-in-out infinite;
}
.app-toggle-label { line-height: 1; }



.theme-toggle:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 0 12px rgba(244, 209, 220, 0.2);
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-blue);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(244, 209, 220, 0.3);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: var(--gradient-gold);
  box-shadow: 0 2px 8px rgba(246, 211, 101, 0.4);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .hero-bg-glow {
  opacity: 0.12;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--blue-primary);
  top: -150px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--purple-primary);
  bottom: -100px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  background: var(--gold-primary);
  top: 50%;
  left: 50%;
  opacity: 0.1;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-30px) rotate(3deg);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(105, 240, 174, 0.1);
  border: 1px solid rgba(105, 240, 174, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-accent);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

[data-theme="light"] .hero-badge {
  background: rgba(105, 240, 174, 0.15);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.3);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

[data-theme="light"] .hero-badge .pulse-dot {
  background: #2e7d32;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  /* Apple-style tight tracking */
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .line-break {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-ctas .btn-primary {
  padding: 16px 36px;
  font-size: 1rem;
}

.hero-ctas .btn-outline {
  padding: 16px 36px;
  font-size: 1rem;
}

.hero-stats-mini {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

.hero-stat-item .stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-primary);
}

[data-theme="light"] .hero-stat-item .stat-number {
  color: #b8860b;
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Hero Right — Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-chart-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  transition: all var(--transition-smooth);
}

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

.chart-symbol {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.chart-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-accent);
  background: rgba(105, 240, 174, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

[data-theme="light"] .chart-change {
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
}

.chart-svg {
  width: 100%;
  height: 160px;
}

.chart-line {
  fill: none;
  stroke: url(#chartGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#areaGradient);
  opacity: 0.3;
}

.prediction-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--gradient-gold);
  color: #1a1a2e;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(246, 211, 101, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.chart-indicators {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.indicator-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicator-tag.astro {
  background: rgba(244, 209, 220, 0.2);
  color: #f4d1dc;
  border: 1px solid rgba(244, 209, 220, 0.3);
}

.indicator-tag.technical {
  background: rgba(244, 209, 220, 0.2);
  color: var(--blue-light);
  border: 1px solid rgba(244, 209, 220, 0.3);
}

.indicator-tag.ai {
  background: rgba(246, 211, 101, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(246, 211, 101, 0.3);
}

[data-theme="light"] .indicator-tag.astro {
  background: rgba(244, 209, 220, 0.1);
  color: #d16b8a;
  /* A darker pink for legibility on light theme */
}

[data-theme="light"] .indicator-tag.technical {
  background: rgba(244, 209, 220, 0.1);
  color: #3949ab;
}

[data-theme="light"] .indicator-tag.ai {
  background: rgba(246, 211, 101, 0.15);
  color: #b8860b;
}

/* Floating elements */
.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.float-zodiac {
  font-size: 2.5rem;
  opacity: 0.15;
  animation: floatSpin 20s linear infinite;
}

[data-theme="light"] .float-zodiac {
  opacity: 0.1;
}

@keyframes floatSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 
   MARQUEE / SOCIAL PROOF RIBBON
    */
.social-proof-ribbon {
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  opacity: 0.5;
}

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

  100% {
    transform: translateX(-50%);
  }
}

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

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(244, 209, 220, 0.03) 50%,
      transparent 100%);
  pointer-events: none;
}

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

.stat-card {
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 0 0 4px 4px;
}

.stat-card:nth-child(1)::before {
  background: var(--gradient-blue);
}

.stat-card:nth-child(2)::before {
  background: var(--gradient-gold);
}

.stat-card:nth-child(3)::before {
  background: var(--green-accent);
}

.stat-card:nth-child(4)::before {
  background: var(--blue-primary);
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: none;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(-5deg);
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card:nth-child(1) .stat-value {
  color: var(--blue-light);
}

.stat-card:nth-child(2) .stat-value {
  color: var(--gold-primary);
}

.stat-card:nth-child(3) .stat-value {
  color: var(--green-accent);
}

.stat-card:nth-child(4) .stat-value {
  color: var(--cyan-accent);
}

[data-theme="light"] .stat-card:nth-child(1) .stat-value {
  color: #3949ab;
}

[data-theme="light"] .stat-card:nth-child(2) .stat-value {
  color: #b8860b;
}

[data-theme="light"] .stat-card:nth-child(3) .stat-value {
  color: #2e7d32;
}

[data-theme="light"] .stat-card:nth-child(4) .stat-value {
  color: #00838f;
}

.stat-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-period {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
}

/* 
   HOW IT WORKS
    */
.how-it-works {
  text-align: center;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(244, 209, 220, 0.3),
      rgba(244, 209, 220, 0.3),
      rgba(244, 209, 220, 0.3),
      transparent);
}

.step-card {
  padding: 40px 28px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-number {
  transform: scale(1.15);
}

.step-card:nth-child(1) .step-number {
  background: rgba(244, 209, 220, 0.1);
  border: 2px solid rgba(244, 209, 220, 0.4);
  color: var(--blue-light);
}

.step-card:nth-child(2) .step-number {
  background: rgba(118, 75, 162, 0.1);
  border: 2px solid rgba(118, 75, 162, 0.4);
  color: #c89eff;
}

.step-card:nth-child(3) .step-number {
  background: rgba(246, 211, 101, 0.1);
  border: 2px solid rgba(246, 211, 101, 0.4);
  color: var(--gold-primary);
}

.step-card:nth-child(4) .step-number {
  background: rgba(105, 240, 174, 0.1);
  border: 2px solid rgba(105, 240, 174, 0.4);
  color: var(--green-accent);
}

.step-card:nth-child(5) .step-number {
  background: rgba(0, 188, 212, 0.1);
  border: 2px solid rgba(0, 188, 212, 0.4);
  color: var(--cyan-accent);
}

[data-theme="light"] .step-card:nth-child(2) .step-number {
  color: #6a1b9a;
}

[data-theme="light"] .step-card:nth-child(3) .step-number {
  color: #b8860b;
}

[data-theme="light"] .step-card:nth-child(4) .step-number {
  color: #2e7d32;
}

[data-theme="light"] .step-card:nth-child(5) .step-number {
  color: #00838f;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
  transform: translateY(-4px);
}

.step-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 
   TESTIMONIALS
    */
.testimonials {
  text-align: center;
}

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

.testimonial-card {
  padding: 32px 24px;
  text-align: left;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--overlay-quote);
  line-height: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 209, 220, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(244, 209, 220, 0.3);
}

.testimonial-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

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

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-top: 16px;
  color: var(--gold-primary);
  font-size: 0.85rem;
}

[data-theme="light"] .testimonial-stars {
  color: #f59e0b;
}

.testimonial-flag {
  font-size: 1.1rem;
}

/* 
   DIGITAL SERVICES
    */
.services {
  text-align: center;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

/* Bento Box Layout */
@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 24px;
  }

  .bento-grid .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .bento-grid .bento-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-grid .bento-featured .service-icon {
    font-size: 3rem;
  }

  .bento-grid .bento-featured .service-title {
    font-size: 1.8rem;
  }

  .bento-grid .bento-featured .service-description {
    font-size: 1.1rem;
    max-width: 80%;
  }
}

.service-card {
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 4px 4px 0 0;
  transition: width var(--transition-smooth);
}

.service-card:hover::after {
  width: 60%;
}

.service-card:nth-child(1)::after {
  background: var(--gradient-blue);
}

.service-card:nth-child(2)::after {
  background: var(--gradient-gold);
}

.service-card:nth-child(3)::after {
  background: var(--green-accent);
}

.service-card:nth-child(4)::after {
  background: var(--blue-primary);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
}

.service-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-top: 16px;
  text-align: left;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '';
  color: var(--blue-light);
  font-size: 0.65rem;
}

/* 
   LEAD CAPTURE / CONTACT FORM
    */
.contact-section {
  text-align: center;
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244, 209, 220, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-wrapper {
  max-width: 680px;
  margin: 60px auto 0;
  padding: 48px;
  position: relative;
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: rgba(105, 240, 174, 0.1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
  position: relative;
  /* Changed for floating labels */
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  /* Keep existing */
  letter-spacing: 1px;
  /* Keep existing */
  margin-bottom: 8px;
  /* Keep existing */
  position: absolute;
  top: 18px;
  left: 20px;
  transition: all 0.2s ease-out;
  pointer-events: none;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 28px 20px 12px;
  /* Bottom heavy padding for floating label */
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

/* Floating Label Logic */
.form-input:focus,
.form-textarea:focus,
.form-input:not(:placeholder-shown),
.form-textarea:not(:placeholder-shown) {
  border-color: rgba(244, 209, 220, 0.5);
  box-shadow: 0 0 0 4px rgba(244, 209, 220, 0.1);
  outline: none;
}

.form-input:focus+.form-label,
.form-textarea:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label,
.form-textarea:not(:placeholder-shown)+.form-label {
  top: 8px;
  font-size: 0.75rem;
  color: var(--blue-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: transparent;
  /* Changed for floating labels */
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  width: 100%;
  padding: 16px 32px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: scaleIn 0.5s ease-out;
}

.form-success.show {
  display: block;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.success-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 
   FOOTER
    */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 1;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--blue-light);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: rgba(244, 209, 220, 0.15);
  border-color: var(--border-glow);
  transform: translateY(-3px) scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 
   TOAST NOTIFICATION
    */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* 
   RESPONSIVE
    */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats-mini {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

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

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  [data-theme="light"] .nav-links {
    background: rgba(244, 246, 251, 0.97);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats-mini {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-row-animated {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .cta-row-animated .btn-primary, 
  .cta-row-animated .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .steps-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-container::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-grid .bento-featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 32px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .social-proof-ribbon {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2.2rem;
  }

  .headline {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .step-card, .testimonial-card, .service-card {
    padding: 24px 20px;
  }
}
/* --- ANIMATED HERO REWRITE --- */
.headline {
  font-size: clamp(3rem, 4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.line { display: block; overflow: hidden; }
.line-inner {
  display: block;
  animation: slideUp .7s cubic-bezier(.16,1,.3,1) both;
}
.line:nth-child(1) .line-inner { animation-delay: .1s; }
.line:nth-child(2) .line-inner { animation-delay: .22s; }
.line:nth-child(3) .line-inner { animation-delay: .34s; }
.line:nth-child(4) .line-inner { animation-delay: .46s; }

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

.accent { color: var(--text-primary); }
.accent-underline { position: relative; display: inline-block; }

.subtext {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 40px; animation: fadeUp .7s .55s ease both;
}
.subtext em { color: var(--text-primary); font-style: normal; }

.cta-row-animated {
  display: flex; align-items: center; gap: 20px; animation: fadeUp .7s .65s ease both;
}

/* ── HERO RIGHT: CHART CARD ── */
.chart-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
  animation: fadeUp .8s .4s ease both;
}
.chart-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
}

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.card-title { font-size: 0.75rem; color: var(--blue-light); font-weight: 700; letter-spacing: 1px; }
.card-ticker { font-size: 1.3rem; font-weight: 800; margin-top: 4px; }
.card-badge {
  background: rgba(78, 168, 199, .12); border: 1px solid rgba(78, 168, 199, .2);
  color: var(--blue-light); padding: 6px 12px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 700;
}

.chart-area { position: relative; height: 140px; margin-bottom: 20px; }
.chart-area svg { width: 100%; height: 100%; overflow: visible; }

.chart-path-actual {
  fill: none; stroke: var(--text-primary); stroke-width: 2.5;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: drawPath 1.5s .8s cubic-bezier(.4,0,.2,1) forwards;
}
.chart-path-forecast {
  fill: none; stroke: var(--blue-primary); stroke-width: 2.5; stroke-dasharray: 5 4;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: drawPath 1.2s 1.5s cubic-bezier(.4,0,.2,1) forwards;
}
.chart-fill { fill: url(#chartGradNew); opacity: 0; animation: fadeIn .8s 1.8s ease forwards; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes fadeIn   { to { opacity: 1; } }

.forecast-label { font-size: 0.65rem; font-weight: 700; fill: var(--blue-primary); opacity: 0; animation: fadeIn .5s 2s ease forwards; }
.forecast-line { stroke: rgba(78, 168, 199, .3); stroke-width: 1; stroke-dasharray: 3 3; }

.signals { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 6px 12px; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
}
.chip.green { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.25); color: #34d399; }
.chip.yellow { background: rgba(246, 211, 101, 0.08); border-color: rgba(246, 211, 101, 0.2); color: #f6d365; }
.chip.blue { background: rgba(78, 168, 199, 0.08); border-color: rgba(78, 168, 199, 0.2); color: var(--blue-light); }

.predicted-badge-new {
  position: absolute; top: -14px; right: 28px; z-index: 10;
  background: #34d399; color: #000; padding: 6px 14px; border-radius: 100px;
  font-weight: 700; font-size: 0.75rem; box-shadow: 0 4px 20px rgba(52, 211, 153, .4);
  animation: popIn .5s 2.2s cubic-bezier(.34,1.56,.64,1) both;
}
.predicted-pct-new {
  position: absolute; top: 8px; right: 28px; z-index: 10;
  background: rgba(52, 211, 153, .15); border: 1px solid rgba(52, 211, 153, .3); color: #34d399;
  padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700;
  animation: popIn .5s 2.4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1)} }

.orbit-container {
  position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; opacity: .2; pointer-events: none;
}
.orbit { border: 1px dashed rgba(78, 168, 199, 0.6); border-radius: 50%; position: absolute; animation: spin linear infinite; }
.orbit:nth-child(1) { width:100%; height:100%; top:0;left:0; animation-duration: 14s; }
.orbit:nth-child(2) { width:65%; height:65%; top:17.5%;left:17.5%; animation-duration: 8s; animation-direction: reverse; }
.orbit-dot { width:6px;height:6px;background:var(--blue-light);border-radius:50%;position:absolute;top:-3px;left:calc(50% - 3px); }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

