/* ===================================
   Design Tokens - Single Source of Truth
   =================================== */

:root {
  /* === Action Colors === */
  --color-action-primary: #4f4ce5;
  --color-action-primary-hover: #636df1;
  --color-action-secondary: #f1f5f9;
  --color-action-secondary-hover: #e2e8f0;
  --color-action-danger: #f43f5e;
  --color-action-danger-hover: #e11d48;

  /* === Feedback Colors === */
  --color-feedback-success: #10b981;
  --color-feedback-warning: #f59e0b;
  --color-feedback-error: #f43f5e;
  --color-feedback-info: #06b6d4;

  /* === Text Colors === */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  --color-text-disabled: #cbd5e1;
  --color-text-inverse: #ffffff;
  --color-text-accent: #4f4ce5;
  --color-text-accent-hover: #636df1;

  /* === Background Colors === */
  --color-bg-base: #f8fafc;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #f1f5f9;
  --color-bg-subtle: #e2e8f0;
  --color-bg-input: #ffffff;
  --color-bg-input-hover: #f8fafc;
  --color-bg-accent-subtle: #f0f4ff;
  --color-bg-accent-muted: #e0e9ff;

  /* === Border Colors === */
  --color-border-default: #e2e8f0;
  --color-border-muted: #f1f5f9;
  --color-border-strong: #cbd5e1;

  /* === Primary Palette === */
  --color-primary-50: #f0f4ff;
  --color-primary-100: #e0e9ff;
  --color-primary-200: #c7d6fe;
  --color-primary-300: #a5b9fc;
  --color-primary-400: #8193f8;
  --color-primary-500: #636df1;
  --color-primary-600: #4f4ce5;
  --color-primary-700: #433dca;
  --color-primary-800: #3833a3;
  --color-primary-900: #323181;
  --color-primary-950: #1e1c4c;

  /* === Accent Colors === */
  --color-accent-cyan: #06b6d4;
  --color-accent-emerald: #10b981;
  --color-accent-amber: #f59e0b;
  --color-accent-rose: #f43f5e;

  /* === Typography === */
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* === Spacing Scale === */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* === Border Radius === */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-soft:
    0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 109, 241, 0.3);
  --shadow-primary: 0 10px 25px rgba(79, 76, 229, 0.3);

  /* === Transitions === */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Z-Index Scale === */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-tooltip: 60;
}

