/* ============================================================
   ECOAAI Design System — Tailwind-style CSS Custom Properties
   Based on UI UX Pro Max: Trust & Authority + Conversion-Optimized
   ============================================================ */

:root {
  /* Brand Colors - GitHub Style */
  --color-primary: #2f81f7;
  --color-primary-light: #58a6ff;
  --color-accent: #a371f7;
  --color-accent-light: rgba(163, 113, 247, 0.15);
  --color-heading: #ffffff;
  
  --color-glow-blue: rgba(47, 129, 247, 0.3);
  --color-glow-purple: rgba(163, 113, 247, 0.3);
  --color-glow-pink: rgba(255, 123, 114, 0.3);

  /* Backgrounds */
  --color-bg: #010409;
  --color-surface: #0d1117;
  --color-surface-alt: #161b22;

  /* Text */
  --color-text: #c9d1d9;
  --color-text-secondary: #8b949e;
  --color-text-muted: #484f58;

  /* Tier Colors */
  --color-junior: #3fb950;
  --color-junior-light: rgba(63, 185, 80, 0.15);
  --color-middle: #2f81f7;
  --color-middle-light: rgba(47, 129, 247, 0.15);
  --color-senior: #a371f7;
  --color-senior-light: rgba(163, 113, 247, 0.15);

  /* Borders */
  --color-border: #30363d;
  --color-border-light: #21262d;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container-width: 1280px;
  --content-width: 720px;

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(1,4,9,0.04);
  --shadow-md: 0 3px 6px rgba(1,4,9,0.04);
  --shadow-lg: 0 8px 24px rgba(1,4,9,0.04);
  --shadow-xl: 0 12px 28px rgba(1,4,9,0.1);
  --shadow-glow-accent: 0 0 30px rgba(163, 113, 247, 0.3);
  --shadow-glow-primary: 0 0 30px rgba(47, 129, 247, 0.3);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   BASE RESET & DEFAULTS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  margin: 0;
}

/* 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; }
}

/* Selection */
::selection { background: var(--color-accent); color: white; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: var(--section-padding) 0;
}

.section--surface { background: var(--color-surface); }
.section--dark {
  background: var(--color-primary);
  color: white;
}
.section--gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
  color: white;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 1rem;
}
.section-heading.dark h2 { color: white; }
.section-heading p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}
.section-heading.dark p { color: rgba(255,255,255,0.7); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn--sm { font-size: 0.875rem; padding: 0.5rem 1rem; height: 36px; }
.btn--md { font-size: 0.9375rem; padding: 0.625rem 1.25rem; height: 44px; }
.btn--lg { font-size: 1rem; padding: 0.75rem 1.5rem; height: 52px; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
  color: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}
.btn--primary:active { transform: translateY(0); }

.btn--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #0284c7 100%);
  color: white;
  box-shadow: var(--shadow-glow-green);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn--accent:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

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

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card--junior { border-color: var(--color-junior-light); }
.card--middle { border-color: var(--color-middle-light); }
.card--senior { border-color: var(--color-senior-light); }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}
.badge--junior { background: var(--color-junior-light); color: var(--color-junior); }
.badge--middle { background: var(--color-middle-light); color: var(--color-middle); }
.badge--senior { background: var(--color-senior-light); color: var(--color-senior); }
.badge--accent { background: var(--color-accent-light); color: var(--color-accent); }
.badge--primary { background: var(--color-surface-alt); color: var(--color-primary-light); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-heading);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo svg { width: 32px; height: 32px; }
.site-logo span { color: var(--color-accent); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; margin: 0 auto; }
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.main-nav a:hover { color: var(--color-primary); background: var(--color-surface); }
.main-nav a.active { color: var(--color-primary); font-weight: 600; }

.nav-cta { margin-left: auto; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  background-color: #040d21;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(to bottom, #000240, #000 117%);
  clip-path: inset(0);
  margin-top: -35px;
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}
.hero::before {
  bottom: -10%;
  width: 60vw;
  height: 40vw;
  background: radial-gradient(ellipse, var(--color-glow-blue) 0%, transparent 60%);
  filter: blur(80px);
  animation: float-pulse 10s ease-in-out infinite alternate;
}
.hero::after {
  bottom: -30%;
  width: 100vw;
  height: 80vw;
  background: radial-gradient(circle, var(--color-glow-purple) 0%, transparent 60%);
  filter: blur(120px);
  animation: float-pulse 12s ease-in-out infinite alternate-reverse;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}
