:root {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-dim: rgba(79, 70, 229, 0.1);
  --accent-glow: rgba(79, 70, 229, 0.25);
  --accent-text: #ffffff;
  --icon-color: var(--accent);
  --heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #d1d5db;
  --text-primary: #0f172a;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --bg-abstract: 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='%234F46E5' 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");
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-elevated: #111827;
  --bg-card: #1e293b;
  --border: #334155;
  --border-light: #475569;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --nav-bg: rgba(15, 23, 42, 0.72);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --accent-dim: rgba(79, 70, 229, 0.15);
  --accent-glow: rgba(79, 70, 229, 0.35);
  --icon-color: #818cf8;
  --bg-abstract: 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='%23818CF8' 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");
}

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

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

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

body {
  font-family: var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, var(--accent-dim) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--accent-dim) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    var(--bg-abstract);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

[data-theme="dark"] body::after {
  opacity: 0.05;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 8px;
}

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  z-index: 1000;
  padding: 10px 20px;
  transition: all var(--transition);
  border-radius: 100px;
  background: transparent;
  border: 1px solid transparent;
  overflow: visible;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  padding: 8px 20px;
  top: 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo img {
  height: 112px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  background: var(--bg-elevated);
  padding: 7px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: var(--accent-text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 13px;
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  filter: brightness(1.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: var(--card-shadow);
  white-space: nowrap;
}

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

.btn-primary svg,
.btn-secondary svg,
.nav-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn-primary:hover svg,
.nav-cta:hover svg {
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--card-shadow);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel {
  width: 75vw;
  max-width: 300px;
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 28px 40px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-y: auto;
}

.mobile-menu.open .mobile-panel {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 15px 0;
  width: 100%;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color var(--transition);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

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

.mobile-menu a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: var(--accent-text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  margin-top: 20px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
  box-shadow: var(--card-shadow);
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}

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

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 8px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  width: 100%;
}

.hero-stat-value {
  font-family: var(--heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services,
.about,
.tools,
.cta-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services,
.about,
.proof,
.blog-teaser,
.cta-section {
  padding: 120px 0;
}

.services,
.about,
.tools,
.cta-section,
.blog-post-hero {
  background: var(--bg-elevated);
}

.services-header,
.proof-header {
  margin-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card,
.about-value,
.proof-card,
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.service-card,
.proof-card {
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.proof-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before,
.proof-card:hover::before {
  opacity: 1;
}

.service-card:hover,
.about-value:hover,
.proof-card:hover,
.blog-card:hover {
  border-color: var(--border-light);
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 16px;
  margin-bottom: 28px;
  color: var(--icon-color);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3,
.proof-card h3,
.about-value h4,
.blog-card h3 {
  font-family: var(--heading);
  color: var(--text-primary);
  font-weight: 600;
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.proof-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.about-value h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p,
.about-value p,
.proof-card p,
.blog-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.72;
}

.service-tags,
.proof-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-tag,
.proof-card-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.service-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.proof-card-metric {
  font-family: var(--heading);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.proof-card-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.proof-card-tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.custom-cta {
  padding: 88px 0;
}

.custom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 64px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--accent-dim));
  border: 1px solid var(--border);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}

.custom-cta-inner::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.custom-cta-content h3 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.custom-cta-content h3 em,
.cta-box h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 8px;
}

.custom-cta-content p,
.cta-box p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  margin-top: 60px;
}

.about-text p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 22px;
}

.about-text p:first-of-type {
  font-size: 22px;
  color: var(--text-primary);
  font-weight: 500;
}

.about-values {
  display: grid;
  gap: 20px;
}

.about-value {
  padding: 30px;
}

.tools {
  padding: 90px 0;
  overflow: hidden;
}

.tools-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 44px;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-elevated), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-elevated), transparent);
}

.marquee {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-item {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-item .sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.blog-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  padding: 12px 24px;
  background: var(--accent-dim);
  border-radius: 100px;
}

.blog-link:hover {
  gap: 12px;
  background: var(--accent);
  color: var(--accent-text);
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  width: 100%;
  height: 230px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--accent-dim));
  border-bottom: 1px solid var(--border);
}

.blog-card-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  opacity: 0.8;
  transition: transform var(--transition);
}

.blog-card:hover .blog-card-img-inner {
  transform: scale(1.08);
}

.blog-card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.cta-box {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 96px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  max-width: 1000px;
  margin: 0 auto;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.8;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 24px;
}

.cta-box p {
  max-width: 620px;
  margin: 0 auto 48px;
}

.footer {
  padding: 80px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 320px;
}

