/* ============================================
   LT.Solutions - Unified Design System v2
   "Confident Minimalism"
   ============================================

   A comprehensive, scalable design system that balances
   enterprise credibility with human approachability.

   ============================================ */

/* ============================================
   1. DESIGN TOKENS & FOUNDATION
   ============================================ */

:root {
  /* === COLOR PALETTE === */
  /* Primary Colors */
  --color-navy: #0B1728;
  --color-red: #C41E3A;
  --color-white: #FFFFFF;

  /* Valiantys/Atlassian Brand Alignment */
  --color-atlassian-blue: #0052CC;
  --color-trust-green: #00875A;

  /* Neutral Palette */
  --color-neutral-50: #F8FAFB;
  --color-neutral-100: #F1F4F6;
  --color-neutral-200: #E4E9ED;
  --color-neutral-300: #CBD2D9;
  --color-neutral-400: #9AA5B1;
  --color-neutral-500: #7B8794;
  --color-neutral-600: #616E7C;
  --color-neutral-700: #3D4957;
  --color-neutral-800: #2A3441;
  --color-neutral-900: #1A202C;

  /* Semantic Colors */
  --color-success: #00875A;
  --color-warning: #FF991F;
  --color-error: #DE350B;
  --color-info: #0052CC;

  /* Warm Card System */
  --color-warm-white: #FAF9F7;
  --color-warm-border: #E8E4DF;
  --color-warm-border-hover: #D9D4CD;
  --shadow-warm-sm: 0 1px 2px rgba(139, 115, 85, 0.05);
  --shadow-warm-md: 0 4px 6px rgba(139, 115, 85, 0.07), 0 2px 4px rgba(139, 115, 85, 0.06);
  --shadow-warm-lg: 0 10px 15px rgba(139, 115, 85, 0.1), 0 4px 6px rgba(139, 115, 85, 0.05);

  /* Background Gradients */
  --bg-dark: linear-gradient(135deg, #000000 0%, #0B1728 100%);
  --bg-mist: linear-gradient(135deg, #F8FAFB 0%, #E4E9ED 100%);

  /* === SPACING SYSTEM (8px base) === */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */
  --space-20: 10rem;    /* 160px */

  /* === TYPOGRAPHY === */
  /* Font Families */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* === BORDERS & RADIUS === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.18);

  /* === GLASS/CARD SYSTEM === */
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-bg-dark: rgba(0, 0, 0, 0.2);
  --glass-border-light: rgba(255, 255, 255, 0.12);
  --glass-border-dark: rgba(0, 0, 0, 0.12);

  /* === TRANSITIONS === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === BLUR === */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --blur-xl: 32px;

  /* === Z-INDEX SCALE === */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-toast: 1600;

  /* === CONTAINER WIDTHS === */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1140px;  /* Primary reading width */
  --container-2xl: 1280px;

  /* === BREAKPOINTS === */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1440px;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-neutral-900);
  background: var(--color-white);
  overflow-x: hidden;
}

/* Dark background body modifier */
body.bg-dark {
  background: var(--bg-dark);
  color: var(--color-white);
  position: relative;
}

body.bg-dark::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 82, 204, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
  color: inherit;
}

h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: #a01830;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-red);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--weight-medium);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--color-white);
}

/* Body text on dark backgrounds */
.bg-dark p,
.bg-dark li {
  color: rgba(255, 255, 255, 0.85);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--color-red), var(--color-atlassian-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   4. LAYOUT SYSTEM
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container--wide {
  max-width: var(--container-2xl);
}

.container--narrow {
  max-width: var(--container-md);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

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

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

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

/* Section System */
.section {
  padding: var(--space-16) 0;
  position: relative;
}

.section--sm {
  padding: var(--space-10) 0;
}

.section--lg {
  padding: var(--space-20) 0;
}

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

.section--light {
  background: var(--bg-mist);
  color: var(--color-neutral-900);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.cta-panel {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: rgba(196, 30, 58, 0.1);
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section--dark .section-tag {
  background: rgba(196, 30, 58, 0.15);
  color: rgba(255, 255, 255, 0.95);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-neutral-700);
  line-height: var(--leading-relaxed);
}

.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section--light .section-subtitle {
  color: var(--color-neutral-700);
}

/* ============================================
   5. CARD COMPONENTS
   ============================================ */

/* Base Card */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Glass Card (for dark backgrounds) */
.glass-card {
  background: var(--glass-bg-light);
  border: 2px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slower);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-atlassian-blue));
  transition: width var(--transition-slower);
  z-index: 1;
}