.badge-item svg { color: var(--color-accent); }

/* Floating engineer cards */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 5rem auto 0 auto;
  padding: 16px 16px 0 16px;
  border: 1px solid rgba(140, 147, 251, 0.4);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 -20px 60px rgba(140, 147, 251, 0.1);
  z-index: 1;
  transition: transform 0.15s ease-out;
  overflow: hidden;
}

.hero__visual-background {
  pointer-events: none;
  width: 150vw;
  height: 115%;
  position: absolute;
  bottom: 0;
  left: calc(50% - 75vw);
  mask-image: linear-gradient(transparent, #fff 25%);
  -webkit-mask-image: linear-gradient(transparent, #fff 25%);
  z-index: 0;
}
.hero__visual-background > div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.hero__visual-background > div:first-child {
  background: linear-gradient(rgba(39,50,231,0) 57.46%, rgba(95,237,131,0.2) 112.96%);
}
.hero__visual-background > div:nth-child(2) {
  mix-blend-mode: plus-lighter;
  background: linear-gradient(transparent 47.42%, rgba(14,10,162,0.3) 104.56%);
}

.hero__visual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  filter: blur(42px);
  z-index: -1;
  opacity: 0.6;
  background: radial-gradient(100% 100% at 50% 50%, rgba(154, 124, 255, 0.25) 0%, transparent 100%);
  pointer-events: none;
}

.ai-bot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-surface-alt);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(163,113,247,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}
.ai-bot img { width: 100%; height: 100%; object-fit: cover; }
.ai-bot--1 { top: 0; left: 50%; margin-left: -30px; width: 60px; height: 60px; animation: float-1 6s ease-in-out infinite; }
.ai-bot--2 { top: 30%; left: 15%; width: 50px; height: 50px; animation: float-2 6s ease-in-out infinite; animation-delay: -2s; box-shadow: var(--shadow-xl), 0 0 20px rgba(236,72,153,0.2); }
.ai-bot--3 { top: 40%; right: 15%; width: 45px; height: 45px; animation: float-3 6s ease-in-out infinite; animation-delay: -4s; box-shadow: var(--shadow-xl), 0 0 20px rgba(234,179,8,0.2); }

