/* ============================================================
   DSC AI — Core CSS Design System
   Warm professional theme for ai.deadsimplecomputing.co.uk
   ============================================================ */

/* ---- Fonts loaded via <link> in head.php ---- */

/* ---- Design Tokens ---- */
:root {
  /* Backgrounds — warm light */
  --ai-bg: #fafaf8;
  --ai-bg-alt: #f2f0ec;
  --ai-surface: #ffffff;
  --ai-surface-hover: #f7f5f2;
  --ai-surface-light: #f0eeeb;

  /* Brand — Deep Teal */
  --ai-emerald: #0f766e;
  --ai-emerald-dim: rgba(15, 118, 110, 0.06);
  --ai-emerald-glow: rgba(15, 118, 110, 0.12);
  --ai-emerald-bright: #14b8a6;

  /* Secondary — Deep Navy */
  --ai-violet: #1e3a5f;
  --ai-violet-dim: rgba(30, 58, 95, 0.06);
  --ai-violet-glow: rgba(30, 58, 95, 0.1);

  /* Status */
  --ai-red: #dc2626;
  --ai-red-dim: rgba(220, 38, 38, 0.06);
  --ai-amber: #d97706;
  --ai-amber-dim: rgba(217, 119, 6, 0.06);
  --ai-cyan: #0891b2;
  --ai-cyan-dim: rgba(8, 145, 178, 0.06);
  --ai-blue: #2563eb;
  --ai-blue-dim: rgba(37, 99, 235, 0.06);

  /* Text — dark on light */
  --ai-text: #1a1a2e;
  --ai-text-dim: #4a5568;
  --ai-text-muted: #718096;

  /* Borders — subtle warm */
  --ai-border: rgba(0, 0, 0, 0.06);
  --ai-border-hover: rgba(0, 0, 0, 0.12);
  --ai-border-active: rgba(15, 118, 110, 0.3);

  /* Typography */
  --ai-font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --ai-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ai-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --ai-max-width: 1200px;
  --ai-header-height: 72px;

  /* Shadows — soft and warm */
  --ai-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --ai-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --ai-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --ai-shadow-glow: 0 4px 24px rgba(15, 118, 110, 0.1);
  --ai-shadow-violet: 0 4px 20px rgba(30, 58, 95, 0.08);

  /* Transitions */
  --ai-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ai-duration: 0.3s;

  /* Radius */
  --ai-radius-sm: 8px;
  --ai-radius-md: 12px;
  --ai-radius-lg: 16px;
  --ai-radius-xl: 20px;
  --ai-radius-full: 50px;
}

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

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

body {
  font-family: var(--ai-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ai-text);
  background: var(--ai-bg);
  min-height: 100vh;
  padding-top: var(--ai-header-height);
  overflow-x: hidden;
  -webkit-font-smoothing: auto;
}

