/* --- CSS Variables & Design System --- */
:root {
  /* Core Palette */
  --primary: #0A1628;
  --primary-light: #12223b;
  --primary-dark: #050b14;
  --accent: #1E6FFF;
  --accent-hover: #1456ce;
  --highlight: #3EADFF;
  --warm-accent: #F59E0B;
  --warm-accent-hover: #D97706;

  /* Text */
  --text-main: #0A1628;
  --text-muted: #3D5270;
  --text-heading: #0A1628;
  --text-light: rgba(255, 255, 255, 0.85);
  --text-light-muted: rgba(255, 255, 255, 0.6);

  /* Backgrounds */
  --bg-color: #ffffff;
  --bg-warm: #FEFBF6;
  --bg-cool: #F4F7FB;
  --bg-dark: #0A1628;
  --bg-dark-elevated: #12223b;
  --surface-alt: #EDF2FA;
  --border-color: rgba(10, 22, 40, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-bg-dark: rgba(10, 22, 40, 0.6);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0A1628 0%, #0f2847 40%, #132f54 70%, #0A1628 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  --gradient-warm: linear-gradient(135deg, var(--warm-accent) 0%, #FBBF24 100%);
  --gradient-dark: linear-gradient(180deg, #0A1628 0%, #0f2847 100%);
  --gradient-card-border: linear-gradient(135deg, var(--accent), var(--highlight), var(--accent));
  --gradient-text: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 50%, var(--warm-accent) 100%);

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-width: 1200px;
  --container-px: 1.5rem;
  --section-py: 6rem;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(30, 111, 255, 0.2);
  --shadow-glow-accent: 0 0 30px rgba(30, 111, 255, 0.3), 0 0 60px rgba(30, 111, 255, 0.1);
  --shadow-glow-warm: 0 0 20px rgba(245, 158, 11, 0.25);

  /* Transitions & Easing */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--highlight);
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 500;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

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

.text-center {
  text-align: center;
}

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

.text-highlight {
  color: var(--highlight);
}

/* Section Background Variants */
.section-dark {
  background: var(--gradient-dark);
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: var(--text-light-muted);
}

.section-alt {
  background-color: var(--bg-cool);
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-gradient {
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-cool) 100%);
}

/* --- Glassmorphism --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.glass-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(30, 111, 255, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-heading);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(30, 111, 255, 0.05);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

.btn-warm {
  background: var(--gradient-warm);
  color: var(--primary);
  font-weight: 700;
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-warm);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-smooth);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* --- Logo --- */
.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid rgba(10, 22, 40, 0.15);
  transition: all var(--transition-base);
}

.logo-mark:hover {
  opacity: 0.85;
  border-bottom-color: var(--accent);
}

.logo-acuity {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-heading);
  letter-spacing: 0.02em;
}

.logo-divider {
  width: 1px;
  height: 24px;
  background-color: var(--accent);
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-ai {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.logo-llc {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s var(--ease-smooth);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.btn-mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 768px) {
  .btn-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-smooth), opacity 0.3s ease;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--border-color);
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    min-height: 48px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--gradient-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 0 2rem;
  margin-top: auto;
  color: #ffffff;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent);
  opacity: 0.5;
}

.site-footer .logo-acuity,
.site-footer .logo-ai {
  color: #ffffff !important;
}

.site-footer .logo-mark {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.site-footer .logo-mark:hover {
  border-bottom-color: var(--highlight);
}

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

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--highlight);
  transition: width 0.3s var(--ease-smooth);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* --- Mobile CTA Bar --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }

  .site-footer {
    padding-bottom: 5rem;
  }
}

/* --- Page Specific Layouts --- */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  text-align: center;
  background: var(--gradient-hero);
  color: #ffffff;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-section h1 {
  color: #ffffff;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
}

.hero-section h2,
.hero-section h3 {
  color: #ffffff;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.75);
}

.hero-section .mono-label {
  color: var(--highlight);
}

.hero-section .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-section .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(30, 111, 255, 0.2) 0%, rgba(62, 173, 255, 0.08) 40%, rgba(10, 22, 40, 0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(30, 111, 255, 0.15);
  top: 10%;
  left: -5%;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(62, 173, 255, 0.1);
  bottom: 5%;
  right: -5%;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(245, 158, 11, 0.08);
  top: 50%;
  right: 20%;
  animation: orbFloat3 7s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, -25px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* --- Cards --- */
.card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), border-left-color 0.3s var(--ease-smooth);
}

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

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s var(--ease-smooth), color var(--transition-fast);
}