/* IDE Mockup */
.ide-mockup {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 1;
}
.ide-mockup__header {
  display: flex;
  align-items: center;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 0.5rem 1rem;
}
.ide-mockup__dots { display: flex; gap: 6px; margin-right: 1.5rem; }
.ide-mockup__dots span { width: 10px; height: 10px; border-radius: 50%; background: #484f58; }
.ide-mockup__dots span:nth-child(1) { background: #ff5f56; }
.ide-mockup__dots span:nth-child(2) { background: #ffbd2e; }
.ide-mockup__dots span:nth-child(3) { background: #27c93f; }
.ide-mockup__tabs { display: flex; gap: 0.5rem; }
.ide-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: #8b949e;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.ide-tab.active { background: #0d1117; color: #c9d1d9; border: 1px solid #30363d; border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; position: relative; top: 1px; }
.ide-mockup__body { display: flex; height: 350px; }
.ide-mockup__sidebar {
  width: 48px;
  background: #161b22;
  border-right: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  gap: 1.5rem;
  color: #8b949e;
}
.ide-mockup__code {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #c9d1d9;
  text-align: left;
  overflow: hidden;
}
.ide-mockup__code pre { margin: 0; }
.token-keyword { color: #ff7b72; }
.token-class { color: #d2a8ff; }
.token-string { color: #a5d6ff; }
.token-comment { color: #8b949e; }
.token-variable { color: #79c0ff; }
.token-method { color: #d2a8ff; }
.token-property { color: #c9d1d9; }

@media (max-width: 1024px) { .hero__visual { display: none; } }

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof-bar {
  background: var(--color-surface);
  padding: 1.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.social-proof-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee__item {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  opacity: 0.5;
}

/* ============================================================
   WHY PAPECLIP SECTION
   ============================================================ */
.paperclip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.paperclip-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.paperclip-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.paperclip-card:hover::before { opacity: 1; }
.paperclip-card > * { position: relative; z-index: 1; }
.paperclip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.paperclip-card__icon {
  width: 56px; height: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary-light);
  transition: background var(--transition-base), color var(--transition-base);
}
.paperclip-card:hover .paperclip-card__icon {
  background: var(--color-primary);
  color: white;
}

.paperclip-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}
.paperclip-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.stat-item { text-align: center; }
.stat-item__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item__number .prefix { color: var(--color-accent); }
.stat-item__label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.pricing-toggle__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.pricing-toggle__label.active { color: var(--color-primary); font-weight: 700; }

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base);
}
.toggle-switch.active { background: var(--color-accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring);
}
.toggle-switch.active::after { transform: translateX(28px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.pricing-card:hover::before { opacity: 1; }
.pricing-card > * { position: relative; z-index: 1; }
.pricing-card__badge { z-index: 2; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--featured {
  border-color: var(--color-accent);
  transform: scale(1.03);
  box-shadow: var(--shadow-glow-green);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__tier { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-card__price { margin-bottom: 0.5rem; }
.pricing-card__amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-heading);
  line-height: 1;
}
.pricing-card__amount .currency { font-size: 1.5rem; vertical-align: super; }
.pricing-card__period { font-size: 0.875rem; color: var(--color-text-secondary); }
.pricing-card__desc { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 1.5rem; }

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.pricing-card__features li svg { color: var(--color-accent); flex-shrink: 0; }
.pricing-card__features li.inactive svg { color: var(--color-text-muted); }
.pricing-card__features li.inactive { color: var(--color-text-muted); text-decoration: line-through; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-item__number {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0ea5e9 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.step-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}
.step-item__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: calc(33.333% - 2rem);
  right: calc(33.333% - 2rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), var(--color-accent), transparent);
  box-shadow: 0 0 10px var(--color-primary);
  opacity: 0.6;
  z-index: 1;
}
@media (max-width: 768px) {
  .steps-grid::before { display: none; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}
.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.testimonial-card.exit { transform: translateX(-100%); }

.testimonial-card__quote {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-card__quote::before { content: '"'; }
.testimonial-card__quote::after { content: '"'; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: 0.9375rem; color: var(--color-text); }
.testimonial-card__role { font-size: 0.8125rem; color: var(--color-text-secondary); }

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.testimonials-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.testimonials-dot.active { background: var(--color-primary-light); transform: scale(1.3); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--color-primary-light); }

.faq-chevron {
  width: 24px; height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   BLOG PREVIEW
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-surface);
}

.blog-card__body { padding: 1.5rem; }
.blog-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.blog-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}
.blog-card:hover .blog-card__title { color: var(--color-primary-light); }
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.blog-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-top: 1rem;
  transition: gap var(--transition-fast);
}
.blog-card:hover .blog-card__arrow { gap: 0.5rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: radial-gradient(circle at top, var(--color-glow-purple) 0%, transparent 50%),
              var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: white;
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin: 0 auto 2rem;
  position: relative;
}
.cta-section .btn--primary {
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
  height: auto;
}
.cta-section .btn--primary:hover {
  background: var(--color-surface);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-surface-alt);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-brand .site-logo { color: white; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; max-width: 30ch; }

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8125rem; margin: 0; }
.footer-bottom a { color: var(--color-accent); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-hero {
  background: var(--color-surface);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info { padding: 2rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { font-size: 0.875rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.25rem; }
.contact-info-item p { font-size: 0.9375rem; color: var(--color-text-secondary); margin: 0; }

/* ============================================================
   ANIMATIONS (CSS)
   ============================================================ */
@keyframes float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float-pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  33% { transform: scale(1.1) translate(2%, -2%); opacity: 0.7; }
  66% { transform: scale(0.9) translate(-2%, 2%); opacity: 0.6; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
}

.animate-fade-up { animation: fade-up 0.6s ease-out forwards; }
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }
.animate-scale-in { animation: scale-in 0.5s ease-out forwards; }

/* Stagger delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Motion One controlled elements start hidden */
.motion-ready { opacity: 0; }