/* === Dark Theme === */
.dark {
  /* Action colors (same in dark) */
  --color-action-primary: #4f4ce5;
  --color-action-primary-hover: #636df1;
  --color-action-secondary: #334155;
  --color-action-secondary-hover: #475569;

  /* Text colors */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-text-disabled: #475569;
  --color-text-inverse: #0f172a;
  --color-text-accent: #8193f8;
  --color-text-accent-hover: #a5b9fc;

  /* Background colors */
  --color-bg-base: #020617;
  --color-bg-elevated: #1e293b;
  --color-bg-muted: #0f172a;
  --color-bg-subtle: #334155;
  --color-bg-input: #1e293b;
  --color-bg-input-hover: #334155;
  --color-bg-accent-subtle: rgba(99, 109, 241, 0.1);
  --color-bg-accent-muted: rgba(99, 109, 241, 0.2);

  /* Border colors */
  --color-border-default: #334155;
  --color-border-muted: #1e293b;
  --color-border-strong: #475569;

  /* Shadows (reduced in dark mode) */
  --shadow-soft: none;
  --shadow-glow: 0 0 30px rgba(99, 109, 241, 0.4);
}
/* ===================================
   CSS Reset
   =================================== */

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

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  overflow-x: hidden;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Make images responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Typography defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* Selection styling */
::selection {
  background-color: rgba(79, 76, 229, 0.2);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: rgba(79, 76, 229, 0.2);
  color: var(--color-text-primary);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-action-primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
/* ===================================
   Utility Classes
   =================================== */

/* === Layout === */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-6xl {
  max-width: 72rem;
}

.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.block {
  display: block;
}

.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.shrink-0 {
  flex-shrink: 0;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.left-1\/2 {
  left: 50%;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}
.-bottom-4 {
  bottom: -1rem;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.z-10 {
  z-index: var(--z-dropdown);
}
.z-50 {
  z-index: var(--z-modal);
}

.w-3\/4 {
  width: 75%;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-full {
  width: 100%;
}

.h-2 {
  height: 0.5rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-16 {
  height: 4rem;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}

.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}

/* === Spacing === */
.p-2 {
  padding: var(--space-2);
}
.p-4 {
  padding: var(--space-4);
}
.p-6 {
  padding: var(--space-6);
}
.p-8 {
  padding: var(--space-8);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.px-6 {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
.py-12 {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}
.py-20 {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}
.pt-32 {
  padding-top: var(--space-32);
}
.pb-20 {
  padding-bottom: var(--space-20);
}

.m-0 {
  margin: 0;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.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-10 {
  margin-bottom: var(--space-10);
}
.mb-16 {
  margin-bottom: var(--space-16);
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mt-12 {
  margin-top: var(--space-12);
}
.mt-16 {
  margin-top: var(--space-16);
}

.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-12 {
  gap: var(--space-12);
}

.space-y-4 > * + * {
  margin-top: var(--space-4);
}
.space-y-6 > * + * {
  margin-top: var(--space-6);
}

/* === Typography === */
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}
.text-6xl {
  font-size: 3.75rem;
}

.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}

.font-mono {
  font-family: var(--font-mono);
}

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

.uppercase {
  text-transform: uppercase;
}
.capitalize {
  text-transform: capitalize;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-tight {
  letter-spacing: -0.02em;
}

.leading-tight {
  line-height: 1.25;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.7;
}

/* === Colors === */
.text-text-primary {
  color: var(--color-text-primary);
}
.text-text-secondary {
  color: var(--color-text-secondary);
}
.text-text-muted {
  color: var(--color-text-muted);
}
.text-primary-500 {
  color: var(--color-primary-500);
}
.text-accent-cyan {
  color: var(--color-accent-cyan);
}
.text-accent-emerald {
  color: var(--color-accent-emerald);
}
.text-accent-amber {
  color: var(--color-accent-amber);
}
.text-feedback-error {
  color: var(--color-feedback-error);
}
.text-feedback-warning {
  color: var(--color-feedback-warning);
}
.text-feedback-success {
  color: var(--color-feedback-success);
}

.bg-bg-base {
  background-color: var(--color-bg-base);
}
.bg-bg-base\/80 {
  background-color: color-mix(in srgb, var(--color-bg-base) 80%, transparent);
}
.bg-bg-elevated {
  background-color: var(--color-bg-elevated);
}
.bg-bg-elevated\/50 {
  background-color: color-mix(
    in srgb,
    var(--color-bg-elevated) 50%,
    transparent
  );
}
.bg-bg-muted {
  background-color: var(--color-bg-muted);
}
.bg-bg-subtle {
  background-color: var(--color-bg-subtle);
}

/* Background colors with opacity */
.bg-primary-500\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-primary-500) 20%,
    transparent
  );
}
.bg-primary-500\/30 {
  background-color: color-mix(
    in srgb,
    var(--color-primary-500) 30%,
    transparent
  );
}
.bg-accent-cyan\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-cyan) 20%,
    transparent
  );
}
.bg-accent-cyan\/30 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-cyan) 30%,
    transparent
  );
}
.bg-accent-emerald\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-emerald) 20%,
    transparent
  );
}
.bg-accent-amber\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-amber) 20%,
    transparent
  );
}
.bg-accent-amber\/30 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-amber) 30%,
    transparent
  );
}
.bg-feedback-error\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-feedback-error) 20%,
    transparent
  );
}
.bg-feedback-warning\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-feedback-warning) 20%,
    transparent
  );
}
.bg-text-muted\/20 {
  background-color: color-mix(
    in srgb,
    var(--color-text-muted) 20%,
    transparent
  );
}