.card-link:hover {
  gap: 0.5rem;
  color: var(--accent-hover);
}

/* --- Grids --- */
.process-grid,
.services-grid,
.pricing-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.process-card,
.service-card,
.pricing-card {
  height: 100%;
}

/* Process cards on homepage */
.process-card {
  position: relative;
  padding-top: 3.5rem;
}

.process-card::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--gradient-accent);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.process-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--surface-2);
  margin-bottom: 1rem;
  line-height: 1;
}

.service-desc {
  margin-bottom: 1.5rem;
}

/* Services Header */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Pricing Cards Specifics */
.premium-border {
  border: 2px solid transparent;
  border-left: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient-card-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(30, 111, 255, 0);
}

.premium-border:hover {
  border-left-color: transparent;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card-tag {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--gradient-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-glow);
  animation: tagPulse 3s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: var(--shadow-glow-accent); }
}

.price-block {
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 12px rgba(30, 111, 255, 0.2);
}

.price-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.price-amount {
  display: block;
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  margin-top: 0.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 1rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list li::after {
  content: '✓';
  position: absolute;
  left: 3px;
  top: 0.25em;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
}

.btn-full {
  width: 100%;
}

/* Bio Section */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: flex-start;
}

.headshot-placeholder img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  border: 1px solid var(--border-color);
}

.bio-contact-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.required {
  color: var(--highlight);
}

input,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-success-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--highlight);
  border-radius: var(--radius-lg);
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(62, 173, 255, 0.1);
  color: var(--highlight);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.form-error-message {
  color: #ef4444;
  margin-top: 1rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--gradient-hero);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.75);
}

.page-header .hero-subheading {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 700px;
}

.page-header .mono-label {
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.page-header .btn-primary {
  background: var(--gradient-accent);
  border: none;
}

.page-header .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-accent);
}

/* --- FAQ Items --- */
.faq-item:hover {
  border-left-color: var(--accent);
}

.faq-item h3 {
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

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

/* --- Process Step Timeline --- */
.process-step {
  transition: border-left-color 0.3s var(--ease-smooth);
}

.process-step:hover {
  border-left-color: var(--accent) !important;
}

.process-step-number {
  position: absolute;
  left: -1.125rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.process-step-number.complete {
  background: var(--gradient-warm);
  color: var(--primary);
  box-shadow: var(--shadow-glow-warm);
}

/* --- CTA Sections --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section.section-dark {
  background: var(--gradient-dark);
}

.cta-section.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* --- Scroll Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes — hidden by default, revealed by Intersection Observer */
.fade-up,
.fade-in,
.slide-left,
.slide-right,
.scale-in {
  opacity: 0;
}

.fade-up.is-visible {
  animation: fadeUp 0.7s var(--ease-out-expo) forwards;
}

.fade-in.is-visible {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-left.is-visible {
  animation: slideLeft 0.7s var(--ease-out-expo) forwards;
}

.slide-right.is-visible {
  animation: slideRight 0.7s var(--ease-out-expo) forwards;
}

.scale-in.is-visible {
  animation: scaleIn 0.6s var(--ease-out-expo) forwards;
}

/* Stagger children */
.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: 500ms; }

/* Hero entrance */
.hero-entrance-1 { animation: fadeUp 0.8s var(--ease-out-expo) 0.1s both; }
.hero-entrance-2 { animation: fadeUp 0.8s var(--ease-out-expo) 0.25s both; }
.hero-entrance-3 { animation: fadeUp 0.8s var(--ease-out-expo) 0.4s both; }
.hero-entrance-4 { animation: fadeUp 0.8s var(--ease-out-expo) 0.55s both; }
.hero-entrance-5 { animation: fadeUp 0.8s var(--ease-out-expo) 0.7s both; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up,
  .fade-in,
  .slide-left,
  .slide-right,
  .scale-in {
    opacity: 1;
  }

  .hero-orb {
    animation: none;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section {
    padding: 7rem 0 4rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section {
    padding: 4rem 0;
  }

  .page-header {
    padding-top: 6rem;
  }

  .services-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

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

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

  .card {
    padding: 1.75rem;
  }

  .process-step {
    padding-left: 2.5rem;
  }

  .process-step-number {
    left: -1rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.65rem;
  }

  .hero-orb {
    display: none;
  }

  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

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

  .page-header {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .page-header .hero-subheading {
    font-size: 1rem;
  }
}