.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-atlassian-blue), var(--color-red));
  transition: width var(--transition-slower);
  z-index: 1;
}

.glass-card:hover::before,
.glass-card:hover::after {
  width: 100%;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 30, 58, 0.4);
  box-shadow: var(--shadow-xl);
}

.glass-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(196, 30, 58, 0.4);
  box-shadow: var(--shadow-xl);
}

.glass-card__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
}

.phase-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.phase-card__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  background: rgba(196, 30, 58, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.phase-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.phase-card__text {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  margin-bottom: 0;
}

/* Fix phase card text on light sections */
.section--light .phase-card__text {
  color: var(--color-neutral-900);
}

.section--light .phase-card__badge {
  background: rgba(196, 30, 58, 0.15);
  color: var(--color-red);
}

.section--light .glass-card {
  background: var(--color-white);
  border: 2px solid var(--color-neutral-200);
  box-shadow: var(--shadow-md);
  color: var(--color-neutral-900);
}

.section--light .glass-card__text {
  color: var(--color-neutral-700);
}

/* ============================================
   APPROACH TIMELINE COMPONENT
   ============================================ */

.approach-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: var(--space-8);
}

/* Connecting line - base */
.approach-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-neutral-300);
  z-index: 0;
}

/* Connecting line - animated accent overlay */
.approach-timeline::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 30, 58, 0.3), rgba(196, 30, 58, 0.1));
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
}

/* Animate line on scroll reveal */
.approach-timeline.revealed::after {
  animation: timelineGrow 1.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes timelineGrow {
  to { transform: scaleX(1); }
}

/* Phase item */
.approach-phase {
  padding: 0 0.75rem;
  position: relative;
  z-index: 2;
}

/* Dot */
.approach-phase__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-neutral-300);
  background: #F8FAFB;
  margin-bottom: 1.75rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.approach-phase:hover .approach-phase__dot {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.12);
}

/* Inner dot fill on hover */
.approach-phase:hover .approach-phase__dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-red);
  animation: dotPop 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dotPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Content area */
.approach-phase__content {
  display: block;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 0 -0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.approach-phase:hover .approach-phase__content {
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
}

/* Phase number */
.approach-phase__number {
  display: block;
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-neutral-500);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.approach-phase:hover .approach-phase__number {
  color: var(--color-red);
}

/* Phase title */
.approach-phase__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--color-neutral-900);
  margin-bottom: 0.55rem;
}

