/**
 * Ferni Story Page - Premium Edition
 * 
 * Design Reference: Apple, Stripe, Linear, Vercel, Notion
 * 
 * Key Principles:
 * 1. DEPTH - Layered backgrounds, shadows, glows
 * 2. MOTION - Purposeful, delightful animations
 * 3. TYPOGRAPHY - Bold, confident, perfectly spaced
 * 4. WHITESPACE - Let elements breathe
 * 5. POLISH - Every pixel intentional
 */

/* ============================================
   CSS CUSTOM PROPERTIES - PREMIUM
   ============================================ */

/* Import design tokens - SINGLE SOURCE OF TRUTH */
@import './_tokens.css';

:root {
  /* Page-specific overrides - extend tokens, don't duplicate */
  --color-bg-warm: var(--color-bg-secondary);
  --color-bg-dark: var(--color-bg-dark);
  --color-bg-darker: var(--color-bg-dark);
  --color-text-light: var(--color-bg-secondary);
  
  /* Brand Colors - Use design system values */
  --color-ferni-light: var(--color-ferni);
  --color-ferni-dark: var(--color-ferni-secondary);
  --color-ferni-glow: rgba(74, 103, 65, 0.15);
  
  /* Gradients - Reference token variables */
  --gradient-hero: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-dark) 100%);
  --gradient-ferni: linear-gradient(135deg, var(--color-ferni) 0%, var(--color-ferni-secondary) 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-ferni-glow), transparent);
  --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  
  /* Shadows - Layered */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(74, 124, 89, 0.2);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
  
  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  
  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;
  
  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}

/* ============================================
   BASE RESET - PREMIUM
   ============================================ */

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

html {
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

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

/* ============================================
   NAVIGATION - Premium Glassmorphism
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) var(--space-6);
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav.is-scrolled {
  background: rgba(250, 249, 247, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-ferni);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.nav__logo:hover .nav__logo-mark {
  transform: scale(1.05);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-ferni);
  border-radius: var(--radius-xs);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

/* CTA Button in Nav */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-spring);
}

.nav__cta:hover {
  background: var(--color-ferni);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   BUTTONS - Premium with Micro-interactions
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: left 0.5s ease;
}

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

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.btn:hover svg {
  transform: translateX(3px);
}

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

/* Primary Button */
.btn--primary {
  background: var(--gradient-ferni);
  color: white;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn--primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

/* Secondary Button */
.btn--secondary {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--color-ferni);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Large Button */
.btn--lg {
  padding: 20px 40px;
  font-size: var(--text-lg);
}

/* ============================================
   SECTION BASE - Premium Layout
   ============================================ */

.section {
  position: relative;
  padding: var(--space-24) var(--space-6);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-32) var(--space-12);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-40) var(--space-16);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* Section Headers */
.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--color-ferni-glow);
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ferni);
  margin-bottom: var(--space-6);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  background: linear-gradient(180deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   HERO SECTION - Premium
   ============================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Ambient background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px 8px 8px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.1s forwards;
}

.hero__badge-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient-ferni);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__badge-icon svg {
  width: 12px;
  height: 12px;
  color: white;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 140px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__headline-line {
  display: block;
}

.hero__headline-accent {
  background: var(--gradient-ferni);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Animated underline on accent */
.hero__headline-accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.08em;
  background: var(--gradient-ferni);
  border-radius: 0.04em;
  transform: scaleX(0);
  transform-origin: left;
  animation: scaleIn 0.6s var(--ease-out-expo) 1s forwards;
}

@keyframes scaleIn {
  to { transform: scaleX(1); }
}

.hero__subhead {
  font-family: var(--font-body);
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }
}

/* Trust Row */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.hero__trust-item strong {
  font-weight: 700;
  color: var(--color-text);
}

.hero__trust-divider {
  width: 4px;
  height: 4px;
  background: var(--color-border);
  border-radius: 50%;
}

/* ============================================
   PRODUCT SHOWCASE - Device Mockup
   ============================================ */

.showcase {
  position: relative;
  padding: var(--space-20) 0;
}

.showcase__device {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.6s forwards;
}

/* Phone mockup frame */
.showcase__phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: 12px;
  background: var(--color-bg-dark);
  border-radius: 40px;
  box-shadow: 
    var(--shadow-xl),
    inset 0 0 0 2px rgba(255,255,255,0.1),
    0 0 100px rgba(74, 124, 89, 0.15);
}

@media (min-width: 768px) {
  .showcase__phone {
    width: 340px;
    padding: 14px;
    border-radius: 48px;
  }
}

.showcase__phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--color-bg-dark);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.showcase__phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-bg-dark);
  aspect-ratio: 9/19.5;
}

@media (min-width: 768px) {
  .showcase__phone-screen {
    border-radius: 34px;
  }
}

/* App UI inside phone */
.showcase__app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-4);
  padding-top: var(--space-10);
}

.showcase__app-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.showcase__app-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-3);
  background: var(--gradient-ferni);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-lg);
}

.showcase__app-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-1);
}

.showcase__app-status {
  font-size: var(--text-sm);
  color: var(--color-ferni-light);
}

.showcase__app-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4);
}

.showcase__app-bubble {
  background: rgba(255,255,255,0.08);
  border-radius: 20px 20px 20px 4px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.showcase__app-bubble p {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.showcase__app-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  margin-top: auto;
}

.showcase__app-input span {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-dark-text-muted, var(--color-text-muted));
}

