/* ========================================
   Fractal Marketing Agency — Styles
   Premium AI Marketing Agency Website
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050507;
  --bg-elevated: #0a0a0f;
  --bg-card: #0f0f17;
  --bg-card-hover: #14141f;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --border-accent: rgba(99,102,241,0.2);
  --text: #f0f0f5;
  --text-secondary: #9394a1;
  --text-muted: #5f6070;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent2: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc);
  --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.12));
  --glow: rgba(99, 102, 241, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Prevent text overflow globally */
p, li, blockquote, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Global custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.1) transparent; }

/* Hide scrollbar on textareas and inputs */
textarea::-webkit-scrollbar { width: 0; height: 0; }
textarea { scrollbar-width: none; -ms-overflow-style: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  width: 100%;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hide-mobile { display: inline; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); }

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #050507;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 80px 24px 40px;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--accent-light);
}

.mobile-menu .btn {
  margin-top: 8px;
  padding: 14px 40px;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}

.btn-full { width: 100%; justify-content: center; }

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.nav-links .btn { color: white; background: var(--gradient); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: var(--accent);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite, orbPulse 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; left: -100px;
  background: var(--accent2);
  opacity: 0.1;
  animation: orbFloat 25s ease-in-out infinite reverse, orbPulse 10s ease-in-out infinite 2s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  top: 40%; left: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0.08;
  animation: orbFloat 15s ease-in-out infinite, orbMorph 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.08; filter: blur(120px); }
  50% { opacity: 0.18; filter: blur(100px); }
}

@keyframes orbMorph {
  0%, 100% { border-radius: 50%; transform: translate(0, 0) scale(1); }
  25% { border-radius: 40% 60% 60% 40%; transform: translate(15px, -10px) scale(1.05); }
  50% { border-radius: 50% 40% 50% 60%; transform: translate(-10px, 15px) scale(0.95); }
  75% { border-radius: 60% 50% 40% 50%; transform: translate(10px, 5px) scale(1.02); }
}

/* Horizontal scanning line */
.hero-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 20%, rgba(168, 85, 247, 0.5) 50%, rgba(99, 102, 241, 0.3) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 60px rgba(99, 102, 241, 0.1);
  animation: scanDown 6s linear infinite;
  opacity: 0.6;
}

@keyframes scanDown {
  0% { top: -2px; opacity: 0; }
  5% { opacity: 0.6; }
  95% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Glowing accent lines */
.hero-glow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: glowLineSlide 4s ease-in-out infinite;
}

.hero-glow-line-1 {
  top: 30%;
  left: -100%;
  width: 300px;
  animation-delay: 0s;
}

.hero-glow-line-2 {
  top: 70%;
  right: -100%;
  width: 200px;
  animation-delay: 2s;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

@keyframes glowLineSlide {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateX(calc(100vw + 300px)); opacity: 0; }
}

/* Rotating decorative rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.06;
}

.hero-ring-1 {
  width: 500px; height: 500px;
  top: 10%; right: -150px;
  border-color: var(--accent);
  animation: ringRotate 30s linear infinite;
}

.hero-ring-2 {
  width: 350px; height: 350px;
  top: 15%; right: -75px;
  border-color: var(--accent2);
  border-style: dashed;
  animation: ringRotate 20s linear infinite reverse;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Vertical data stream lines */
.hero-data-stream {
  position: absolute;
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0;
  animation: dataStream 3s ease-in-out infinite;
}

.hero-data-stream-1 {
  right: 15%;
  animation-delay: 0s;
}

.hero-data-stream-2 {
  right: 25%;
  animation-delay: 1.2s;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent2), transparent);
}

.hero-data-stream-3 {
  right: 10%;
  animation-delay: 2.4s;
  height: 100px;
}

