/* =====================================================================
   AUSSCHREIBUNG.AI – Enterprise SaaS Design System
   Main Stylesheet with Tailwind-inspired utility classes
   ===================================================================== */

/* ── CSS CUSTOM PROPERTIES (Design Tokens) ─────────────────────────── */
:root {
  /* Primary Colors - Contractus Navy Palette */
  --primary-900: #0A1626;
  --primary-800: #0F1F35;
  --primary-700: #16324F;
  --primary-600: #2C5678;
  --primary-500: #55606E;
  --primary-400: #8A93A0;
  --primary-300: #C7C0AF;
  --primary-200: #E7E2D6;
  --primary-100: #F1EDE3;
  --primary-50: #FAF8F3;

  /* Brand Colors */
  --brand-primary: #0B1E33;
  --brand-secondary: #16324F;
  --brand-accent: #14B8A6;
  --brand-accent-light: #5EEAD4;

  /* Phase Colors */
  --phase-strategy: #1E3A8A;
  --phase-intelligence: #F59E0B;
  --phase-execution: #10B981;
  --phase-review: #8B5CF6;

  /* Semantic Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* Background Colors */
  --surface: #FFFFFF;
  --bg-primary: #FAF8F3;
  --bg-secondary: #F3EFE6;
  --bg-tertiary: #ECE6D8;
  --bg-dark: #0B1E33;

  /* Text Colors */
  --text-primary: #14213D;
  --text-secondary: #55606E;
  --text-tertiary: #7D8898;
  --text-muted: #9AA3B0;
  --text-inverse: #FFFFFF;

  /* Border Colors */
  --border-light: #E7E2D6;
  --border-medium: #D6CEBA;
  --border-dark: #ADA48E;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Newsreader', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

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

  /* 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-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Layout */
  --header-height: 72px;
  --max-width: 1280px;
  --container-padding: 1.5rem;
}

/* ── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(20, 33, 61, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  padding-top: var(--header-height);
}

/* ── GOOGLE WEBSITE TRANSLATOR ────────────────────────────────────────
   Keep Google's own banner/iframe and highlight styling from disturbing
   the layout; the language switch is our own UI (see .lang-switch). */
body {
  top: 0 !important;
}

#google_translate_element {
  display: none !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Serif italic accent, used inside headlines e.g. <em>Minuten</em> */
em.accent,
.accent-serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--brand-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary);
}

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

/* Lists */
ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-4);
}

/* Forms */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── UTILITY CLASSES ──────────────────────────────────────────────── */

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1440px;
}

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

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing */
.m-0 { margin: var(--space-0); }
.m-2 { margin: var(--space-2); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.my-12 { margin-top: var(--space-12); margin-bottom: var(--space-12); }

.mt-0 { margin-top: var(--space-0); }
.mt-2 { margin-top: var(--space-2); }
.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); }

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

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.p-0 { padding: var(--space-0); }
.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); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }

.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }

.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }

/* Typography Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.leading-none { line-height: var(--leading-none); }
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

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

/* Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.text-brand { color: var(--brand-secondary); }
.text-accent { color: var(--brand-accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.bg-white { background-color: var(--surface); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-dark { background-color: var(--bg-dark); }

/* Borders */
.border { border: 1px solid var(--border-light); }
.border-0 { border: 0; }
.rounded-none { border-radius: var(--radius-none); }
.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-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Width/Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Z-Index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ── COMPONENT STYLES ──────────────────────────────────────────────── */

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.header-logo span {
  color: var(--brand-accent);
}

.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  margin-right: var(--space-2);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  line-height: 1;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-medium);
}

.lang-flag {
  font-size: 14px;
  line-height: 1;
}