/* Phase text */
.approach-phase__text {
  font-size: 0.84rem;
  color: var(--color-neutral-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Ensure approach timeline text is readable when wrapped in links */
.approach-phase__content a .approach-phase__title,
.approach-phase a .approach-phase__title {
  color: var(--color-neutral-900) !important;
}

.approach-phase__content a .approach-phase__text,
.approach-phase a .approach-phase__text {
  color: var(--color-neutral-600) !important;
}

.approach-phase__content a .approach-phase__number,
.approach-phase a .approach-phase__number {
  color: var(--color-neutral-500) !important;
}

.approach-phase:hover a .approach-phase__number {
  color: var(--color-red) !important;
}

/* Mobile timeline - vertical layout */
@media (max-width: 767px) {
  .approach-timeline {
    grid-template-columns: 1fr;
    padding-left: 2.5rem;
  }

  /* Vertical connecting line */
  .approach-timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 1px;
    height: auto;
  }

  /* Vertical animated line */
  .approach-timeline::after {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .approach-timeline.revealed::after {
    animation: timelineGrowV 1.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  @keyframes timelineGrowV {
    to { transform: scaleY(1); }
  }

  .approach-phase {
    padding: 0 0 2rem 1.25rem;
  }

  .approach-phase__dot {
    position: absolute;
    left: -2.5rem;
    top: 0;
    margin-bottom: 0;
  }

  .approach-phase__content {
    margin: 0;
    padding: 0;
  }

  .approach-phase:hover .approach-phase__content {
    background: none;
    box-shadow: none;
  }
}

/* Value Card */
.value-card {
  background: var(--color-warm-white);
  border: 2px solid var(--color-warm-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-slower);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-warm-sm);
}


.value-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(0, 82, 204, 0.1));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  color: var(--color-red);
  transition: all var(--transition-base);
}

.value-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  color: var(--color-neutral-900);
}

.value-card__text {
  color: var(--color-neutral-900) !important;
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
  font-size: var(--text-base);
}

.section--light .value-card__text {
  color: var(--color-neutral-900) !important;
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Service Card */
.service-card {
  background: var(--glass-bg-light);
  border: 2px solid var(--glass-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: all var(--transition-slower);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-atlassian-blue));
  transition: width var(--transition-slower);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-atlassian-blue), var(--color-red));
  transition: width var(--transition-slower);
}

.service-card__number {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  background: rgba(196, 30, 58, 0.15);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(196, 30, 58, 0.3);
}

.service-card__index {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.service-card__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.service-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

.service-card__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-red);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-base);
}

.service-card__link:hover {
  gap: var(--space-3);
  color: var(--color-white);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 30, 58, 0.6);
  box-shadow: 0 20px 60px rgba(196, 30, 58, 0.2);
}

.service-card:hover::before,
.service-card:hover::after {
  width: 100%;
}

/* ============================================
   SERVICE CARD V2
   ============================================ */

.service-card-v2 {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.service-card-v2:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.service-card-v2__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.service-card-v2__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 58, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-red);
}

.service-card-v2__badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-red);
  background: rgba(196, 30, 58, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
}

.service-card-v2__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.service-card-v2__description {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.service-card-v2__benefits {
  list-style: none;
  margin-bottom: var(--space-5);
}

.service-card-v2__benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2);
}

.service-card-v2__benefit::before {
  content: '✓';
  color: var(--color-trust-green);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

/* Service card CTA - text link with arrow */
.service-card-v2__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-card-v2__cta::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card-v2__cta:hover {
  color: rgba(255, 255, 255, 0.95);
}

.service-card-v2__cta:hover::after {
  transform: translateX(5px);
}

.section--light .service-card-v2 {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  box-shadow: var(--shadow-sm);
}

.section--light .service-card-v2:hover {
  background: var(--color-white);
  border-color: var(--color-neutral-300);
  box-shadow: var(--shadow-md);
}

.section--light .service-card-v2__title {
  color: var(--color-neutral-900);
}

.section--light .service-card-v2__description,
.section--light .service-card-v2__benefit {
  color: var(--color-neutral-700);
}

/* Insight Card */
.insight-card {
  background: var(--color-warm-white);
  border: 2px solid var(--color-warm-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slower);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-warm-sm);
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-atlassian-blue));
  transition: width var(--transition-slower);
  z-index: 1;
}

.insight-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-atlassian-blue), var(--color-red));
  transition: width var(--transition-slower);
  z-index: 1;
}

.insight-card__image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(196, 30, 58, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(11, 23, 40, 0.95), rgba(0, 82, 204, 0.6));
}

.insight-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.insight-card:hover .insight-card__image img {
  transform: scale(1.05);
}

.insight-card__tag {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.95), rgba(160, 24, 48, 0.95));
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.insight-card__content {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.insight-card__date {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-neutral-500);
  margin-bottom: var(--space-2);
}