/* === Text Gradient === */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary-400),
    var(--color-accent-cyan)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Borders === */
.border {
  border: 1px solid var(--color-border-default);
}
.border-b {
  border-bottom: 1px solid var(--color-border-default);
}
.border-t {
  border-top: 1px solid var(--color-border-default);
}
.border-border-default {
  border-color: var(--color-border-default);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}

/* === Effects === */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-soft {
  box-shadow: var(--shadow-soft);
}
.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

.blur-3xl {
  filter: blur(64px);
}

.transition-colors {
  transition:
    color var(--transition-normal),
    background-color var(--transition-normal),
    border-color var(--transition-normal);
}
.transition-shadow {
  transition: box-shadow var(--transition-slow);
}
.transition-transform {
  transition: transform var(--transition-normal);
}
.transition-all {
  transition: all var(--transition-normal);
}

.duration-300 {
  transition-duration: 300ms;
}

/* === Pointer & Cursor === */
.pointer-events-none {
  pointer-events: none;
}
.cursor-pointer {
  cursor: pointer;
}

/* === Text Rendering === */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Scroll === */
.scroll-smooth {
  scroll-behavior: smooth;
}

/* === List Style === */
.list-none {
  list-style: none;
}

/* === Dividers === */
.divide-y > * + * {
  border-top: 1px solid var(--color-border-default);
}
.divide-border-default > * + * {
  border-color: var(--color-border-default);
}

/* === Group Hover === */
.group:hover .group-hover\:bg-primary-500\/30 {
  background-color: color-mix(
    in srgb,
    var(--color-primary-500) 30%,
    transparent
  );
}
.group:hover .group-hover\:bg-accent-cyan\/30 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-cyan) 30%,
    transparent
  );
}
.group:hover .group-hover\:bg-accent-amber\/30 {
  background-color: color-mix(
    in srgb,
    var(--color-accent-amber) 30%,
    transparent
  );
}

/* === Details/Summary (FAQ) === */
.group-open\:rotate-180 {
  transition: transform var(--transition-normal);
}
details[open] .group-open\:rotate-180,
.group[open] .group-open\:rotate-180 {
  transform: rotate(180deg);
}

/* === Hover States === */
.hover\:text-text-primary:hover {
  color: var(--color-text-primary);
}
.hover\:bg-bg-muted:hover {
  background-color: var(--color-bg-muted);
}
.hover\:bg-bg-subtle:hover {
  background-color: var(--color-bg-subtle);
}

/* === Dark Mode Visibility === */
.dark .dark\:block {
  display: block;
}
.dark .dark\:hidden {
  display: none;
}
:not(.dark) .light\:block {
  display: block;
}
:not(.dark) .light\:hidden {
  display: none;
}

/* === Responsive === */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
  }
  .md\:text-5xl {
    font-size: 3rem;
  }
  .md\:text-base {
    font-size: 1rem;
  }
  .md\:p-4 {
    padding: var(--space-4);
  }
  .md\:p-8 {
    padding: var(--space-8);
  }
  .md\:p-12 {
    padding: var(--space-12);
  }
}

@media (min-width: 1024px) {
  .lg\:text-6xl {
    font-size: 3.75rem;
  }
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* ===================================
   Reusable Components
   =================================== */

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-bg-base),
    0 0 0 4px var(--color-primary-500);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-action-primary) 0%,
    var(--color-primary-500) 100%
  );
  color: white;
  box-shadow: var(--shadow-primary);
}

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

.btn-secondary {
  background-color: var(--color-bg-muted);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-default);
}

.btn-secondary:hover {
  background-color: var(--color-bg-subtle);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--color-bg-elevated);
  border: 1.5px solid var(--color-border-default);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--color-action-primary);
  background-color: var(--color-bg-accent-subtle);
  color: var(--color-action-primary);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* === Cards === */