.lang-code {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .lang-switch {
    display: none;
  }
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

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

.nav-link.active {
  color: var(--brand-secondary);
  background-color: var(--bg-tertiary);
  font-weight: var(--font-semibold);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  margin: var(--space-2) 0;
  background: var(--border-light);
}

/* Header CTA */
.header-cta {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-inverse);
  background: var(--brand-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.header-cta:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-24);
  background: var(--bg-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(20, 33, 61, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-accent);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: var(--space-6);
}

.hero h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--brand-secondary);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  line-height: var(--leading-none);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* Phase Hero (for lifecycle pages) */
.phase-hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.phase-hero.strategy { background: linear-gradient(135deg, #1E3A8A 0%, #1E4D8C 50%, #0F2A50 100%); }
.phase-hero.intelligence { background: linear-gradient(135deg, #92400E 0%, #D97706 50%, #F59E0B 100%); }
.phase-hero.execution { background: linear-gradient(135deg, #064E3B 0%, #059669 50%, #10B981 100%); }
.phase-hero.review { background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 50%, #8B5CF6 100%); }

.phase-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.phase-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-extrabold);
  color: var(--text-inverse);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  max-width: 700px;
  margin-bottom: var(--space-5);
}

.phase-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phase-hero-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  max-width: 620px;
  margin-bottom: var(--space-8);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

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

.breadcrumb a:hover {
  color: var(--text-inverse);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--brand-secondary);
  color: var(--text-inverse);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--bg-tertiary);
}

/* Variant for buttons placed on dark backgrounds (CTA/testimonial sections) */
.btn-on-dark.btn-primary {
  background: var(--surface);
  color: var(--text-primary);
}

.btn-on-dark.btn-primary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-on-dark.btn-secondary {
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-on-dark.btn-secondary:hover {
  border-color: var(--text-inverse);
  color: var(--text-inverse);
}

.btn-brand {
  background: var(--brand-secondary);
  color: var(--text-inverse);
}

.btn-brand:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--brand-secondary);
  border: 1.5px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--brand-secondary);
  background: var(--bg-tertiary);
}

/* Section Styles */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Lifecycle Bar */
.lifecycle-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, 
    var(--phase-strategy) 0%, 
    var(--phase-strategy) 25%,
    var(--phase-intelligence) 25%,
    var(--phase-intelligence) 50%,
    var(--phase-execution) 50%,
    var(--phase-execution) 75%,
    var(--phase-review) 75%,
    var(--phase-review) 100%
  );
  margin-bottom: var(--space-12);
}

/* Phase Cards */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.phase-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-decoration: none;
  transition: all var(--transition-base);
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.phase-card[data-phase="strategy"]::before { background: var(--phase-strategy); }
.phase-card[data-phase="intelligence"]::before { background: var(--phase-intelligence); }
.phase-card[data-phase="execution"]::before { background: var(--phase-execution); }
.phase-card[data-phase="review"]::before { background: var(--phase-review); }

.phase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.phase-card.current {
  border-color: var(--phase-execution);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.phase-card-num {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: var(--space-4);
}

.phase-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.phase-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.phase-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.phase-card-link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.phase-card:hover .phase-card-link {
  opacity: 1;
}

.phase-card.current .phase-card-link {
  opacity: 0.5;
}

/* Content Layout (for lifecycle pages) */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.content-block h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.content-block p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

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

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

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.sidebar-nav-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: var(--bg-tertiary);
  color: var(--brand-secondary);
  font-weight: var(--font-semibold);
}

.sidebar-nav-num {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  opacity: 0.5;
  min-width: 20px;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

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

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-extrabold);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.step h4 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.highlight-box.blue {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid rgba(30, 58, 138, 0.2);
}

.highlight-box.green {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.highlight-box.amber {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.highlight-box.purple {
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.highlight-box h4 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.highlight-box.blue h4 { color: #1E3A8A; }
.highlight-box.green h4 { color: #065F46; }
.highlight-box.amber h4 { color: #92400E; }
.highlight-box.purple h4 { color: #4C1D95; }

.highlight-box p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.highlight-box.blue p { color: #1D4ED8; }
.highlight-box.green p { color: #047857; }
.highlight-box.amber p { color: #B45309; }
.highlight-box.purple p { color: #6D28D9; }

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.page-nav a:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

/* Contact Form */
.contact-section {
  background: var(--bg-tertiary);
  padding: var(--space-20) 0;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-3xl);
  padding: var(--space-12);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.contact-card h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-4);
}

.contact-card > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-secondary);
}

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

.btn-submit {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-inverse);
  background: var(--brand-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  background: var(--brand-secondary);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-logo span {
  color: var(--brand-accent);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.footer-address {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.footer-column h4 {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-legal a:hover {
  color: var(--brand-primary);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* ── RESPONSIVE STYLES ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --container-padding: 1rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  
  .hero {
    padding: var(--space-16) 0 var(--space-20);
  }
  
  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero-stats {
    gap: var(--space-6);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .phases-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: var(--space-6);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .page-nav {
    flex-direction: column;
  }
  
  .page-nav a {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── PRINT STYLES ─────────────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-btn {
    display: none !important;
  }
  
  body {
    padding-top: 0;
  }
  
  .hero,
  .phase-hero {
    background: white !important;
    color: black !important;
    padding: 2rem 0;
  }
  
  .hero h1,
  .phase-hero h1 {
    color: black !important;
  }
  
  .card {
    break-inside: avoid;
  }
}

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}