@keyframes dataStream {
  0% { top: -100px; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Staggered entrance animations */
.hero-content .hero-badge { animation: heroFadeUp 0.8s ease-out 0.2s both; }
.hero-content h1 { animation: heroFadeUp 0.8s ease-out 0.4s both; }
.hero-content .hero-sub { animation: heroFadeUp 0.8s ease-out 0.6s both; }
.hero-content .hero-actions { animation: heroFadeUp 0.8s ease-out 0.8s both; }
.hero-content .hero-metrics { animation: heroFadeUp 0.8s ease-out 1.0s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-metrics {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  justify-content: center;
}

.metric {
  position: relative;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.metric:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.08), inset 0 0 20px rgba(99, 102, 241, 0.03);
  transform: translateY(-2px);
}

.metric-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-suffix {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* --- Platforms --- */
.trusted {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted-label {
  text-align: center;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 600;
}

.platform-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.platform-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
  color: var(--text);
}

.platform-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* --- Section Common --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-header p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Clients --- */
/* --- Services --- */
.services { padding: clamp(80px, 10vw, 120px) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card-featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, var(--bg-card) 100%);
}

.service-card-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
}

.service-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  background: rgba(99,102,241,0.1);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: clamp(0.85rem, 1.2vw, 0.92rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* --- AI Technology --- */
.ai-tech {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg-elevated);
}

.ai-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 80px;
}

