/* ============================================
   ProLocal.ai - Design System
   Built with: 8pt grid, Major Third scale, WCAG AA
   ============================================ */

/* -------------------- CSS Variables -------------------- */
:root {
  /* Colors - 60-30-10 */
  --color-bg: #fafafa;
  --color-bg-secondary: #f5f5f5;
  --color-text-primary: #171717;
  --color-text-secondary: #525252;
  --color-text-muted: #737373;
  
  /* Primary - Deep Navy */
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-primary-dark: #020617;
  
  /* Accent - Electric Blue */
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-accent-dark: #2563eb;
  
  /* CTA - Orange */
  --color-cta: #f97316;
  --color-cta-light: #fb923c;
  --color-cta-dark: #ea580c;
  
  /* Semantic */
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #eab308;
  
  /* Borders */
  --color-border: #e5e5e5;
  --color-border-light: #f5f5f5;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Type Scale - Major Third (1.25) */
  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;
  
  /* Spacing - 8pt Grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 72px;
  
  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* -------------------- Utility Classes -------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.sr-only,
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-secondary);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  background: var(--color-cta-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn--secondary:hover {
  border-color: var(--color-text-primary);
  background: var(--color-text-primary);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  color: var(--color-text-primary);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

/* -------------------- Header -------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
}

.logo__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.logo__dot {
  color: var(--color-accent);
}

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

.nav__link {
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

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

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform var(--transition-fast);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: var(--space-8);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav__link {
  font-size: var(--text-xl);
  font-weight: 500;
  display: block;
  padding: var(--space-2) 0;
}

.mobile-nav__cta {
  margin-top: var(--space-4);
}

/* -------------------- Hero Section -------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-24);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__badge {
  margin-bottom: var(--space-6);
}

.badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(15, 23, 42, 0.1);
  color: var(--color-primary-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: lowercase;
  font-variant: small-caps;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), var(--color-cta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.hero__trust {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
}

.hero__trust-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.hero__logos {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

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

/* Hero Visual - Phone Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(59, 130, 246, 0.3);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 32px;
  overflow: hidden;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  z-index: -1;
}

/* Call UI */
.call-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  padding-top: var(--space-10);
  background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
}

.call-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.call-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.call-indicator.calling {
  animation: pulse 1.5s infinite;
}

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

.call-time {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: #a0a0a0;
}

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

.caller-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-cta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xl);
  color: white;
  margin: 0 auto var(--space-3);
}

.caller-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: white;
  margin-bottom: var(--space-1);
}

.caller-number {
  font-size: var(--text-sm);
  color: #737373;
}

.call-transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-y: auto;
}

.transcript-line {
  font-size: var(--text-xs);
  line-height: 1.5;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.transcript-line.ai {
  background: rgba(59, 130, 246, 0.15);
  align-self: flex-start;
  max-width: 90%;
}

.transcript-line.human {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-end;
  max-width: 90%;
}

.transcript-label {
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

.transcript-line.ai .transcript-label {
  color: var(--color-accent-light);
}

.transcript-line.human .transcript-label {
  color: #a0a0a0;
}

.transcript-text {
  color: #d0d0d0;
}

.transcript-line.ai.typing .transcript-text::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.call-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding-top: var(--space-4);
}

.call-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.call-btn:hover {
  transform: scale(1.1);
}

.call-btn svg {
  width: 24px;
  height: 24px;
}

.call-btn.end {
  background: var(--color-error);
  color: white;
}

.call-btn.transfer {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Hero Background */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.gradient-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.15);
  top: -200px;
  right: -200px;
}

.gradient-orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(249, 115, 22, 0.1);
  bottom: -100px;
  left: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.gradient-orb--1 {
  animation: floatOrb 8s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.phone-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* -------------------- Sections -------------------- */
.section {
  padding: var(--space-24) 0;
}

/* Problem Section */
.problem-section {
  background: var(--color-primary);
  color: white;
  padding: var(--space-20) 0;
}

.problem-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.problem-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  color: white;
}

.problem-text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-10);
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  text-align: left;
}

.problem-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.problem-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.problem-item strong {
  display: block;
  margin-bottom: var(--space-2);
  color: white;
}

.problem-item div {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* -------------------- How It Works -------------------- */
.how-it-works {
  background: var(--color-bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: start;
}

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

.step__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-border);
  margin-bottom: var(--space-4);
}

.step__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.step__illustration {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  color: var(--color-accent);
}

.step__illustration svg {
  width: 100%;
  height: 100%;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-16);
  color: var(--color-border);
}

/* -------------------- Features -------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* -------------------- Services -------------------- */
.services {
  background: var(--color-bg);
}

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

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 2px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-lg);
  color: white;
  margin-bottom: var(--space-5);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.service-card__tagline {
  font-size: var(--text-base);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-5);
  font-style: italic;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card__features li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Stats -------------------- */
.stats {
  background: var(--color-primary);
  color: white;
}

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

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* -------------------- Pricing -------------------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: var(--space-10);
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  transition: all var(--transition-base);
}

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

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-xl);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.pricing-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.pricing-card__price {
  margin-bottom: var(--space-4);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
}