.insight-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
  color: var(--color-neutral-900) !important;
}

.insight-card__title a {
  color: var(--color-neutral-900) !important;
  transition: color var(--transition-base);
}

.insight-card__title a:hover {
  color: var(--color-red) !important;
}

.insight-card__excerpt {
  color: var(--color-neutral-900) !important;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.section--dark .insight-card__title,
.section--dark .insight-card__title a {
  color: var(--color-neutral-900) !important;
}

.section--dark .insight-card__excerpt {
  color: var(--color-neutral-900) !important;
}

.insight-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-red);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

.insight-card__read-more:hover {
  gap: var(--space-3);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-red);
}

.insight-card:hover::before,
.insight-card:hover::after {
  width: 100%;
}

/* Stat Card */
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  color: var(--color-neutral-900);
  box-shadow: var(--shadow-sm);
}

.stat-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
}

.proof-grid {
  align-items: stretch;
  margin-bottom: var(--space-10);
}

.proof-notes {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.proof-note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.proof-note h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.proof-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   6. BUTTON SYSTEM
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary button - flat solid red, no gradient or shine */
.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
}

.btn--primary:hover {
  background: #a01830;
  border-color: #a01830;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25);
}

/* Secondary button - ghost with subtle red border */
.btn--secondary {
  background: transparent;
  color: var(--color-red);
  border: 1px solid rgba(196, 30, 58, 0.35);
  box-shadow: none;
}

.btn--secondary:hover {
  background: rgba(196, 30, 58, 0.08);
  color: var(--color-red);
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.section--light .btn--secondary {
  background: transparent;
  color: var(--color-red);
  border: 1px solid rgba(196, 30, 58, 0.35);
  box-shadow: none;
}

.section--light .btn--secondary:hover {
  background: rgba(196, 30, 58, 0.08);
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn--outline {
  background: transparent;
  color: var(--color-neutral-700);
  border-color: var(--color-neutral-300);
}

.btn--outline:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-400);
}

.btn--ghost {
  background: transparent;
  color: var(--color-neutral-700);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--color-neutral-100);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Button on dark backgrounds */
.bg-dark .btn--secondary {
  color: var(--color-red);
  border: 1px solid rgba(196, 30, 58, 0.35);
}

.bg-dark .btn--secondary:hover {
  background: rgba(196, 30, 58, 0.08);
  border-color: var(--color-red);
  color: var(--color-red);
}

/* Hero CTA System - Confident Minimalism
   ----------------------------------------
   Primary: off-white button with glow bloom hover
   Secondary: text link with animated arrow
*/

