/* ===========================
   GROVOKE Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors */
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #5B21B6;
  --primary-glow: rgba(124, 58, 237, 0.45);
  --accent: #C084FC;
  --accent-glow: rgba(192, 132, 252, 0.3);

  --bg: #0A0612;
  --bg-lighter: #110D1D;
  --surface: rgba(124, 58, 237, 0.06);
  --surface-hover: rgba(124, 58, 237, 0.12);
  --surface-border: rgba(124, 58, 237, 0.15);

  --text: #F5F3FF;
  --text-secondary: #C4B5FD;
  --text-muted: #8B7FC7;

  --success: #34D399;
  --success-glow: rgba(52, 211, 153, 0.25);
  --warning: #FBBF24;
  --danger: #F87171;

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-5xl: 4rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 40px var(--primary-glow);
  --shadow-glow-sm: 0 0 20px var(--primary-glow);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-logo-wrapper,
.footer-logo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  white-space: nowrap;
}

.header-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Skeuomorphic Card (Formerly Glass Card) --- */
.glass-card {
  /* Solid dark physical material */
  background: linear-gradient(135deg, #1A1226 0%, #0F0A1A 100%);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-lg);

  /* Top inner highlight (Bevel), Bottom inner shadow, Heavy outer drop shadow */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.2);

  transition: all var(--duration) var(--ease);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.8);
  /* Brighter gradient on hover to simulate lighting */
  background: linear-gradient(135deg, #221833 0%, #130C22 100%);
  transform: translateY(-4px);
  /* Heavier physical shadow when lifted */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 15px 30px rgba(0, 0, 0, 0.6),
    0 8px 12px rgba(124, 58, 237, 0.15);
}

/* --- Skeuomorphic Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  /* Convex gradient button */
  background: linear-gradient(180deg, #9C6FEA 0%, #6826D4 100%);
  color: #fff;
  border: 1px solid #4A1A9E;

  /* Highlight bevel on top, dark shading bottom, heavy drop shadow */
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 6px 15px rgba(104, 38, 212, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  /* Physical push-down effect */
  transform: translateY(4px);
  background: linear-gradient(180deg, #6826D4 0%, #9C6FEA 100%);
  /* Invert shadows for pressed inner depression */
  box-shadow:
    inset 0 4px 6px rgba(0, 0, 0, 0.6),
    0 0 0 rgba(0, 0, 0, 0);
}

.btn-outline {
  /* Dark physical button */
  background: linear-gradient(180deg, #2D1E40 0%, #1A1126 100%);
  color: var(--text);
  border: 1px solid #4B336B;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-outline:active {
  transform: translateY(4px);
  background: linear-gradient(180deg, #1A1126 0%, #2D1E40 100%);
  box-shadow:
    inset 0 4px 6px rgba(0, 0, 0, 0.6),
    0 0 0 rgba(0, 0, 0, 0);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-md);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: var(--fs-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  font-size: var(--fs-sm) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  width: 100%;
  /* Dark smoked glass effect */
  background: rgba(10, 6, 18, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 998;
  /* Just slightly under the 1000 header so it slides from behind */
  padding: var(--space-2xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-lg);

  /* Smooth drop-down animation setup */
  display: flex;
  visibility: hidden;
  transform: translateY(-150%);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--surface-border);
  transition: color var(--duration) var(--ease);
}

.mobile-nav a:hover {
  color: var(--text);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-4xl);
  /* Added space before stats */
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
  opacity: 0.25;
}

.hero-orb--3 {
  width: 200px;
  height: 200px;
  background: #6D28D9;
  top: 40%;
  left: 30%;
  animation-delay: -5s;
  opacity: 0.2;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -30px) scale(1.08);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-xl);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  font-size: var(--fs-5xl);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-4xl);
  /* Wide gap for Desktop */
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--surface-border);
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.hero-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--success);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Hero Visual — Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* Push phone up into the desktop viewport */
  margin-top: -120px;
}

.phone-mockup {
  width: 300px;
  height: 580px;
  background: linear-gradient(180deg, #1A1028, #0F0A1A);
  border-radius: 36px;
  border: 2px solid rgba(124, 58, 237, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px var(--primary-glow), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: calc(100% - 24px);
}

.phone-header {
  text-align: center;
  padding: var(--space-md) 0;
}

.phone-header .caller-name {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}

.phone-header .caller-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.phone-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--space-xl) 0;
}

.phone-wave span {
  width: 3px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: waveAnim 1.2s ease-in-out infinite;
}

.phone-wave span:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}

.phone-wave span:nth-child(2) {
  height: 35px;
  animation-delay: 0.1s;
}

.phone-wave span:nth-child(3) {
  height: 50px;
  animation-delay: 0.2s;
}

.phone-wave span:nth-child(4) {
  height: 40px;
  animation-delay: 0.3s;
}

.phone-wave span:nth-child(5) {
  height: 55px;
  animation-delay: 0.4s;
}