.showcase__app-input-btn {
  width: 36px;
  height: 36px;
  background: var(--gradient-ferni);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__app-input-btn svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* Floating elements around phone */
.showcase__float {
  position: absolute;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  opacity: 0;
  animation: floatIn 0.8s var(--ease-out-expo) forwards;
}

.showcase__float--1 {
  top: 10%;
  left: 5%;
  animation-delay: 0.8s;
}

.showcase__float--2 {
  top: 30%;
  right: 5%;
  animation-delay: 0.9s;
}

.showcase__float--3 {
  bottom: 20%;
  left: 8%;
  animation-delay: 1s;
}

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

.showcase__float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.showcase__float-icon svg {
  width: 20px;
  height: 20px;
}

.showcase__float-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.showcase__float-subtext {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
}

/* ============================================
   LOGOS BAR - Social Proof
   ============================================ */

.logos {
  padding: var(--space-16) var(--space-6);
  text-align: center;
}

.logos__title {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.logos__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  opacity: 0.5;
  filter: grayscale(1);
  transition: all var(--duration-slow) ease;
}

.logos__grid:hover {
  opacity: 0.8;
  filter: grayscale(0.5);
}

.logos__item {
  height: 24px;
}

@media (min-width: 768px) {
  .logos__item {
    height: 28px;
  }
}

/* ============================================
   PROMISE SECTION - Emotional Hook
   ============================================ */

.promise {
  position: relative;
  padding: var(--space-32) var(--space-6);
  background: var(--color-bg-elevated);
  overflow: hidden;
}

/* Decorative quote marks */
.promise::before {
  content: '"';
  position: absolute;
  top: var(--space-16);
  left: var(--space-8);
  font-family: Georgia, serif;
  font-size: var(--text-6xl);
  line-height: 1;
  color: var(--color-border);
  opacity: 0.5;
  pointer-events: none;
}

.promise__content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.promise__quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.promise__quote-highlight {
  background: linear-gradient(180deg, transparent 60%, var(--color-ferni-glow) 60%);
  padding: 0 4px;
}

.promise__author {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.promise__author strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================
   TEAM SECTION - Premium Cards
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.team-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-spring);
  overflow: hidden;
}

/* Gradient overlay on hover */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--card-color, var(--color-ferni-glow)) 150%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

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

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%; /* Circle, not rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  background: transparent; /* Ensure no background */
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.team-card:hover .team-card__avatar {
  transform: scale(1.05);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ferni);
  margin-bottom: var(--space-4);
}

.team-card__bio {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
}

.feature {
  text-align: center;
  padding: var(--space-8);
}

.feature__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--color-ferni-glow);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-spring);
}

.feature:hover .feature__icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: var(--shadow-glow);
}

.feature__icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-ferni);
}

.feature__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.feature__description {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ============================================
   TESTIMONIALS - Premium Cards
   ============================================ */

.testimonials {
  background: var(--color-bg-warm);
}

.testimonials-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial {
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) ease;
}

.testimonial:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial--featured {
  grid-column: 1 / -1;
  background: var(--gradient-ferni);
  border: none;
  color: white;
}

.testimonial--featured .testimonial__quote {
  font-size: clamp(18px, 3vw, 24px);
}

.testimonial--featured .testimonial__role {
  color: rgba(255, 255, 255, 0.7);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.testimonial__stars svg {
  width: 16px;
  height: 16px;
  color: var(--color-warning);
  fill: var(--color-warning);
}

.testimonial--featured .testimonial__stars svg {
  color: white;
  fill: white;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.testimonial--featured .testimonial__avatar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.testimonial__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ============================================
   PRICING - Premium Cards
   ============================================ */

.pricing {
  background: var(--color-bg-elevated);
}

.pricing-grid {
  display: grid;
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.pricing-card {
  position: relative;
  padding: var(--space-10);
  background: var(--color-bg);
  border-radius: 28px;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--duration-normal) ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  background: var(--gradient-dark);
  color: white;
  border: none;
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .pricing-card--featured {
    transform: scale(1.05);
    z-index: 1;
  }
}

.pricing-card--featured:hover {
  transform: scale(1.07);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: var(--gradient-ferni);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.pricing-card__price span {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.pricing-card--featured .pricing-card__price span {
  color: var(--color-dark-text-secondary, var(--color-bg-secondary));
}

.pricing-card__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.pricing-card--featured .pricing-card__description {
  color: var(--color-dark-text-secondary, var(--color-bg-secondary));
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card--featured .pricing-card__features li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features svg {
  width: 20px;
  height: 20px;
  color: var(--color-ferni);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card--featured .pricing-card__features svg {
  color: var(--color-ferni-light);
}

.pricing-card__cta {
  width: 100%;
}

.pricing-card--featured .pricing-card__cta {
  background: white;
  color: var(--color-text);
}

.pricing-card--featured .pricing-card__cta:hover {
  background: var(--color-bg-secondary);
}

/* ============================================
   FINAL CTA - Dark Premium
   ============================================ */

.final-cta {
  position: relative;
  background: var(--gradient-dark);
  color: white;
  text-align: center;
  padding: var(--space-32) var(--space-6);
  overflow: hidden;
}

/* Ambient glow */
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(74, 124, 89, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}

.final-cta__subhead {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--color-dark-text-secondary, var(--color-bg-secondary));
  margin-bottom: var(--space-10);
}

.final-cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .final-cta__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.final-cta .btn--primary {
  background: white;
  color: var(--color-text);
}

.final-cta .btn--primary:hover {
  background: var(--color-bg-secondary);
  box-shadow: var(--shadow-xl);
}

.final-cta .btn--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.final-cta .btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   FOOTER - Premium
   ============================================ */

.footer {
  padding: var(--space-20) var(--space-6) var(--space-10);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-16);
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.footer__column-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
}

.footer__legal a:hover {
  color: var(--color-text);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

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

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