.btn--hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ebe9e6;
  color: #0c0f14;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transform: translateY(0);
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0),
    0 1px 2px rgba(0, 0, 0, 0.08);
  transition:
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 200ms ease-out,
    box-shadow 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn--hero-primary:hover {
  background: #f5f3f0;
  transform: translateY(-2px);
  box-shadow:
    0 0 20px 4px rgba(255, 255, 255, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.btn--hero-primary:active {
  transform: translateY(0);
  box-shadow:
    0 0 8px 2px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 80ms cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 80ms ease-out;
}

.btn--hero-primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

/* Secondary: text link with arrow */
.hero-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 0.25rem;
  position: relative;
  transition: color 200ms ease-out;
}

.hero-link-secondary::after {
  content: '→';
  display: inline-block;
  transform: translateX(0) scale(1);
  opacity: 0.7;
  transition:
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 200ms ease-out;
}

.hero-link-secondary:hover {
  color: #f0f0f2;
}

.hero-link-secondary:hover::after {
  transform: translateX(4px) scale(1.1);
  opacity: 1;
}

/* Subtle underline reveal on hover */
.hero-link-secondary::before {
  content: '';
  position: absolute;
  bottom: 0.65rem;
  left: 0.25rem;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-link-secondary:hover::before {
  width: calc(100% - 2rem);
}

.hero-link-secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Light background variant for final CTA section */
.section--light .btn--hero-primary {
  background: #0c0f14;
  color: #f0f0f2;
  box-shadow:
    0 0 0 0 rgba(12, 15, 20, 0),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.section--light .btn--hero-primary:hover {
  background: #1a1f2a;
  box-shadow:
    0 0 24px 6px rgba(12, 15, 20, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.section--light .btn--hero-primary:active {
  box-shadow:
    0 0 8px 2px rgba(12, 15, 20, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.08);
}

.section--light .btn--hero-primary:focus-visible {
  outline-color: rgba(12, 15, 20, 0.4);
}

.section--light .hero-link-secondary {
  color: rgba(12, 15, 20, 0.6);
}

.section--light .hero-link-secondary:hover {
  color: #0c0f14;
}

.section--light .hero-link-secondary::after {
  opacity: 0.6;
}

.section--light .hero-link-secondary:hover::after {
  opacity: 1;
}

.section--light .hero-link-secondary::before {
  background: rgba(12, 15, 20, 0.35);
}

.section--light .hero-link-secondary:focus-visible {
  outline-color: rgba(12, 15, 20, 0.3);
}

/* ============================================
   7. NAVIGATION SYSTEM
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(11, 23, 40, 0.85);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__logo img {
  height: 48px;
  width: auto;
  transition: transform var(--transition-base);
}

.nav__logo:hover img {
  transform: scale(1.05);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: calc(100% - var(--space-6));
}

.nav__link--active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

@media (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 23, 40, 0.98);
    backdrop-filter: blur(var(--blur-xl));
    -webkit-backdrop-filter: blur(var(--blur-xl));
    padding: var(--space-6);
    gap: var(--space-2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all var(--transition-base);
  }

  .nav__menu--open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__link {
    font-size: var(--text-base);
    padding: var(--space-3);
  }
}

/* ============================================
   8. HERO COMPONENTS
   ============================================ */

.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-10);
  text-align: center;
  overflow: hidden;
}

/* Primary animated glow - same as page-hero */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(196, 30, 58, 0.15) 0%,
    transparent 50%
  );
  animation: rotate 30s linear infinite;
  animation-delay: var(--glow-sync-delay, 0ms);
  pointer-events: none;
}

/* Undertone layer - same as page-hero */
.hero::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 23, 40, 0.06) 0%,
    rgba(100, 15, 30, 0.05) 35%,
    transparent 65%
  );
  animation: rotateReverse 45s linear infinite;
  animation-delay: var(--glow-undertone-sync-delay, 0ms);
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__trust {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
}

.hero__trust li {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* Partnership Badge */
.partnership-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(0, 82, 204, 0.15));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  margin-top: var(--space-8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
}

.partnership-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.partnership-badge__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--weight-medium);
}

.partnership-badge__logo {
  height: 28px;
  width: auto;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================
   9. FOOTER
   ============================================ */

.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-6);
}

.footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__summary {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--space-2);
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */

.page-hero {
  padding: var(--space-16) 0 var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Primary animated glow background for page heroes */
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    var(--glow-color, rgba(196, 30, 58, 0.15)) 0%,
    transparent 50%
  );
  animation: rotate 30s linear infinite;
  animation-delay: var(--glow-sync-delay, 0ms);
  pointer-events: none;
}

/* Undertone layer - subtle depth behind the main glow */
.page-hero::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 23, 40, 0.06) 0%,
    var(--glow-undertone, rgba(50, 20, 80, 0.04)) 35%,
    transparent 65%
  );
  animation: rotateReverse 45s linear infinite;
  animation-delay: var(--glow-undertone-sync-delay, 0ms);
  pointer-events: none;
}

/* Ensure content sits above the glow */
.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Page hero colour variants with undertone */
.page-hero--blue {
  --glow-color: rgba(0, 82, 204, 0.15);
  --glow-undertone: rgba(0, 40, 100, 0.05);
}