.card {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.dark .card {
  border-color: rgba(51, 65, 85, 0.5);
}

/* === Common Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: color-mix(in srgb, var(--color-bg-base) 80%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border-default);
}

.site-header-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-primary);
}

.site-header-brand-logo {
  width: 2rem;
  height: 2rem;
}

.site-header-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .site-header-nav {
    display: flex;
  }
}

.site-header-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* === Common Footer === */
.site-footer {
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid var(--color-border-default);
}

.site-footer-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .site-footer-container {
    flex-direction: row;
  }
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-primary);
}

.site-footer-brand-logo {
  width: 2rem;
  height: 2rem;
}

.site-footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

.site-footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* === Legacy Navigation (for backwards compatibility) === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border-default);
  transition: background-color var(--transition-normal);
}

.dark .nav {
  background: rgba(2, 6, 23, 0.8);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--color-text-secondary);
  transition: color var(--transition-normal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* === Theme Toggle === */
.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

.theme-toggle:hover {
  background-color: var(--color-bg-muted);
  color: var(--color-text-primary);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

.dark .theme-toggle .icon-moon {
  display: none;
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* === Details/Accordion === */
details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid var(--color-border-default);
}

details .accordion-content {
  padding: var(--space-6);
  color: var(--color-text-secondary);
}

/* === Step Numbers === */
.step-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary-500);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-3);
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: var(--space-4) var(--space-6);
}

thead tr {
  border-bottom: 1px solid var(--color-border-default);
}

tbody tr {
  border-bottom: 1px solid var(--color-border-default);
}

tbody tr:last-child {
  border-bottom: none;
}

/* === Form Elements === */
input[type="radio"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--color-border-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-normal);
}

input[type="radio"]:checked {
  border-color: var(--color-primary-500);
  background-color: var(--color-primary-500);
  box-shadow: inset 0 0 0 3px var(--color-bg-elevated);
}

/* === Language Switcher === */
.language-switcher {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  background: var(--color-bg-elevated);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.875rem;
  background: transparent;
  color: var(--color-text-muted);
}

.lang-btn.active {
  background: linear-gradient(
    135deg,
    var(--color-action-primary) 0%,
    var(--color-primary-500) 100%
  );
  color: white;
  box-shadow: var(--shadow-primary);
}

.lang-btn:not(.active):hover {
  background-color: var(--color-bg-muted);
  color: var(--color-text-secondary);
}

/* === Dividers === */
.divide-y > * + * {
  border-top: 1px solid var(--color-border-default);
}

/* === Icon Containers === */
.icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-container-sm {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-container-lg {
  width: 4rem;
  height: 4rem;
}

.icon-container svg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-container-primary {
  background: rgba(99, 109, 241, 0.2);
  color: var(--color-primary-500);
}

.icon-container-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-accent-cyan);
}

.icon-container-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-accent-emerald);
}

.icon-container-amber {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-accent-amber);
}

.icon-container-error {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-feedback-error);
}

/* === Animations === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-up-delayed {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-up-delayed-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-up-delayed-3 {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
/* ===================================
   Lean Agility Page-Specific Styles
   =================================== */

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 160px var(--space-6) 100px;
  background:
    radial-gradient(
      ellipse at top,
      rgba(79, 76, 229, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(
      180deg,
      var(--color-bg-base) 0%,
      var(--color-bg-elevated) 100%
    );
  position: relative;
  overflow: hidden;
}

.dark .hero {
  background:
    radial-gradient(
      ellipse at top,
      rgba(99, 109, 241, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, var(--color-bg-base) 0%, var(--color-bg-muted) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(79, 76, 229, 0.03) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: drift 60s linear infinite;
  pointer-events: none;
}

.logo {
  margin-bottom: var(--space-12);
  animation: fadeInDown 0.8s ease-out;
  position: relative;
}

.logo-image {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(79, 76, 229, 0.2));
  transition:
    transform var(--transition-slower),
    filter var(--transition-slower);
}

.logo-image:hover {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 20px 40px rgba(79, 76, 229, 0.3));
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--color-text-primary) 0%,
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  line-height: 1.15;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* === Services Section === */
.services {
  padding: 120px var(--space-6);
  background: var(--color-bg-elevated);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-title h2 {
  font-size: 3.25rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--color-text-primary) 0%,
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-20);
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-10);
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    var(--color-bg-base) 100%
  );
  border: 1.5px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  transition: all var(--transition-slower);
  position: relative;
  overflow: hidden;
}