.ai-stack-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
  padding: clamp(24px, 3vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.ai-stack-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ai-stack-item:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.ai-stack-item:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

.ai-stack-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.ai-stack-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-stack-content p {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.ai-stack-stat {
  text-align: right;
  flex-shrink: 0;
  min-width: 100px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.stat-desc {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* AI Differentiators */
.ai-diff {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ai-diff-header {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px) 0;
}

.ai-diff-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

.ai-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: clamp(24px, 3vw, 36px);
}

.ai-diff-item {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  background: var(--bg-card);
}

.diff-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.ai-diff-item h4 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-diff-item p {
  font-size: clamp(0.85rem, 1.1vw, 0.92rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Process --- */
.process {
  padding: clamp(80px, 10vw, 120px) 0;
}

.process-steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-step {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 3.5vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.process-step:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.process-step:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.process-step:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

.step-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.step-details span {
  font-size: clamp(0.7rem, 1vw, 0.78rem);
  color: var(--accent-light);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.12);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Results --- */
.results {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg-elevated);
}

/* --- About --- */
.about {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg-elevated);
}

.about-content-full {
  max-width: 100%;
}

.about-content-full .section-tag { margin-bottom: 16px; }

.about-content-full h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 36px;
  max-width: 780px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.about-story p {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-story strong {
  color: var(--text);
}

.about-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.principle:hover {
  border-color: var(--border-hover);
}

.principle-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.principle strong {
  display: block;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  margin-bottom: 4px;
}

.principle span {
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Blog Preview --- */
.blog-preview {
  padding: clamp(80px, 10vw, 120px) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-date {
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  color: var(--text-muted);
}

.blog-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  line-height: 1.35;
}

.blog-card p {
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.blog-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- FAQ --- */
.faq {
  padding: clamp(80px, 10vw, 120px) 0;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.faq-item:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.faq-item.active { border-color: var(--border-accent); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 32px);
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-light); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  opacity: 0.5;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 24px);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- CTA --- */
.cta { padding: clamp(80px, 10vw, 120px) 0; }

.cta-inner {
  position: relative;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.08;
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-inner > p {
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  line-height: 1.7;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cta-form input,
.cta-form textarea,
.cta-form select {
  width: 100%;
  padding: clamp(12px, 1.5vw, 14px) 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.cta-form input:focus,
.cta-form textarea:focus,
.cta-form select:focus {
  border-color: var(--accent);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder { color: var(--text-muted); }

.cta-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--text-muted);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6070' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cta-form select option { background: var(--bg-card); color: var(--text); }

.cta-form textarea {
  margin-bottom: 16px;
  resize: vertical;
  min-height: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cta-form textarea::-webkit-scrollbar { width: 0; height: 0; }

.cta-form .btn { margin-top: 4px; }

.cta-note {
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  color: var(--text-muted);
  margin-top: 16px;
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.footer-brand {
  max-width: 300px;
  flex-shrink: 0;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
  font-size: clamp(0.85rem, 1vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.footer-col h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: clamp(0.85rem, 1vw, 0.9rem);
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: clamp(0.8rem, 1vw, 0.85rem);
  color: var(--text-secondary);
}

.footer-legal { display: flex; gap: 20px; }

.footer-legal a {
  font-size: clamp(0.8rem, 1vw, 0.85rem);
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text); }

/* Footer Contact & Social */
.footer-contact {
  margin-top: 16px;
}

.footer-email {
  font-size: 0.88rem;
  color: var(--accent-light) !important;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--text) !important;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  color: var(--text);
}

/* --- Legal Pages --- */
.legal-page,
.blog-page {
  padding: 40px 0 80px;
}

.legal-page .container {
  max-width: 720px;
}

.blog-page .container {
  max-width: 800px;
}

.blog-page .container:has(.blog-listing-grid) {
  max-width: 1080px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: clamp(0.88rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal-page li {
  font-size: clamp(0.85rem, 1.1vw, 0.92rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  list-style: disc;
}

.legal-page a {
  color: var(--accent-light);
}

.legal-back {
  margin-top: 48px;
}

/* Blog page styles */
.blog-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-page .blog-page-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 600px;
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-listing-card {
  display: block;
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.blog-listing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.blog-listing-card .blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-read-time::before {
  content: '·';
  color: var(--text-muted);
}

.blog-listing-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-listing-card p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Blog post article styles */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-post-meta .blog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-post-meta .blog-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-post-body p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-post-body strong {
  color: var(--text);
}

.blog-post-body ul,
.blog-post-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-post-body li {
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-post-body blockquote p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 0;
}

.blog-post-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.blog-post-nav a {
  font-size: 0.9rem;
  color: var(--accent-light);
  transition: color var(--transition);
}

.blog-post-nav a:hover {
  color: var(--text);
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   AI TOOLS PLAYGROUND
   ============================================= */

.ait-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ait-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.ait-tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-elevated);
}

.ait-tab-btn svg { opacity: 0.6; transition: opacity var(--transition); }
.ait-tab-btn:hover svg { opacity: 1; }

.ait-tab-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.ait-tab-active svg { opacity: 1; }
.ait-tab-active:hover { color: #fff; }

.ait-panel {
  display: none;
}

.ait-panel-active {
  display: block;
  animation: aitFadeIn 0.35s ease;
}

@keyframes aitFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ait-panel-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.ait-panel-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.ait-panel-info {
  margin-bottom: 28px;
}

.ait-panel-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.ait-panel-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 600px;
}

/* AI Tool Forms */
.ait-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ait-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ait-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ait-form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ait-form-group input,
.ait-form-group select {
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ait-form-group input:focus,
.ait-form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ait-form-group input::placeholder {
  color: var(--text-muted);
}

.ait-form .btn {
  margin-top: 8px;
}

/* AI Tool Output */
.ait-output {
  display: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* Loading State */
.ait-loading {
  text-align: center;
  padding: 40px 0;
}

.ait-loading p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 20px;
}

.ait-loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.ait-loading-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: aitDotPulse 1.4s ease-in-out infinite;
}

.ait-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ait-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aitDotPulse {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.ait-loading-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.ait-loading-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  animation: aitLoadSlide 1.2s ease-in-out infinite;
}

@keyframes aitLoadSlide {
  0% { left: -60%; }
  100% { left: 100%; }
}

/* Spinner for button */
.ait-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aitSpin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes aitSpin {
  to { transform: rotate(360deg); }
}

/* Result Styling */
.ait-result {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.ait-result strong { color: var(--text); }

.ait-result .ait-h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.ait-result .ait-h3:first-child { margin-top: 0; }

.ait-result .ait-h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-light);
  margin: 20px 0 8px;
}

.ait-result ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.ait-result li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.ait-result li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--gradient);
  border-radius: 50%;
}

/* Error State */
.ait-error {
  text-align: center;
  padding: 28px;
  color: #f87171;
  font-size: 0.9rem;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius);
  line-height: 1.7;
}

.ait-error-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ait-error-link:hover { opacity: 0.85; }

/* ── Ad Copy Platform Cards ──────────────────── */
.ait-ad-cards {
  display: grid;
  gap: 16px;
}

.ait-ad-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-top: 3px solid var(--pcolor, var(--accent));
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ait-ad-card:hover {
  border-color: var(--pcolor, var(--accent));
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.ait-ad-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.ait-ad-hd strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pcolor, var(--accent-light));
}

.ait-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ait-copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ait-copy-btn.ait-copied {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.ait-copy-btn svg { flex-shrink: 0; }

.ait-ad-bd {
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.ait-ad-bd strong { color: var(--text); }

/* ── Marketing Audit Score Ring ──────────────── */
.ait-score-hero {
  text-align: center;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.ait-score-ring {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 14px;
}

.ait-score-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ait-sr-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.ait-sr-fg {
  fill: none;
  stroke: var(--ring-color, var(--accent));
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc(326.73 * (1 - var(--pct, 0) / 100));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ait-sr-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.ait-sr-val span {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
}

.ait-sr-val small {
  font-size: 0.85rem;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 6px;
}

.ait-sr-grade {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ait-sr-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── ROI Metric Highlight Cards ──────────────── */
.ait-metrics {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.ait-metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s;
}

.ait-metric-card:hover {
  border-color: var(--border-hover);
}

.ait-mc-icon { font-size: 1.5rem; }

.ait-mc-val {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ait-mc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Large Tablets / Small Desktops */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-listing-grid { grid-template-columns: 1fr; }

  .about-layout { grid-template-columns: 1fr; gap: 32px; }

  .about-principles { grid-template-columns: 1fr 1fr; }

  .ai-stack-item {
    grid-template-columns: 50px 1fr;
  }

  .ai-stack-stat {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding-left: calc(50px + clamp(16px, 2.5vw, 32px));
    padding-top: 4px;
  }

  .ai-diff-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 768px) {
  .hide-mobile { display: none; }

  /* Mobile Nav */
  .nav-links-desktop {
    display: none !important;
  }

  .mobile-menu {
    display: flex;
  }

  .menu-toggle { display: flex; position: relative; z-index: 1051; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 100px 0 60px; }

  /* Grids to single column */
  .services-grid,
  .blog-grid { grid-template-columns: 1fr; }

  .about-principles { grid-template-columns: 1fr; }

  .principle { flex-direction: row; gap: 16px; }

  .ai-stack-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-stack-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
  }

  .ai-stack-stat {
    padding-left: 0;
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: baseline;
  }

  .ai-diff-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .ait-form-row { grid-template-columns: 1fr; }

  .ait-tabs { gap: 6px; }

  .ait-tab-btn { padding: 10px 16px; font-size: 0.82rem; }

  .ait-metrics { flex-direction: column; }

  .ait-score-ring { width: 110px; height: 110px; }

  .ait-sr-val span { font-size: 1.8rem; }

  .hero-metrics { gap: 20px; }
  .metric-divider { display: none; }

  .process-step {
    flex-direction: column;
    gap: 12px;
    padding: clamp(20px, 3vw, 28px);
  }

  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  .cta-inner { padding: 36px 20px; }

  .platform-grid { gap: 8px; }
  .platform-item { padding: 6px 12px; font-size: 0.78rem; }
}

/* Small Phones */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .step-details { gap: 6px; }
  .step-details span { font-size: 0.7rem; padding: 3px 8px; }

  .cta-form input,
  .cta-form textarea,
  .cta-form select {
    padding: 12px 14px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-col { min-width: 0; }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-badge { font-size: 0.75rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Prevent text overflow on very long words — mobile only */
@media (max-width: 768px) {
  .service-card p,
  .ai-stack-content p,
  .ai-diff-item p,
  .step-content p,
  .faq-answer p,
  .about-story p,
  .cta-inner > p {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-scanline,
  .hero-glow-line,
  .hero-data-stream,
  .hero-particles { display: none; }

  .hero-orb-1, .hero-orb-2, .hero-orb-3,
  .hero-ring-1, .hero-ring-2 { animation: none; }

  .hero-content .hero-badge,
  .hero-content h1,
  .hero-content .hero-sub,
  .hero-content .hero-actions,
  .hero-content .hero-metrics { animation: none; opacity: 1; }

  .hero-grid { animation: none; }

  [data-animate] { transition: none; opacity: 1; transform: none; }
}

/* Hide heavy hero effects on mobile for performance */
@media (max-width: 768px) {
  .hero-particles,
  .hero-ring,
  .hero-glow-line,
  .hero-data-stream { display: none; }

  .hero-scanline { opacity: 0.3; }
}
