/* ============================================
   ELEVATE+ — Design System & Styles
   Apple-inspired minimalist dark theme
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --color-bg: #000000;
  --color-bg-elevated: #0a0a0a;
  --color-bg-card: #111111;
  --color-bg-card-hover: #1a1a1a;
  --color-surface: #1c1c1e;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-text-primary: #f5f5f7;
  --color-text-secondary: #b8b8bd;
  --color-text-tertiary: #86868b;

  /* Brand Gradient */
  --gradient-brand: linear-gradient(135deg, #FFA726, #EC407A, #AD1457);
  --gradient-brand-hover: linear-gradient(135deg, #FFB74D, #F06292, #C2185B);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(255, 167, 38, 0.06), rgba(236, 64, 122, 0.06), rgba(173, 20, 87, 0.06));
  --gradient-glow: radial-gradient(ellipse at center, rgba(236, 64, 122, 0.2) 0%, transparent 70%);

  --color-accent-orange: #FFA726;
  --color-accent-pink: #EC407A;
  --color-accent-deep: #AD1457;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --nav-height: 52px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;

  /* Scroll progress */
  --scroll-progress: 0;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 10001;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all var(--duration-normal) var(--ease-out-quart);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background-color: rgba(0, 0, 0, 0.72);
}

.nav.nav-solid {
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
}

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

.nav-cta {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1.25rem;
  border-radius: 980px;
  background: var(--gradient-brand);
  color: white !important;
  -webkit-text-fill-color: white !important;
  transition: all var(--duration-fast) ease;
  display: inline-block;
}

.nav-cta:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.nav-cta-white {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f !important;
}

.nav-cta-white:hover {
  background: #ffffff !important;
}

/* Mobile Menu */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 10002;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: all var(--duration-normal) var(--ease-out-expo);
  transform-origin: center;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Typography --- */
.headline-hero {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.headline-xl {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.headline-lg {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.headline-md {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.headline-sm {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.body-lg {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--color-text-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.body-md {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.body-sm {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
}

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

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-compact {
  padding: var(--space-3xl) 0;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-glow {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: heroContentIn 1.2s var(--ease-out-expo) 0.2s forwards;
}

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

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  border-radius: 20px;
  animation: heroLogoIn 1.2s var(--ease-out-expo) 0.1s forwards;
  opacity: 0;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.hero-title {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: heroTitleIn 1.2s var(--ease-out-expo) 0.4s forwards;
}

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

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  opacity: 0;
  animation: heroSubtitleIn 1.2s var(--ease-out-expo) 0.6s forwards;
}

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

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroCTAIn 1.2s var(--ease-out-expo) 0.8s forwards;
}

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

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  animation: scrollIndicatorIn 1s var(--ease-out-expo) 1.5s forwards;
}

@keyframes scrollIndicatorIn {
  from { opacity: 0; }
  to { opacity: 0.5; }
}

.scroll-indicator.hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--color-text-tertiary);
  border-bottom: 1.5px solid var(--color-text-tertiary);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  padding: 0.5rem 1.5rem;
  border-radius: 980px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(236, 64, 122, 0.3);
}

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

.btn-white {
  background: #f5f5f7;
  color: #1d1d1f;
  border: none;
}

.btn-white:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-white:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent-pink);
  padding: 0.5rem 0;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--color-accent-orange);
}

.btn-ghost svg,
.btn-ghost .arrow {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn-ghost:hover svg,
.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

/* --- Feature Sections --- */
.feature-section {
  position: relative;
}

.feature-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.feature-header {
  max-width: 700px;
  margin-bottom: var(--space-3xl);
}

.feature-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.feature-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  display: block;
}

.feature-title {
  margin-bottom: var(--space-md);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
}

.card-glass {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 rgba(255, 120, 80, 0);
  transition: all 0.5s var(--ease-out-expo);
}

.card-glass:hover {
  background: #0D0D0D;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(255, 120, 80, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon svg {
  transition: transform 0.4s var(--ease-out-expo);
}

/* --- Icon hover animations per type --- */
.icon-camera:hover .card-icon svg {
  animation: iconShutter 0.5s var(--ease-out-expo);
}

@keyframes iconShutter {
  0% { transform: scale(1); }
  30% { transform: scale(0.8); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.icon-mic:hover .card-icon svg {
  animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

.icon-scan:hover .card-icon svg {
  animation: iconScan 0.6s var(--ease-out-expo);
}

@keyframes iconScan {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.icon-heart:hover .card-icon svg {
  animation: iconHeartbeat 0.6s ease-in-out;
}

@keyframes iconHeartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

.icon-calendar:hover .card-icon svg {
  animation: iconFlip 0.5s var(--ease-out-expo);
}

@keyframes iconFlip {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

.icon-activity:hover .card-icon svg {
  animation: iconActivity 0.5s linear;
}

@keyframes iconActivity {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.15); }
}

.icon-clock:hover .card-icon svg {
  animation: iconSpin 0.6s var(--ease-out-expo);
}

@keyframes iconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.icon-shield:hover .card-icon svg {
  animation: iconShield 0.5s var(--ease-out-expo);
}

@keyframes iconShield {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(-5deg); }
}

.icon-chat:hover .card-icon svg {
  animation: iconBounce 0.5s var(--ease-out-expo);
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(2px); }
}

/* --- Scan line overlay for barcode card --- */
.icon-scan .card-icon {
  position: relative;
  overflow: hidden;
}

.icon-scan .card-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: none;
}

.icon-scan:hover .card-icon::after {
  animation: scanLine 0.8s var(--ease-out-expo) forwards;
  opacity: 1;
}

@keyframes scanLine {
  from { left: 0%; }
  to { left: 100%; }
}

/* --- Mic wave rings --- */
.icon-mic .card-icon {
  position: relative;
}

.icon-mic:hover .card-icon::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  animation: micWave 0.8s var(--ease-out-expo) forwards;
  pointer-events: none;
}