.footer-cols {
  display: flex;
  gap: 90px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 500;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-post-hero {
  padding: 180px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.blog-post-cat {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-post-hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 32px;
  color: var(--text-primary);
}

.blog-post-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-post-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.blog-post-author-info {
  text-align: left;
}

.blog-post-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.blog-post-author-role {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-post-content {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-post-content h2 {
  font-family: var(--heading);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin: 48px 0 24px;
  font-weight: 600;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 40px 0 20px;
  font-weight: 600;
}

.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 24px;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 12px;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
  font-style: italic;
  font-size: 22px;
  color: var(--text-primary);
  font-family: var(--heading);
}

.blog-post-content img {
  border-radius: var(--radius-lg);
  margin: 48px 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

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

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

.logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block !important;
}

[data-theme="light"] .logo-dark {
  display: none !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

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

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

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

  .about-grid {
    gap: 64px;
  }

  .footer-cols {
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .nav {
    top: 16px;
    width: calc(100% - 32px);
    padding: 12px 16px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-logo {
    margin-left: -4px;
  }

  .nav-logo img {
    height: 60px;
  }

  .hero {
    padding: 160px 0 80px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }

  .services-grid,
  .blog-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .cta-box {
    padding: 64px 24px;
  }

  .custom-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .custom-cta-content p {
    max-width: 100%;
  }

  .footer-inner,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-cols {
    gap: 48px;
    flex-wrap: wrap;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RETELL AI VOICE WIDGET
   Floating button + homepage embedded card
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Utility ────────────────────────────────────────────────────────────── */
.mg-hidden { display: none !important; }

/* ── Floating button wrapper ─────────────────────────────────────────────── */
.mg-voice-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* expose label on hover */
}

/* Pulse ring (shown when call is active) */
.mg-voice-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mg-voice-float.is-active .mg-voice-pulse-ring {
  opacity: 1;
  animation: mg-pulse 1.6s ease-out infinite;
}

@keyframes mg-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* The FAB button itself */
.mg-voice-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}

.mg-voice-fab:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(79, 70, 229, 0.55);
}

.mg-voice-fab:active { transform: scale(0.96); }

/* Active state: red */
.mg-voice-float.is-active .mg-voice-fab {
  background: #ef4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.45);
}

.mg-voice-float.is-active .mg-voice-fab:hover {
  background: #dc2626;
  box-shadow: 0 6px 28px rgba(239, 68, 68, 0.55);
}

/* Loading spinner animation */
.mg-voice-float.is-loading .mg-voice-fab {
  opacity: 0.85;
  cursor: wait;
}

.mg-spin-path {
  animation: mg-spin 0.9s linear infinite;
  transform-origin: center;
}

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

.mg-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip label */
.mg-voice-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── Homepage embedded voice card ─────────────────────────────────────────── */
.voice-agent-section {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.voice-agent-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.voice-agent-content h2 {
  font-family: var(--heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.voice-agent-content h2 em {
  font-style: normal;
  color: var(--accent);
}

.voice-agent-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* The card */
.voice-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: box-shadow var(--transition);
}

.voice-widget-card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Avatar / icon circle */
.voice-widget-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
}

[data-theme="dark"] .voice-widget-avatar {
  color: #818cf8;
}

/* Animated waves (shown during live call) */
.voice-waves {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 32px;
}

.voice-wave-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  height: 12px;
  transition: height 0.2s ease;
}

.voice-waves.is-live .voice-wave-bar:nth-child(1) { animation: mg-wave 1.1s 0.0s ease-in-out infinite alternate; }
.voice-waves.is-live .voice-wave-bar:nth-child(2) { animation: mg-wave 1.1s 0.2s ease-in-out infinite alternate; }
.voice-waves.is-live .voice-wave-bar:nth-child(3) { animation: mg-wave 1.1s 0.1s ease-in-out infinite alternate; }
.voice-waves.is-live .voice-wave-bar:nth-child(4) { animation: mg-wave 1.1s 0.3s ease-in-out infinite alternate; }
.voice-waves.is-live .voice-wave-bar:nth-child(5) { animation: mg-wave 1.1s 0.15s ease-in-out infinite alternate; }

@keyframes mg-wave {
  from { height: 6px;  opacity: 0.5; }
  to   { height: 28px; opacity: 1;   }
}

/* Info text */
.voice-widget-name {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.voice-widget-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* CTA button inside card */
.voice-widget-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  width: 100%;
  justify-content: center;
}

.voice-widget-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.45);
}

.voice-widget-btn:active:not(:disabled) { transform: translateY(0); }

.voice-widget-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.voice-widget-btn.is-active {
  background: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.voice-widget-btn.is-active:hover {
  background: #dc2626;
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.45);
}

/* Privacy note */
.voice-privacy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .voice-agent-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mg-voice-float {
    bottom: 20px;
    right: 20px;
  }

  .mg-voice-fab {
    width: 52px;
    height: 52px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Floating Voice Agent Teaser
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide the FAB injected by retell-voice.js — we use the nav button instead */
.mg-voice-float,
#mgVoiceToast { display: none !important; }

/* Gentle bob animation — must include translateX(-50%) to preserve centering */
@keyframes float-bob {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

/* Wrapper for Talk to AI button — anchors the banner */
.nav-talk-ai-wrap {
  position: relative;
}

/* Banner — absolutely positioned below the button */
.float-voice-tease {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float-bob 2.6s ease-in-out infinite;
  white-space: nowrap;
  overflow: visible;
}

/* Upward pointer triangle — centered above the card */
.float-voice-tease::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 9px solid var(--accent);
  flex-shrink: 0;
}

/* The card */
.float-voice-tease__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  border-radius: 12px;
  padding: 9px 14px 9px 12px;
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.45), 0 2px 8px rgba(0,0,0,0.12);
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.float-voice-tease__icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

[data-theme="dark"] .float-voice-tease__label {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.55), 0 2px 8px rgba(0,0,0,0.25);
}

/* Dismiss button */
.float-voice-tease__close {
  pointer-events: all;
  position: absolute;
  top: 7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.float-voice-tease__close:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Nav "Talk to AI" subtle glow pulse */
.nav-talk-ai {
  animation: nav-pulse-glow 3s ease-in-out infinite;
}

@keyframes nav-pulse-glow {
  0%, 100% { box-shadow: 0 4px 16px var(--accent-glow); }
  50%       { box-shadow: 0 4px 28px rgba(79, 70, 229, 0.55); }
}

/* Hide on small screens */
@media (max-width: 600px) {
  .float-voice-tease { display: none; }
}