.phone-wave span:nth-child(6) {
  height: 30px;
  animation-delay: 0.5s;
}

.phone-wave span:nth-child(7) {
  height: 45px;
  animation-delay: 0.6s;
}

.phone-wave span:nth-child(8) {
  height: 25px;
  animation-delay: 0.7s;
}

.phone-wave span:nth-child(9) {
  height: 40px;
  animation-delay: 0.8s;
}

.phone-wave span:nth-child(10) {
  height: 20px;
  animation-delay: 0.9s;
}

@keyframes waveAnim {

  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.phone-transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: hidden;
}

.chat-bubble {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  line-height: 1.5;
  max-width: 85%;
  animation: bubbleFade 0.5s ease forwards;
  opacity: 0;
}

.chat-bubble.ai {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  align-self: flex-start;
  color: var(--text);
}

.chat-bubble.caller {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: flex-end;
  color: var(--text-secondary);
}

@keyframes bubbleFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble:nth-child(1) {
  animation-delay: 0.5s;
}

.chat-bubble:nth-child(2) {
  animation-delay: 1.5s;
}

.chat-bubble:nth-child(3) {
  animation-delay: 2.5s;
}

.chat-bubble:nth-child(4) {
  animation-delay: 3.5s;
}

/* Floating elements around phone */
.hero-float {
  position: absolute;
  padding: var(--space-sm) var(--space-md);
  background: rgba(10, 6, 18, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.hero-float--1 {
  top: 15%;
  left: -10%;
  animation-delay: 0s;
}

.hero-float--2 {
  bottom: 25%;
  right: -15%;
  animation-delay: -2s;
}

.hero-float--3 {
  top: 60%;
  left: -20%;
  animation-delay: -1s;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-12px);
  }
}

.hero-float .float-icon {
  display: inline-block;
  margin-right: var(--space-xs);
}

/* ===========================
   STATS STRIP
   =========================== */
.stats-strip {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-lighter) 50%, var(--bg) 100%);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(192, 132, 252, 0.02));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(192, 132, 252, 0.04));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: var(--fs-4xl);
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.stat-number.highlight-red {
  color: var(--danger);
}

.stat-number.highlight-green {
  color: var(--success);
}

.stat-number.highlight-purple {
  color: var(--primary-light);
}

.stat-number.highlight-yellow {
  color: var(--warning);
}

.stat-description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: var(--fs-xl);
  font-weight: 800;
  margin: 0 auto var(--space-xl);
  box-shadow: 0 0 30px var(--primary-glow);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.3);
  animation: stepPulse 3s ease-in-out infinite;
}

@keyframes stepPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.step-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

/* ===========================
   FEATURES
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  padding: var(--space-2xl);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(192, 132, 252, 0.08));
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.feature-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   ROI CALCULATOR
   =========================== */
.roi-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-lighter) 50%, var(--bg) 100%);
}

.roi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-3xl);
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.roi-slider-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.roi-slider-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-md);
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  cursor: pointer;
  transition: transform var(--duration) var(--ease);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  cursor: pointer;
  border: none;
}

.roi-results {
  padding: var(--space-2xl);
}

.roi-result-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--surface-border);
}

.roi-result-item:last-child {
  border-bottom: none;
}

.roi-result-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.roi-result-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.roi-result-value.green {
  color: var(--success);
}