.page-hero--green {
  --glow-color: rgba(0, 135, 90, 0.18);
  --glow-undertone: rgba(0, 70, 50, 0.05);
}

.page-hero--amber {
  --glow-color: rgba(217, 119, 6, 0.15);
  --glow-undertone: rgba(120, 60, 0, 0.05);
}

.page-hero--red {
  --glow-color: rgba(196, 30, 58, 0.15);
  --glow-undertone: rgba(100, 15, 30, 0.05);
}

.page-hero--soft-blue {
  --glow-color: rgba(59, 130, 246, 0.15);
  --glow-undertone: rgba(30, 65, 130, 0.05);
}

.page-hero--indigo {
  --glow-color: rgba(99, 102, 241, 0.12);
  --glow-undertone: rgba(50, 50, 120, 0.05);
}

.page-hero--neutral {
  --glow-color: rgba(148, 163, 184, 0.08);
  --glow-undertone: rgba(60, 70, 80, 0.04);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ARTICLE HERO (Article Pages)
   Animated glow for article header sections
   ============================================ */

.article-hero-glow {
  position: relative;
  overflow: hidden;
}

/* Primary animated glow for article heroes */
.article-hero-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    var(--glow-color, rgba(99, 102, 241, 0.12)) 0%,
    transparent 50%
  );
  animation: rotate 30s linear infinite;
  animation-delay: var(--glow-sync-delay, 0ms);
  pointer-events: none;
}

/* Undertone layer - subtle depth behind the main glow */
.article-hero-glow::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 23, 40, 0.06) 0%,
    var(--glow-undertone, rgba(50, 50, 120, 0.04)) 35%,
    transparent 65%
  );
  animation: rotateReverse 45s linear infinite;
  animation-delay: var(--glow-undertone-sync-delay, 0ms);
  pointer-events: none;
}

.article-hero-glow > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-input:invalid:not(:placeholder-shown):focus,
.form-textarea:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px rgba(222, 53, 11, 0.15);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   ARTICLE STYLES
   ============================================ */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.article__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.article__hero {
  width: 100%;
  max-height: 400px;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__content {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.85);
}

.article__content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin: var(--space-8) 0 var(--space-4);
}

.article__content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  margin: var(--space-6) 0 var(--space-3);
}

.article__content p {
  margin-bottom: var(--space-4);
}

.article__content blockquote {
  border-left: 3px solid var(--color-red);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

.article__content ul,
.article__content ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-5);
}

.article__content li {
  margin-bottom: var(--space-2);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spotify-embed {
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.spotify-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.article__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  margin-top: var(--space-10);
}

.article__author-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  flex-shrink: 0;
}

.article__author-name {
  font-weight: var(--weight-semibold);
  color: var(--color-white);
}

.article__author-role {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   10. UTILITIES
   ============================================ */

/* Spacing */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Flexbox */
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Link with arrow - for section footer CTAs */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-arrow::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-arrow:hover {
  color: var(--color-neutral-900);
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

/* Link arrow on dark backgrounds */
.section--dark .link-arrow {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .link-arrow:hover {
  color: var(--color-white);
}

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

.fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

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

/* ============================================
   11. RESPONSIVE DESIGN
   ============================================ */

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

@media (max-width: 767px) {
  :root {
    --space-16: 6rem;
    --space-20: 8rem;
  }

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

  .section-header {
    margin-bottom: var(--space-8);
  }

  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Prevent hero glows from shrinking below 730px on mobile */
  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after,
  .article-hero-glow::before,
  .article-hero-glow::after {
    min-width: 730px;
  }
}

/* ============================================
   12. PRINT STYLES
   ============================================ */

@media print {
  .header,
  .footer,
  .btn,
  .nav {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ============================================
   13. REDUCED MOTION
   ============================================ */

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

  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after,
  .article-hero-glow::before,
  .article-hero-glow::after {
    animation: none !important;
  }
}