a {
  color: var(--ai-emerald);
  text-decoration: none;
  transition: color var(--ai-duration) var(--ai-ease);
}
a:hover { color: var(--ai-emerald-bright); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ai-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ai-text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p { color: var(--ai-text-dim); max-width: 65ch; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

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

.ai-section {
  padding: 80px 0;
  position: relative;
}
main > .ai-section:last-child {
  padding-bottom: 0;
}

.ai-section--alt {
  background: var(--ai-bg-alt);
  border-top: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
}

/* ---- Grid ---- */
.ai-grid { display: grid; gap: 24px; }
.ai-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ai-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ai-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ai-grid--5 { grid-template-columns: repeat(5, 1fr); }
.ai-grid--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
  .ai-grid--3, .ai-grid--4, .ai-grid--5, .ai-grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ai-grid--2, .ai-grid--3, .ai-grid--4, .ai-grid--5, .ai-grid--6 { grid-template-columns: 1fr; }
}

/* ---- Text Utilities ---- */
.ai-text-gradient {
  background: linear-gradient(135deg, var(--ai-emerald) 0%, var(--ai-cyan) 50%, var(--ai-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-text-gradient-navy {
  background: linear-gradient(135deg, var(--ai-violet) 0%, var(--ai-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-text-gradient-warm {
  background: linear-gradient(135deg, var(--ai-amber) 0%, var(--ai-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-text-center { text-align: center; }
.ai-text-dim { color: var(--ai-text-dim); }

.ai-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ai-emerald);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---- Buttons ---- */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ai-font-heading);
  border-radius: var(--ai-radius-md);
  transition: all var(--ai-duration) var(--ai-ease);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.ai-btn svg { width: 18px; height: 18px; transition: transform var(--ai-duration) var(--ai-ease); }
.ai-btn:hover svg { transform: translateX(4px); }

.ai-btn--primary {
  background: linear-gradient(135deg, var(--ai-emerald) 0%, #0d9488 100%);
  color: #ffffff;
}
.ai-btn--primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--ai-shadow-glow);
}

.ai-btn--secondary {
  background: transparent;
  color: var(--ai-text);
  border: 1px solid var(--ai-border-hover);
}
.ai-btn--secondary:hover {
  color: var(--ai-emerald);
  border-color: var(--ai-emerald);
  transform: translateY(-2px);
}

.ai-btn--ghost {
  background: var(--ai-emerald-dim);
  color: var(--ai-emerald);
  border: 1px solid rgba(0, 220, 130, 0.2);
}
.ai-btn--ghost:hover {
  background: rgba(0, 220, 130, 0.15);
  color: var(--ai-emerald-bright);
  transform: translateY(-2px);
}

.ai-btn--violet {
  background: linear-gradient(135deg, var(--ai-violet) 0%, #2c5282 100%);
  color: #fff;
}
.ai-btn--violet:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ai-shadow-violet);
}

/* ---- Cards ---- */
.ai-card {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  padding: 32px;
  transition: all var(--ai-duration) var(--ai-ease);
  box-shadow: var(--ai-shadow-sm);
}
.ai-card:hover {
  border-color: var(--ai-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--ai-shadow-md);
}
.ai-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ai-card--flat {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  padding: 32px;
}
.ai-card--glow {
  position: relative;
  overflow: hidden;
}
.ai-card--glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ai-emerald), var(--ai-violet));
}

/* ---- Icon Box ---- */
.ai-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--ai-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.ai-icon-box svg { width: 26px; height: 26px; }
.ai-icon-box--emerald { background: var(--ai-emerald-dim); color: var(--ai-emerald); }
.ai-icon-box--violet { background: var(--ai-violet-dim); color: var(--ai-violet); }
.ai-icon-box--red { background: var(--ai-red-dim); color: var(--ai-red); }
.ai-icon-box--amber { background: var(--ai-amber-dim); color: var(--ai-amber); }
.ai-icon-box--cyan { background: var(--ai-cyan-dim); color: var(--ai-cyan); }
.ai-icon-box--blue { background: var(--ai-blue-dim); color: var(--ai-blue); }

/* ---- Badge / Pill ---- */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--ai-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-badge--emerald {
  background: var(--ai-emerald-dim);
  color: var(--ai-emerald);
  border: 1px solid rgba(0, 220, 130, 0.2);
}
.ai-badge--violet {
  background: var(--ai-violet-dim);
  color: var(--ai-violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.ai-badge--amber {
  background: var(--ai-amber-dim);
  color: var(--ai-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.ai-badge--red {
  background: var(--ai-red-dim);
  color: var(--ai-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---- Pulse ---- */
.ai-pulse {
  width: 8px;
  height: 8px;
  background: var(--ai-emerald);
  border-radius: 50%;
  animation: ai-pulse 2s infinite;
}
@keyframes ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---- Stats ---- */
.ai-stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.ai-stat { text-align: center; }
.ai-stat__value {
  font-family: var(--ai-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ai-emerald);
  line-height: 1;
}
.ai-stat__label {
  font-size: 13px;
  color: var(--ai-text-dim);
  margin-top: 8px;
}

/* ---- Form Controls ---- */
.ai-input, .ai-select, .ai-textarea {
  background: var(--ai-bg);
  border: 1px solid var(--ai-border-hover);
  border-radius: var(--ai-radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--ai-font-body);
  color: var(--ai-text);
  transition: all 0.2s;
  outline: none;
  width: 100%;
}
.ai-input:focus, .ai-select:focus, .ai-textarea:focus {
  border-color: var(--ai-emerald);
  box-shadow: 0 0 0 3px var(--ai-emerald-dim);
}
.ai-input::placeholder, .ai-textarea::placeholder { color: var(--ai-text-muted); }
.ai-textarea { min-height: 120px; resize: vertical; }
.ai-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ---- Code / Terminal Block ---- */
.ai-terminal {
  background: #f8f7f4;
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  padding: 24px;
  font-family: var(--ai-font-mono);
  font-size: 14px;
  color: var(--ai-text);
  overflow-x: auto;
  position: relative;
}
.ai-terminal::before {
  content: '●  ●  ●';
  display: block;
  color: var(--ai-text-muted);
  font-size: 10px;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.ai-terminal .comment { color: var(--ai-text-muted); }
.ai-terminal .string { color: var(--ai-emerald); }
.ai-terminal .keyword { color: var(--ai-violet); }

/* ---- Cost Comparison Callout ---- */
.ai-cost-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 40px;
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
}
.ai-cost-compare__item { text-align: center; }
.ai-cost-compare__price {
  font-family: var(--ai-font-heading);
  font-size: 2rem;
  font-weight: 700;
}
.ai-cost-compare__label { color: var(--ai-text-dim); font-size: 14px; margin-top: 4px; }
.ai-cost-compare__vs {
  font-family: var(--ai-font-heading);
  font-weight: 700;
  color: var(--ai-text-muted);
  font-size: 1.25rem;
}
@media (max-width: 600px) {
  .ai-cost-compare { grid-template-columns: 1fr; gap: 16px; }
}

/* ---- Check List ---- */
.ai-check-list { list-style: none; padding: 0; margin: 0; }
.ai-check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 0.95rem;
  color: var(--ai-text-dim);
  border-top: 1px solid var(--ai-border);
}
.ai-check-list li:first-child { border-top: none; }
.ai-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 24 24' stroke='%2300dc82' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* ---- FAQ Accordion ---- */
.ai-faq-item {
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--ai-duration) var(--ai-ease);
}
.ai-faq-item:hover { border-color: var(--ai-border-hover); }
.ai-faq-item.active { border-color: var(--ai-border-active); }

.ai-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--ai-font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ai-text);
  cursor: pointer;
  background: var(--ai-surface);
  transition: background var(--ai-duration) var(--ai-ease);
  width: 100%;
  text-align: left;
}
.ai-faq-q:hover { background: var(--ai-surface-hover); }
.ai-faq-q svg {
  width: 20px; height: 20px;
  color: var(--ai-text-muted);
  transition: transform var(--ai-duration) var(--ai-ease);
  flex-shrink: 0;
}
.ai-faq-item.active .ai-faq-q svg { transform: rotate(180deg); color: var(--ai-emerald); }

.ai-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ai-ease);
}
.ai-faq-a-inner {
  padding: 0 24px 20px;
  color: var(--ai-text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Hero Split ---- */
.ai-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 500px;
}
.ai-hero-content { max-width: 600px; }
.ai-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 900px) {
  .ai-hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .ai-hero-content { max-width: 100%; }
}

/* ---- Glow Background Effect ---- */
.ai-glow-bg {
  position: relative;
  overflow: hidden;
}
.ai-glow-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.ai-glow-bg > * { position: relative; z-index: 1; }

/* ---- Dot Grid Pattern ---- */
.ai-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Scroll Animations ---- */
.ai-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ai-ease), transform 0.6s var(--ai-ease);
}
.ai-fade-in.ai-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ai-hide-mobile { display: none !important; }
  .ai-section { padding: 64px 0; }
}
@media (min-width: 769px) {
  .ai-hide-desktop { display: none !important; }
}