.roi-result-value.purple {
  color: var(--primary-light);
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-carousel {
  margin-top: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-card .glass-card {
  padding: var(--space-3xl);
  max-width: 700px;
  width: 100%;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: var(--space-lg) var(--space-md);
  }

  .testimonial-card .glass-card {
    padding: var(--space-xl) var(--space-md);
  }

  .testimonial-quote {
    font-size: var(--fs-base);
  }

  .testimonial-quote::before {
    font-size: 3rem;
    top: -15px;
    left: 0;
  }
}

.testimonial-quote {
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: var(--space-xl);
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
  line-height: 1;
}

.testimonial-author {
  font-weight: 600;
  font-size: var(--fs-base);
}

.testimonial-role {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.testimonial-stars {
  color: var(--warning);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-border);
  border: none;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}


/* ===========================
   FAQ
   =========================== */
.faq-list {
  max-width: 750px;
  margin: var(--space-3xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.faq-item.active {
  border-color: rgba(124, 58, 237, 0.3);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--duration) var(--ease);
}

.faq-question:hover {
  background: var(--surface-hover);
}

.faq-icon {
  font-size: var(--fs-lg);
  color: var(--primary-light);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: var(--fs-4xl);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--surface-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--surface-border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  font-size: var(--fs-sm);
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  :root {
    --fs-5xl: 3rem;
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p,
  .hero-actions {
    justify-content: center;
  }

  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    /* Ensure stats wrap on smaller screens */
  }

  .hero-visual {
    /* Kept visible on tablet, but scaled down slightly */
    transform: scale(0.9);
    margin-top: var(--space-2xl);
  }

  .features-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roi-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
    --space-5xl: 4rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    position: relative;
    padding: 0;
    z-index: 1;
    /* Establish stacking context */
  }

  /* Override the horizontal desktop line to be a vertical mobile dashed line */
  .steps-grid::before {
    content: '';
    position: absolute;
    z-index: -1;
    /* Push behind cards */
    top: 60px;
    bottom: 60px;
    left: 31px;
    /* Centers the 2px line in the 64px number bubble */
    right: auto;
    width: 3px;
    height: auto;

    /* Create a dashed glowing track */
    background: transparent;
    background-image: linear-gradient(to bottom, var(--primary-light) 60%, transparent 40%);
    background-size: 3px 18px;
    background-repeat: repeat-y;
    opacity: 0.7;
    filter: drop-shadow(0 0 6px var(--primary));
  }

  .step-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 var(--space-lg);
    text-align: left;
    padding: var(--space-xl) 0;
    z-index: 2;
  }

  .step-number {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
    align-self: flex-start;
  }

  .step-icon {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.5rem;
  }

  .step-card h3 {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: var(--space-xs);
    font-size: var(--fs-md);
  }

  .step-card p {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  /* Compact ROI display */
  .roi-section .container {
    transform: scale(0.85);
    /* Shrink whole section appropriately */
    transform-origin: top center;
    margin-bottom: -15%;
    /* Trim negative ghost-space */
  }

  .roi-controls {
    gap: var(--space-md);
  }

  .roi-slider-group label {
    font-size: var(--fs-xs);
  }

  .roi-slider-value {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
  }

  .roi-results {
    padding: var(--space-lg);
  }

  .roi-result-item {
    padding: var(--space-sm) 0;
  }

  .roi-result-label {
    font-size: var(--fs-xs);
  }

  .roi-result-value {
    font-size: var(--fs-xl);
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    display: contents;
    /* Allows children to be flex items of .container */
  }

  /* Reorder Hero elements for mobile */
  .hero-badge {
    order: 1;
    margin-top: var(--space-md);
    margin-bottom: 0;
  }

  .hero h1 {
    order: 2;
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--fs-2xl);
  }

  .hero p {
    order: 3;
    margin-top: -12px;
    /* Pull it up into the H1 bounding box */
    margin-bottom: 0;
    font-size: var(--fs-sm);
    line-height: 1.5;
  }

  .hero-visual {
    order: 4;
    display: flex;
    transform: scale(0.65);
    transform-origin: top center;
    margin-top: 0;
    /* Ghost padding offset adjustment - 203px offset absorbed precisely */
    margin-bottom: -203px;
  }

  .hero-stats {
    order: 5;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
    /* Clean up border to feature the boxes */
  }

  .hero-stat-box {
    flex: 1;
    background: linear-gradient(135deg, #1A1226 0%, #0F0A1A 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    text-align: center;
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.1),
      inset 0 -2px 4px rgba(0, 0, 0, 0.5),
      0 4px 8px rgba(0, 0, 0, 0.4);
  }

  .hero-stat-value {
    font-size: var(--fs-md);
  }

  .hero-stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
    max-width: 90px;
    margin: 0 auto;
    /* Display as block for precise line breaking control via HTML */
    display: block;
  }

  .hero-actions {
    order: 6;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--space-md);
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Make buttons smaller on phone mode */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-sm);
  }

  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: var(--fs-base);
  }

  .hero-float {
    font-size: 0.6rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .hero-float--1 {
    top: 5%;
    left: 0%;
    transform: scale(0.9);
  }

  .hero-float--2 {
    bottom: 50%;
    /* Adjusted for new scale to sit nicely */
    right: -5%;
    transform: scale(0.9);
  }

  .hero-float--3 {
    top: 60%;
    left: -5%;
    transform: scale(0.9);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Specific Desktop View for Short Heights (Laptops) to keep phone above fold */
@media (min-width: 769px) and (max-height: 900px) {
  .hero {
    min-height: 100vh;
    padding-bottom: var(--space-2xl);
  }

  .hero-visual {
    margin-top: -80px;
    transform: scale(0.85);
    transform-origin: top center;
  }
}

@media (min-width: 769px) and (max-height: 750px) {
  .hero-visual {
    margin-top: -60px;
    transform: scale(0.75);
    transform-origin: top center;
  }
}

/* Specific Phone View for Header Centering */
@media (max-width: 500px) {
  .hamburger {
    margin-left: auto;
    position: relative;
    z-index: 2;
  }

  .navbar .container {
    position: relative;
    justify-content: space-between;
  }

  .logo {
    position: relative;
    left: auto;
    transform: none;
    z-index: 2;
  }

  .header-logo-wrapper {
    display: contents;
  }

  .header-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    white-space: nowrap;
  }
}