/* ============================================================
   Agency Website — Polished (Direction A blend)
   OKLCH tinted neutrals + tabular nums + Inter feature sets
   PLUS the original's visual energy: gradient hero, atmospheric
   glows, friendlier radii, color in icons, micro-interactions.
   ============================================================ */

:root {
  /* === Dark theme (default) === */
  --bg-primary:    oklch(0.165 0.008 270);
  --bg-elevated:   oklch(0.205 0.008 270);
  --bg-deeper:     oklch(0.130 0.008 270);
  --bg-tinted:     oklch(0.220 0.040 275);
  --bg-nav:        oklch(0.165 0.008 270 / 0.82);
  --bg-pill:       oklch(0.225 0.008 270);

  --text-primary:   oklch(0.96 0.004 270);
  --text-secondary: oklch(0.72 0.008 270);
  --text-tertiary:  oklch(0.58 0.008 270);
  --text-muted:     oklch(0.46 0.008 270);
  --text-feature-list: oklch(0.83 0.006 270);

  --border-subtle:  oklch(0.28 0.008 270);
  --border-strong:  oklch(0.36 0.008 270);
  --border-divider: oklch(0.25 0.008 270);
  --rule-soft:      oklch(0.24 0.008 270);

  /* Brand identity colors — indigo + electric blue. */
  --accent:         oklch(0.76 0.17 280);   /* indigo-violet */
  --accent-cyan:    oklch(0.74 0.16 240);   /* electric blue (kept var name for compatibility) */
  --accent-soft:    oklch(0.28 0.06 275);
  --accent-line:    oklch(0.55 0.13 275);
  --accent-ink:     oklch(0.165 0.008 270);

  --accent-gradient:   linear-gradient(135deg, var(--accent), var(--accent-cyan));
  --hero-text-grad-from: oklch(0.98 0.004 270);
  --hero-text-grad-to:   oklch(0.70 0.008 270);

  /* Atmospheric — dark theme voice. */
  --hero-haze:       oklch(0.76 0.17 280 / 0.16);
  --cta-haze:        oklch(0.74 0.16 240 / 0.14);
  --logo-dot-glow:   oklch(0.76 0.17 280 / 0.55);
  --pill-dot-glow:   var(--accent);
  --featured-ring:   oklch(0.76 0.17 280 / 0.28);
  --featured-shadow: oklch(0.76 0.17 280 / 0.12);
  --icon-bg:         oklch(0.74 0.16 240 / 0.12);
  --icon-border:     oklch(0.74 0.16 240 / 0.28);

  --btn-primary-bg:   oklch(0.96 0.004 270);
  --btn-primary-fg:   oklch(0.165 0.008 270);
  --btn-primary-hover-bg: oklch(1 0 0);

  --container-max:    1120px;
  --container-narrow: 760px;
  --container-pad:    24px;
  --radius-card: 10px;
  --radius-btn:  8px;
  --radius-pill: 999px;
  --transition-fast:   140ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-medium: 220ms cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* === Light theme overrides === */
[data-theme="light"] {
  --bg-primary:    oklch(0.995 0.002 270);
  --bg-elevated:   oklch(0.995 0.002 270);
  --bg-deeper:     oklch(0.965 0.006 270);
  --bg-tinted:     oklch(0.97 0.030 275);
  --bg-nav:        oklch(0.995 0.002 270 / 0.85);
  --bg-pill:       oklch(0.955 0.006 270);

  --text-primary:   oklch(0.20 0.012 270);
  --text-secondary: oklch(0.42 0.010 270);
  --text-tertiary:  oklch(0.58 0.008 270);
  --text-muted:     oklch(0.68 0.008 270);
  --text-feature-list: oklch(0.34 0.010 270);

  --border-subtle:  oklch(0.90 0.006 270);
  --border-strong:  oklch(0.78 0.008 270);
  --border-divider: oklch(0.92 0.006 270);
  --rule-soft:      oklch(0.94 0.005 270);

  --accent:         oklch(0.54 0.18 280);   /* deeper indigo-violet */
  --accent-cyan:    oklch(0.54 0.16 240);   /* deeper blue */
  --accent-soft:    oklch(0.96 0.040 275);
  --accent-line:    oklch(0.78 0.10 275);
  --accent-ink:     oklch(0.995 0.002 270);

  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  --hero-text-grad-from: oklch(0.20 0.012 270);
  --hero-text-grad-to:   oklch(0.55 0.010 270);

  /* No glows on paper. */
  --hero-haze:       transparent;
  --cta-haze:        transparent;
  --logo-dot-glow:   transparent;
  --pill-dot-glow:   transparent;
  --featured-ring:   transparent;
  --featured-shadow: transparent;
  --icon-bg:         oklch(0.54 0.16 240 / 0.08);
  --icon-border:     oklch(0.54 0.16 240 / 0.28);

  --btn-primary-bg:   oklch(0.20 0.012 270);
  --btn-primary-fg:   oklch(0.995 0.002 270);
  --btn-primary-hover-bg: oklch(0.27 0.012 270);

  color-scheme: light;
}

html[data-theme-transition] body,
html[data-theme-transition] nav,
html[data-theme-transition] .feature-card,
html[data-theme-transition] .price-card,
html[data-theme-transition] .btn,
html[data-theme-transition] .hero-pill {
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.max-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border-divider);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--logo-dot-glow);
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text-primary); }
.nav-cta {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg) !important;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-weight: 600 !important;
  letter-spacing: -0.005em;
}
.nav-cta:hover { background: var(--btn-primary-hover-bg); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-btn);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  padding: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  background: var(--bg-pill);
}
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hero */
.hero {
  padding: clamp(96px, 13vw, 144px) 0 clamp(80px, 11vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 880px;
  height: 440px;
  background: radial-gradient(circle, var(--hero-haze) 0%, transparent 62%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 30px;
}
.hero-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--pill-dot-glow);
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 auto 24px;
  max-width: 18ch;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--hero-text-grad-from) 0%, var(--hero-text-grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 auto 34px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-pill);
  border-color: var(--text-tertiary);
}