/* ---- Skip Link ---- */
.ai-skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--ai-emerald); color: var(--ai-bg);
  padding: 12px 24px; z-index: 10000; font-weight: 600;
}
.ai-skip-link:focus { top: 0; }

/* ---- Deployment Model Cards ---- */
.ai-deploy-card {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  padding: 36px;
  text-align: center;
  transition: all var(--ai-duration) var(--ai-ease);
  position: relative;
  overflow: hidden;
}
.ai-deploy-card:hover {
  border-color: var(--ai-border-active);
  transform: translateY(-4px);
  box-shadow: var(--ai-shadow-glow);
}
.ai-deploy-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.ai-deploy-card__title {
  font-family: var(--ai-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ai-text);
  margin-bottom: 8px;
}
.ai-deploy-card__desc {
  font-size: 0.9rem;
  color: var(--ai-text-dim);
  margin-bottom: 16px;
}
.ai-deploy-card__tag {
  font-size: 12px;
  font-style: italic;
  color: var(--ai-emerald);
}

/* ---- Image caption ---- */
.ai-img-caption {
  font-size: 11px;
  color: var(--ai-text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ---- Divider ---- */
.ai-divider {
  height: 1px;
  background: var(--ai-border);
  border: none;
  margin: 0;
}

/* ---- Alert ---- */
.ai-alert {
  padding: 16px 20px;
  border-radius: var(--ai-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-alert--success { background: var(--ai-emerald-dim); border: 1px solid rgba(0,220,130,0.3); color: var(--ai-emerald); }
.ai-alert--error { background: var(--ai-red-dim); border: 1px solid rgba(239,68,68,0.3); color: var(--ai-red); }

/* ============================================================
   PREMIUM VISUAL EFFECTS
   ============================================================ */

/* ---- Animated Gradient Border ---- */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes ai-gradient-rotate {
  to { --angle: 360deg; }
}

.ai-card--glow {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  background-clip: padding-box;
  position: relative;
  box-shadow: var(--ai-shadow-sm);
}
.ai-card--glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ai-emerald), var(--ai-violet), var(--ai-cyan));
}

/* ---- Frosted Glass Cards ---- */
.ai-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--ai-radius-lg);
}