.price-period {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

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

.pricing-card__features {
  margin-bottom: var(--space-8);
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

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

.pricing-card__note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* -------------------- Testimonials -------------------- */
.testimonials {
  background: var(--color-bg-secondary);
}

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

.testimonial {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial__stars {
  color: #fbbf24;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.testimonial__quote {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

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

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

.testimonial__name {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

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

/* -------------------- CTA Section -------------------- */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__title {
  font-size: var(--text-3xl);
  color: white;
  margin-bottom: var(--space-4);
}

.cta__description {
  font-size: var(--text-lg);
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: var(--space-8);
}

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

.cta-form__input-group {
  display: flex;
  gap: var(--space-3);
}

.cta-form__input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.cta-form__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
}

.cta-form__note {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.cta__guarantee {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--color-bg-secondary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
  max-width: 280px;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
  text-align: center;
}

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

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__cta-group {
    justify-content: center;
  }
  
  .hero__trust {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero__visual {
    margin-top: var(--space-12);
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .step-connector {
    transform: rotate(90deg);
    padding: var(--space-4) 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  
  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  
  .nav,
  .header__actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-16);
    min-height: auto;
  }
  
  .hero__title {
    font-size: var(--text-4xl);
  }
  
  .hero__cta-group {
    flex-direction: column;
  }
  
  .btn--large {
    width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-form__input-group {
    flex-direction: column;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__brand {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-16) 0;
  }
  
  .stat-value {
    font-size: var(--text-3xl);
  }
  
  .phone-mockup {
    width: 260px;
    height: 520px;
  }
}

/* -------------------- FAQ -------------------- */
.faq {
  background: var(--color-bg-secondary);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-4);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.faq-answer[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: var(--text-sm);
    padding: var(--space-4);
  }
  
  .faq-answer {
    padding: 0 var(--space-4) var(--space-4);
  }
}

/* Focus states for accessibility */
.faq-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Active navigation state */
.nav__link--active,
.nav__link.active {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}

.nav__link--active::after,
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* -------------------- Scroll Animations -------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .gradient-orb, .phone-glow {
    animation: none;
  }
}

/* Service card links */
.service-card__title a {
  color: inherit;
  text-decoration: none;
}

.service-card__title a:hover {
  color: var(--color-accent);
}

.service-card__title a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.service-card:focus-within {
  border-color: var(--color-accent);
}

/* ============================================
   PHASE 2: POLISH ADDITIONS
   ============================================ */

/* Typography - Line Length Enforcement */
p {
  max-width: 65ch;
  line-height: 1.6;
}

/* Standardize card padding */
.feature-card,
.service-card,
.testimonial,
.pricing-card,
.benefit-card,
.industry-card,
.step {
  padding: var(--space-6); /* 24px standardized */
}

/* Micro-interactions - Button hover lifts */
.btn--primary,
.btn--secondary {
  transition: all 200ms ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

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

.btn--secondary:hover {
  transform: translateY(-2px);
}

/* Card hover effects */
.feature-card,
.service-card,
.testimonial {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

/* Entrance animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content > * {
  animation: fadeUp 0.6s ease forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.2s; }
.hero__content > *:nth-child(3) { animation-delay: 0.3s; }
.hero__content > *:nth-child(4) { animation-delay: 0.4s; }

.section-header > * {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.section-header.visible > * {
  opacity: 1;
}

/* Stagger animation delays for grid items */
.stagger-1 { animation-delay: 0.1s !important; }
.stagger-2 { animation-delay: 0.2s !important; }
.stagger-3 { animation-delay: 0.3s !important; }
.stagger-4 { animation-delay: 0.4s !important; }
.stagger-5 { animation-delay: 0.5s !important; }
.stagger-6 { animation-delay: 0.6s !important; }

/* Mobile header refinement */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  
  .header {
    height: var(--header-height);
  }
  
  .header__container {
    height: var(--header-height);
  }
}

/* Touch target minimums */
.btn,
.nav__link,
.mobile-nav__link,
.footer__links a {
  min-height: 44px;
  min-width: 44px;
}

/* Form loading state */
.cta-form__input-group.loading {
  opacity: 0.7;
  pointer-events: none;
}

.cta-form__input-group.loading .btn::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enhanced focus states */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip focus for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Fade up animation base */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PHASE 3: PREMIUM POLISH
   ============================================ */

/* --- Glassmorphism Effects --- */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero glass card */
.hero .glass {
  border-radius: var(--radius-xl);
}

/* --- Premium Shadows --- */
.shadow-premium {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-glow-orange {
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.3);
}

.shadow-glow-blue {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* --- Advanced Gradient Orbs --- */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.gradient-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.gradient-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Noise Texture Overlay --- */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  border-radius: inherit;
}

/* --- Premium Border Accents --- */
.border-gradient {
  position: relative;
  background: var(--color-bg);
  border: none;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* --- Scroll-triggered Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger reveal delays */
.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; }

/* --- Text Gradient --- */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Icon Pulse Animation --- */
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.icon-pulse {
  animation: iconPulse 3s ease-in-out infinite;
}

/* --- Premium Button Shine Effect --- */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-shine:hover::after {
  left: 150%;
}

/* --- Premium Card Shine --- */
.card-shine {
  position: relative;
  overflow: hidden;
}

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

.card-shine:hover::before {
  left: 100%;
}

/* --- Enhanced Mobile --- */
@media (max-width: 768px) {
  .gradient-orb {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }
  
  .gradient-orb--1 {
    top: -100px;
    left: -50px;
  }
  
  .gradient-orb--2 {
    bottom: -80px;
    right: -50px;
  }
  
  .hide-mobile {
    display: none !important;
  }
}

/* --- Premium Testimonial Card --- */
.testimonial {
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.1;
  line-height: 1;
}

/* --- Pricing Card Premium --- */
.pricing-card--featured {
  position: relative;
  transform: scale(1.02);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

/* --- Smooth Scroll Enhancement --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* --- Cursor Pointer on Cards --- */
.service-card,
.feature-card,
.pricing-card,
.testimonial {
  cursor: pointer;
}

/* --- Focus Ring Animation --- */
@keyframes focusRing {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.btn:focus-visible {
  animation: focusRing 1s ease-out;
}

/* --- Premium Section Dividers --- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border),
    transparent
  );
  margin: var(--space-16) 0;
}