/* Sections */
section { padding: clamp(80px, 9.5vw, 116px) 0; }
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 24ch;
}
.section-header.center .section-title {
  margin-left: auto;
  margin-right: auto;
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.6;
  text-wrap: pretty;
}
.section-header { margin-bottom: clamp(48px, 6vw, 72px); }
.section-header.center { text-align: center; }
.section-header.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards — warmer treatment, colored icons, hover lift */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  transition: border-color var(--transition-medium), transform var(--transition-medium), background-color var(--transition-medium);
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--text-primary);
  letter-spacing: -0.014em;
  line-height: 1.3;
  text-wrap: balance;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Pricing */
.services { background: var(--bg-deeper); }
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-medium);
}
.price-card:hover { border-color: var(--border-strong); }
.price-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.price-tag {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.028em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-tag .per {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-left: 2px;
}
.price-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 14px 0 22px;
  min-height: 36px;
  line-height: 1.55;
}
.price-features {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
  border-top: 1px solid var(--rule-soft);
}
.price-features li {
  font-size: 13.5px;
  color: var(--text-feature-list);
  padding: 9px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1px solid var(--rule-soft);
  line-height: 1.45;
}
.price-features li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a5b4fc'%3E%3Cpath d='M13.485 1.515a1.5 1.5 0 0 1 0 2.121L6.5 10.621 2.515 6.636a1.5 1.5 0 1 1 2.121-2.121L6.5 6.379l5.364-5.364a1.5 1.5 0 0 1 2.121 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
[data-theme="light"] .price-features li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234f46e5'%3E%3Cpath d='M13.485 1.515a1.5 1.5 0 0 1 0 2.121L6.5 10.621 2.515 6.636a1.5 1.5 0 1 1 2.121-2.121L6.5 6.379l5.364-5.364a1.5 1.5 0 0 1 2.121 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Reasons */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px 44px;
}
.reason {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.reason-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.reason h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: balance;
}
.reason p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Compare */
.compare { background: var(--bg-deeper); }

/* CTA — bring the bottom glow back in dark mode */
.cta-section {
  padding: clamp(80px, 9.5vw, 116px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, var(--cta-haze) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 auto 16px;
  line-height: 1.08;
  max-width: 22ch;
  text-wrap: balance;
}
.cta-section p {
  color: var(--text-secondary);
  margin: 0 auto 28px;
  font-size: 16px;
  max-width: 56ch;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-divider);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-inner small {
  color: var(--text-muted);
  font-size: 12.5px;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: var(--text-tertiary);
  font-size: 12.5px;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text-primary); }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-btn);
}

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

/* Mobile */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta):not(.theme-toggle) { display: none; }
}