/* ---- Hero Video Vignette ---- */
.ai-hero-video-wrap {
  position: relative;
  border-radius: var(--ai-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ai-border);
}
.ai-hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(250,250,248,0.4) 100%);
  pointer-events: none;
}
.ai-hero-video-wrap video {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ---- Floating Particles Animation ---- */
@keyframes ai-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
  50% { transform: translateY(-8px) translateX(-5px); opacity: 0.4; }
  75% { transform: translateY(-25px) translateX(8px); opacity: 0.7; }
}

@keyframes ai-float-slow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-40px) scale(1.2); opacity: 0.5; }
}

/* ---- Pulsing Glow on Deploy Cards ---- */
.ai-deploy-card {
  position: relative;
}
.ai-deploy-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--ai-radius-lg);
  background: linear-gradient(135deg, var(--ai-emerald-glow), transparent, var(--ai-violet-glow));
  opacity: 0;
  transition: opacity 0.5s var(--ai-ease);
  z-index: -1;
}
.ai-deploy-card:hover::after {
  opacity: 1;
}

/* ---- Stats Enhanced ---- */
.ai-stat__value {
  position: relative;
}

/* ---- Premium Hero Glow (subtle) ---- */
.ai-glow-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(30,58,95,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Gradient Accent Line ---- */
.ai-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--ai-emerald), var(--ai-violet), var(--ai-cyan));
  border: none;
  border-radius: 2px;
}

/* ---- Image Hover Zoom ---- */
.ai-img-zoom {
  overflow: hidden;
  border-radius: var(--ai-radius-lg);
}
.ai-img-zoom img {
  transition: transform 0.6s var(--ai-ease);
}
.ai-img-zoom:hover img {
  transform: scale(1.05);
}

/* grain texture removed for warm professional theme */

/* ---- Section Divider Gradient ---- */
.ai-section--alt {
  position: relative;
}
.ai-section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ai-emerald), transparent);
}

/* ---- Trust Bar Enhanced ---- */
.ai-trust-banner {
  position: relative;
  background: var(--ai-surface);
}
.ai-trust-item {
  transition: all var(--ai-duration) var(--ai-ease);
}
.ai-trust-item:hover {
  color: var(--ai-text);
  transform: translateY(-2px);
}

/* ---- Pillar Card Enhanced ---- */
.ai-pillar-card {
  position: relative;
  overflow: hidden;
}
.ai-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ai-emerald), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ai-ease);
}
.ai-pillar-card:hover::before {
  transform: scaleX(1);
}

/* ---- Staggered Fade-in for Grid Items ---- */
.ai-grid .ai-fade-in:nth-child(1) { transition-delay: 0s; }
.ai-grid .ai-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ai-grid .ai-fade-in:nth-child(3) { transition-delay: 0.2s; }
.ai-grid .ai-fade-in:nth-child(4) { transition-delay: 0.3s; }
.ai-grid .ai-fade-in:nth-child(5) { transition-delay: 0.4s; }
.ai-grid .ai-fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ---- Button Glow Effect ---- */
.ai-btn--primary {
  position: relative;
}
.ai-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--ai-radius-md);
  background: linear-gradient(135deg, var(--ai-emerald) 0%, #0d9488 100%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s var(--ai-ease);
  z-index: -1;
}
.ai-btn--primary:hover::after {
  opacity: 0.2;
}