@keyframes micWave {
  from { transform: scale(0.8); opacity: 0.6; }
  to { transform: scale(1.8); opacity: 0; }
}

.card-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* Card glow — whisper, not shout */
.card-glow {
  position: relative;
}

/* --- Split Section (Image + Text) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.split-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-image img {
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 400px;
}

.split-image-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--gradient-glow);
  filter: blur(60px);
  border-radius: 50%;
  opacity: 0.4;
  z-index: -1;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --- App Showcase --- */
.app-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

.app-mockup {
  position: relative;
  width: 280px;
  height: auto;
}

.app-mockup img {
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(236, 64, 122, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* --- Stats Section --- */
.stats-section {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg) 0;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* --- Testimonial / Quote --- */
.quote-section {
  text-align: center;
}

.quote-text {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  font-style: italic;
  color: var(--color-text-secondary);
}

.quote-attribution {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(236, 64, 122, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.download-badges {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.download-badge {
  height: 50px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.download-badge:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.download-badge-icon {
  font-size: 1.5rem;
}

.download-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-badge-text small {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-badge-text strong {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--color-text-secondary);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ============================================
   ANIMATION SYSTEM
   ============================================ */

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-blur.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Staggered Children --- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* --- Parallax Layer --- */
.parallax-layer {
  will-change: transform;
}

/* --- Gradient Animation --- */
.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Pulse Glow --- */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(236, 64, 122, 0.2)); }
  50% { filter: brightness(1.05) drop-shadow(0 0 40px rgba(236, 64, 122, 0.35)); }
}

/* --- Text Character Reveal --- */
.char-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
}

.char-reveal.active .char {
  opacity: 1;
  transform: translateY(0);
}

/* --- Line Reveal --- */
.line-reveal-item {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-out-expo);
}

.line-reveal.active .line-reveal-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0s;
}

.line-reveal.active .line-reveal-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.35s;
}

/* --- Word Reveal --- */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo),
              filter 0.7s var(--ease-out-expo);
}

.word-reveal.active .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- Line Draw --- */
.line-draw {
  width: 0;
  height: 1px;
  background: var(--gradient-brand);
  transition: width 1.2s var(--ease-out-expo);
}

.line-draw.active {
  width: 100%;
}

/* --- Scale on Scroll --- */
.scale-scroll {
  transition: transform 0.1s linear;
}

/* ============================================
   PARTNERSHIP PAGE SPECIFIC
   ============================================ */

.tier-card {
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: visible;
}

.tier-card.featured {
  border-color: rgba(255, 255, 255, 0.12);
}

.tier-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  padding: 4px 16px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}

.tier-percentage {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.tier-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.tier-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.55;
}

.tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.tier-features li {
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-check {
  color: #ffffff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin: 0 auto var(--space-md);
}

.step-title {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

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

/* ============================================
   CALCULATOR PAGE SPECIFIC
   ============================================ */

.calc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
}

.calc-input-group {
  margin-bottom: var(--space-xl);
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.calc-label-text {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
}

.calc-label-value {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--color-surface);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
  transition: transform var(--duration-fast) ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 3px solid var(--color-bg);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Results */
.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.calc-result-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: var(--space-lg);
  text-align: center;
}

.calc-result-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.calc-result-label {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* Chart */
.calc-chart {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-top: var(--space-md);
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  min-height: 4px;
  background: #ffffff;
  border-radius: 4px 4px 0 0;
  transition: height 0.8s var(--ease-out-expo);
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  filter: brightness(1.2);
}

.chart-bar-label {
  font-size: 0.625rem;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.chart-bar-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.chart-bar:hover .chart-bar-value {
  opacity: 1;
}

/* Tier Selector in Calculator */
.tier-selector {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.tier-selector-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.tier-selector-btn:hover {
  border-color: var(--color-border-hover);
}

.tier-selector-btn.active {
  background: #ffffff;
  border-color: transparent;
  color: #000000;
}

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

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    gap: var(--space-2xl);
  }

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

@media (max-width: 768px) {
  :root {
    --space-5xl: 6rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 10001;
  }

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

  .nav-links a {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .split-reverse {
    direction: ltr;
  }

  .split-image {
    order: -1;
  }

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

  .feature-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .calc-results {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  :root {
    --space-5xl: 4rem;
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .download-badges {
    flex-direction: column;
    align-items: center;
  }

  .tier-selector {
    flex-direction: column;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.z-1 { z-index: 1; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Details/Summary dark theme */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  color: var(--color-text-tertiary);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

details[open] summary::after {
  content: '\2212';
}

/* Smooth fade for stagger-children on mobile (reduce stagger) */
@media (max-width: 768px) {
  .stagger-children.active > *:nth-child(4) { transition-delay: 0.15s; }
  .stagger-children.active > *:nth-child(5) { transition-delay: 0.2s; }
  .stagger-children.active > *:nth-child(6) { transition-delay: 0.25s; }
}

/* ============================================
   MICRO-INTERACTIONS & ENHANCED MOTION
   ============================================ */

/* --- Nav link hover underline --- */
.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

/* --- 3D Card Tilt on Hover --- */
.card-tilt {
  transform-style: preserve-3d;
  perspective: 800px;
}


/* --- Image hover zoom --- */
.split-image img {
  transition: transform 0.6s var(--ease-out-expo);
}

.split-image:hover img {
  transform: scale(1.03);
}

/* --- Feature label slide-in --- */
.feature-label {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}

.reveal.active .feature-label,
.reveal-left.active .feature-label,
.reveal-right.active .feature-label,
.active > .feature-label {
  opacity: 1;
  transform: translateX(0);
}

.split-text .feature-title,
.split-text .cta-title {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-out-expo);
}

.reveal-left.active .feature-title,
.reveal-right.active .feature-title,
.reveal.active .feature-title,
.reveal.active .cta-title {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.1s;
}

/* --- Body text line-by-line reveal --- */
.split-text .body-lg,
.split-text .body-md,
.split-text .btn-ghost,
.split-text .cta-subtitle {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-out-expo);
}

.reveal-left.active .body-lg,
.reveal-right.active .body-lg,
.reveal.active .body-lg {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.2s;
}

.reveal.active .cta-subtitle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.3s;
}

.split-text .download-badges {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(5px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-out-expo);
}

.reveal.active .download-badges {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.5s;
}

.reveal-left.active .body-md,
.reveal-right.active .body-md,
.reveal.active .body-md {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.4s;
}

.reveal-left.active .btn-ghost,
.reveal-right.active .btn-ghost {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.55s;
}

/* --- Ghost button arrow bounce on hover --- */
.btn-ghost:hover .arrow {
  animation: arrowBounce 0.6s var(--ease-out-expo);
}

@keyframes arrowBounce {
  0% { transform: translateX(0); }
  50% { transform: translateX(8px); }
  100% { transform: translateX(4px); }
}

/* --- Stat number shine effect --- */
.stat-number {
  position: relative;
  overflow: hidden;
}

.stat-number::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: none;
}

.stagger-children.active .stat-number::after {
  animation: statShine 1.5s var(--ease-out-expo) 2s forwards;
}

@keyframes statShine {
  from { left: -100%; }
  to { left: 200%; }
}

/* --- Quote subtle scale --- */
.quote-text {
  transition: transform 0.6s var(--ease-out-expo);
}

.reveal.active .quote-text {
  animation: quoteReveal 1s var(--ease-out-expo) forwards;
}

@keyframes quoteReveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Download badge glow on hover --- */
.download-badge:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

/* --- Step card hover lift --- */
.step {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

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

.step::before {
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) ease;
}

.step:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

/* --- Tier card hover scale --- */
.tier-card {
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.tier-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.tier-card .tier-percentage {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.tier-card:hover .tier-percentage {
  transform: scale(1.05);
}

/* --- Smooth section divider animation --- */
.feature-section::before {
  width: 0;
  transition: width 1.2s var(--ease-out-expo);
}

.feature-section.section-line-active::before {
  width: 80%;
}

/* --- CTA glow pulse --- */
.cta-glow {
  animation: ctaGlowPulse 4s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* --- Scroll-linked image depth --- */
.split-image-glow {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.active .split-image-glow {
  animation: glowFadeIn 1.2s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

@keyframes glowFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 0.4; transform: scale(1); }
}

/* Selection color */
::selection {
  background: rgba(236, 64, 122, 0.3);
  color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}