.dark .service-card {
  background: linear-gradient(
    135deg,
    var(--color-bg-elevated) 0%,
    var(--color-bg-muted) 100%
  );
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-action-primary) 0%,
    var(--color-primary-500) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.15),
    0 18px 36px -18px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
  border-color: rgba(79, 76, 229, 0.3);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--color-action-primary) 0%,
    var(--color-primary-500) 100%
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-slow);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.service-card h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.service-card .description {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.service-features li {
  padding: var(--space-2) 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: 1.6;
}

.service-features li::before {
  content: "\2713";
  color: var(--color-action-primary);
  font-weight: bold;
  font-size: 1.125rem;
  background: var(--color-bg-accent-subtle);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1.5px solid var(--color-border-default);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.meta-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-action-primary);
}

.price {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.service-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* === Contact Section === */
.contact {
  padding: 120px var(--space-6);
  background: linear-gradient(
    180deg,
    var(--color-bg-elevated) 0%,
    var(--color-bg-base) 100%
  );
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 3.25rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--color-text-primary) 0%,
    var(--color-text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-20);
  font-weight: 400;
}

.contact-box {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    var(--color-bg-base) 100%
  );
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--color-border-muted);
}

.dark .contact-box {
  background: linear-gradient(
    135deg,
    var(--color-bg-elevated) 0%,
    var(--color-bg-muted) 100%
  );
}

.contact-box h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  text-align: center;
}

.contact-box > p {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  font-size: 1.0625rem;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-default);
  transition: all var(--transition-slow);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 76, 229, 0.3);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--color-action-primary) 0%,
    var(--color-primary-500) 100%
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.contact-details p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.planning-notice {
  background: linear-gradient(
    135deg,
    var(--color-bg-accent-subtle) 0%,
    var(--color-bg-accent-muted) 100%
  );
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-10);
  display: flex;
  gap: var(--space-5);
  border: 1.5px solid rgba(79, 76, 229, 0.15);
}

.planning-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--color-action-primary) 0%,
    var(--color-primary-500) 100%
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.planning-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.planning-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.planning-content p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
}

/* === Footer === */
footer {
  padding: var(--space-16) var(--space-6);
  background: var(--color-bg-elevated);
  border-top: 1.5px solid var(--color-border-default);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 12px rgba(79, 76, 229, 0.15));
}

.footer-brand-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.footer-brand-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-right {
  text-align: right;
}

.footer-right p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .hero {
    padding: 140px 20px 80px;
  }

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

  .hero p {
    font-size: 1.125rem;
  }

  .logo-image {
    width: 160px;
    height: 160px;
  }

  .services {
    padding: 80px 20px;
  }

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

  .contact {
    padding: 80px 20px;
  }

  .contact-box {
    padding: var(--space-8) var(--space-6);
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  .section-title h2 {
    font-size: 2.375rem;
  }

  .contact h2 {
    font-size: 2.375rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .planning-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .service-card {
    padding: var(--space-6);
  }

  .service-card h3 {
    font-size: 1.375rem;
  }

  .contact-box {
    padding: var(--space-6) var(--space-5);
  }

  .contact-box h3 {
    font-size: 1.625rem;
  }

  .services {
    padding: 60px 16px;
  }

  .contact {
    padding: 60px 16px;
  }

  footer {
    padding: var(--space-10) var(--space-4);
  }
}