/* ---- Smooth Scroll Snap for Feature Images ---- */
.ai-img-caption {
  font-size: 11px;
  color: var(--ai-text-muted);
  font-style: italic;
  letter-spacing: 0.3px;
}

/* ---- Cost Compare Enhanced ---- */
.ai-cost-compare {
  position: relative;
  overflow: hidden;
}
.ai-cost-compare::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ai-red), var(--ai-amber), var(--ai-emerald));
}

/* ---- Terminal Enhanced ---- */
.ai-terminal {
  position: relative;
  box-shadow: var(--ai-shadow-sm);
}

/* ---- Image Zoom on Hover ---- */
.ai-img-zoom {
  overflow: hidden;
}
.ai-img-zoom img {
  transition: transform 0.4s var(--ai-ease);
}
.ai-img-zoom:hover img,
.ai-card--link:hover .ai-img-zoom img {
  transform: scale(1.06);
}
.ai-faq-item {
  border-bottom: 1px solid var(--ai-border);
}
.ai-faq-item summary {
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ai-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--ai-duration) var(--ai-ease);
}
.ai-faq-item summary::-webkit-details-marker { display: none; }
.ai-faq-item summary:hover { color: var(--ai-emerald); }
.ai-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ai-emerald);
  transition: transform 0.3s var(--ai-ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.ai-faq-item[open] summary::after { content: '\2212'; }
.ai-faq-answer {
  padding: 0 0 1.25rem 0;
  color: var(--ai-text-dim);
  line-height: 1.7;
  animation: aiFaqFadeIn 0.3s ease;
}
.ai-faq-answer p { margin-bottom: 0.75rem; }
.ai-faq-answer ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.ai-faq-answer ol li { margin-bottom: 0.5rem; }
@keyframes aiFaqFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll Reveal ---- */
.ai-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ai-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.ai-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ai-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.ai-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.ai-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.ai-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.ai-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.ai-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.ai-reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero Neural Reveal ---- */
.ai-neural-reveal {
  animation: aiNeuralReveal 2s ease-out forwards;
}
@keyframes aiNeuralReveal {
  0% { filter: blur(30px) saturate(0.3); opacity: 0.3; transform: scale(1.02); }
  40% { filter: blur(10px) saturate(0.7); opacity: 0.7; }
  100% { filter: blur(0) saturate(1); opacity: 1; transform: scale(1); }
}

/* ---- Security Comparison Slider ---- */
.ai-comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--ai-radius-lg);
  cursor: ew-resize;
  aspect-ratio: 16/9;
  border: 1px solid var(--ai-border);
}
.ai-comparison-before,
.ai-comparison-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.ai-comparison-before img,
.ai-comparison-after img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ai-comparison-after {
  clip-path: inset(0 50% 0 0);
}
.ai-comparison-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--ai-radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ai-comparison-label--before {
  right: 16px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}
.ai-comparison-label--after {
  left: 16px;
  background: rgba(15, 118, 110, 0.9);
  color: #fff;
}
.ai-comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-comparison-handle::after {
  content: '\276E \276F';
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  font-size: 0.75rem;
  color: var(--ai-text);
  letter-spacing: 4px;
}

/* ============================================================
   VIDEO BACKGROUNDS & MOTION EFFECTS
   ============================================================ */

/* ---- Section Video Background ---- */
.ai-section-video-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ai-dark, #0c1222);
}
.ai-section-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

/* Content above video */
.ai-section-video-wrap > .ai-container {
  position: relative;
  z-index: 1;
}

/* ---- Particle Overlay (mix-blend-mode screen on dark sections) ---- */
.ai-particle-overlay-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* Dark section for particle overlay */
.ai-section--dark {
  background: #1e3a5f;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-section--dark .ai-label { color: var(--ai-emerald); }
.ai-section--dark h2 { color: #fff; }
.ai-section--dark p { color: rgba(255,255,255,0.8); }
.ai-section--dark .ai-terminal {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}
.ai-section--dark .ai-terminal .comment { color: rgba(255,255,255,0.4); }
.ai-section--dark .ai-btn--secondary {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.ai-section--dark .ai-btn--ghost {
  color: rgba(255,255,255,0.8);
}

/* ---- Ken Burns Pan & Zoom ---- */
.ai-ken-burns-wrap {
  overflow: hidden;
  position: relative;
}
.ai-ken-burns {
  width: 110%;
  height: 110%;
  object-fit: cover;
  animation: aiKenBurnsPan 25s ease-in-out infinite alternate;
}
@keyframes aiKenBurnsPan {
  0% { transform: scale(1.05) translate(0%, 0%); }
  100% { transform: scale(1.1) translate(-3%, -1%); }
}
.ai-ken-burns--subtle {
  animation: aiKenBurnsSubtle 35s ease-in-out infinite alternate;
}
@keyframes aiKenBurnsSubtle {
  0% { transform: scale(1.02) translateX(0%); }
  100% { transform: scale(1.05) translateX(-2%); }
}

/* ---- Hero with Video Background ---- */
.ai-hero-video-bg-wrap {
  position: relative;
  overflow: hidden;
}
.ai-hero-video-bg-wrap .ai-hero-video-el {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.15;
}
.ai-hero-video-bg-wrap > .ai-container {
  position: relative;
  z-index: 1;
}

/* ---- Parallax Section ---- */
.ai-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.ai-parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  opacity: 0.2;
}
.ai-parallax-section > .ai-container {
  position: relative;
  z-index: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .ai-section-video-bg,
  .ai-particle-overlay-video,
  .ai-hero-video-el {
    display: none;
  }
  .ai-ken-burns {
    animation: none;
    width: 100%;
    height: 100%;
  }
  .ai-neural-reveal {
    animation: none;
    filter: none;
    opacity: 1;
  }
}

/* ---- FAQ Accordion Styling ---- */
.ai-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-faq-item {
  background: var(--ai-surface);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  overflow: hidden;
  transition: border-color var(--ai-duration) var(--ai-ease),
              box-shadow var(--ai-duration) var(--ai-ease);
}
.ai-faq-item:hover {
  border-color: var(--ai-border-hover);
}
.ai-faq-item[open] {
  border-color: var(--ai-border-active);
  box-shadow: var(--ai-shadow-glow);
}
.ai-faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--ai-text);
  transition: color var(--ai-duration) var(--ai-ease);
}
.ai-faq-item summary::-webkit-details-marker { display: none; }
.ai-faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ai-emerald);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--ai-duration) var(--ai-ease);
}
.ai-faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.ai-faq-item summary:hover { color: var(--ai-emerald); }
.ai-faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ai-text-dim);
}
.ai-faq-answer p + p { margin-top: 12px; }
.ai-faq-answer ol { padding-left: 20px; margin: 12px 0; }
.ai-faq-answer ol li { margin-bottom: 8px; }

/* ---- Footer Readability ---- */
.ai-footer {
  color: rgba(255, 255, 255, 0.8);
}
.ai-footer-tagline {
  color: rgba(255, 255, 255, 0.6);
}
.ai-footer-column h4 {
  color: #fff;
}
.ai-footer-links a {
  color: rgba(255, 255, 255, 0.65);
}
.ai-footer-links a:hover {
  color: #fff;
}
.ai-footer-contact-item {
  color: rgba(255, 255, 255, 0.7);
}
.ai-footer-logo .ai-logo-img {
  height: 32px;
  filter: brightness(0) invert(1);
}
.ai-footer-logo .ai-logo-ai {
  color: var(--ai-emerald-bright);
  font-size: 1.6rem;
  padding-right: 4px;
}
.ai-footer-logo .ai-logo-sub {
  color: var(--ai-emerald-bright);
  opacity: 0.7;
}
.ai-footer-copyright {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Business Case / Video Section Text ---- */
.ai-section-video-wrap .ai-section-header h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ai-section-video-wrap .ai-section-header .ai-label {
  color: var(--ai-emerald-bright);
}
.ai-section-video-wrap .ai-cost-compare__label {
  color: rgba(255,255,255,0.8);
}
.ai-section-video-wrap p {
  color: rgba(255,255,255,0.85);
}
.ai-section-video-wrap a {
  color: var(--ai-emerald-bright);
}

/* ---- Dark Section Terminal ---- */
.ai-section--dark .ai-terminal {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}
.ai-section--dark .ai-terminal .comment {
  color: rgba(255, 255, 255, 0.5);
}
.ai-section--dark .ai-terminal .string {
  color: #7ddfb8;
}
.ai-section--dark .ai-terminal .keyword {
  color: #93c5fd;
}

/* ---- Logo Alignment ---- */
.ai-logo {
  align-items: center;
}

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

/* ---- Dark Mode ---- */
html.dark-mode {
  --ai-bg: #0a0f1c;
  --ai-bg-alt: #111827;
  --ai-surface: #1a1f2e;
  --ai-surface-hover: #1f2937;
  --ai-surface-light: #252d3d;
  --ai-text: #e2e8f0;
  --ai-text-dim: #94a3b8;
  --ai-text-muted: #64748b;
  --ai-border: rgba(255, 255, 255, 0.06);
  --ai-border-hover: rgba(255, 255, 255, 0.12);
  --ai-border-active: rgba(15, 118, 110, 0.4);
  --ai-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --ai-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --ai-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --ai-shadow-glow: 0 4px 24px rgba(15, 118, 110, 0.15);
}

/* Images — dim slightly, but NOT the logo */
html.dark-mode img:not([src*=".svg"]):not(.ai-logo-img) {
  filter: brightness(0.92);
}

/* Logo — invert to white in dark mode */
html.dark-mode .ai-logo-img {
  filter: brightness(0) invert(1) !important;
}
html.dark-mode .ai-logo-sub {
  color: var(--ai-emerald-bright);
}

/* Header */
html.dark-mode .ai-header {
  background: rgba(10, 15, 28, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
html.dark-mode .ai-nav-link {
  color: rgba(255, 255, 255, 0.75);
}
html.dark-mode .ai-nav-link:hover,
html.dark-mode .ai-nav-link.active {
  color: #fff;
}
html.dark-mode .ai-header-badge {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .ai-header-badge strong {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer — already dark, keep logo white */
html.dark-mode .ai-footer {
  background: #070b14;
}
html.dark-mode .ai-footer-logo .ai-logo-img {
  filter: brightness(0) invert(1);
}

/* Dropdown */
html.dark-mode .ai-dropdown {
  background: #1a1f2e;
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .ai-dropdown a {
  color: rgba(255, 255, 255, 0.7);
}
html.dark-mode .ai-dropdown a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

/* Cards */
html.dark-mode .ai-card {
  background: var(--ai-surface);
  border-color: var(--ai-border);
}
html.dark-mode .ai-card h3,
html.dark-mode .ai-card h4 {
  color: #e2e8f0;
}
html.dark-mode .ai-card p {
  color: #94a3b8;
}

/* Mobile menu */
html.dark-mode .ai-mobile-menu {
  background: #0a0f1c;
}

/* Hero section headings */
html.dark-mode h1, html.dark-mode h2 {
  color: #e2e8f0;
}

/* Buttons — outline variant */
html.dark-mode .ai-btn--outline {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
}
html.dark-mode .ai-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* Labels / badges */
html.dark-mode .ai-label {
  color: var(--ai-emerald-bright);
}
html.dark-mode .ai-badge {
  background: rgba(15, 118, 110, 0.15);
  color: var(--ai-emerald-bright);
}

/* Sections with alternate bg */
html.dark-mode .ai-section--alt {
  background: var(--ai-bg-alt);
}

/* Terminal / code blocks — already dark, no change needed */

/* Cost comparison text */
html.dark-mode .ai-cost-compare__amount {
  color: var(--ai-emerald-bright);
}
html.dark-mode .ai-cost-compare__label {
  color: #94a3b8;
}

/* Form inputs */
html.dark-mode input, html.dark-mode textarea, html.dark-mode select {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Dot grid */
html.dark-mode .ai-dot-grid {
  opacity: 0.3;
}

/* Toggle button itself */
html.dark-mode .ai-darkmode-toggle {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

/* CTA blocks */
html.dark-mode .ai-cta-block {
  background: var(--ai-surface);
  border-color: var(--ai-border);
}

/* Partner / cert badges at bottom */
html.dark-mode .ai-partner-row img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.6;
}

/* Dark mode toggle button */
.ai-darkmode-toggle {
  background: none;
  border: 1px solid var(--ai-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ai-text-dim);
  transition: all 0.3s var(--ai-ease);
  padding: 0;
}
.ai-darkmode-toggle:hover {
  border-color: var(--ai-emerald);
  color: var(--ai-emerald);
}
.ai-darkmode-toggle svg {
  width: 18px;
  height: 18px;
}
