/* ===========================
   CSS Variables & Reset
   =========================== */

:root {
  /* Brand colors - exactly 4 blues */
  --brand: #0B63CE;
  --brand-dark: #084A9C;
  --brand-light: #4A90D9;
  --brand-lighter: #D0E3F8;

  /* Background colors - neutrals only */
  --bg-light: #FFFFFF;
  --bg-neutral: #F5F7FA;

  /* Text colors */
  --text: #1A2332;
  --text-muted: #3D4A5C;
  --text-light: #5A6B7D;

  /* Borders - neutral grays */
  --border: #C5CED8;
  --border-light: #E0E5EB;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(1.5rem, 4vw, 2.5rem);
  --space-xl: clamp(2.5rem, 6vw, 4rem);

  /* Layout */
  --max-width: 65ch;
  --container-width: min(1100px, 90vw);

  /* Header offset for anchor scrolling */
  --header-offset: 80px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

/* ===========================
   Base Styles
   =========================== */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-neutral);
  min-height: 100vh;
}

h1, h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===========================
   Accessibility Utilities
   =========================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Hidden language content */
[data-lang][hidden] {
  display: none !important;
}

/* ===========================
   Skip Link
   =========================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  background: var(--brand);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ===========================
   Container
   =========================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===========================
   Header
   =========================== */

header {
  background: var(--bg-light);
  border-bottom: 2px solid var(--brand-lighter);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

/* Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.logo {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.75rem, 1.6rem + 0.6vw, 2.25rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Navigation */
nav {
  flex: 1;
  min-width: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  display: inline-block;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.15s ease;
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

nav a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Language Toggle */
.lang-toggle {
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.lang-options {
  display: flex;
  gap: 2px;
  background: var(--brand-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
}

.lang-option {
  display: block;
  cursor: pointer;
  margin: 0;
}

.lang-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lang-label {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: calc(var(--radius-md) - 2px);
  transition: background-color 0.1s ease, color 0.1s ease;
  line-height: 1;
}

.lang-option input[type="radio"]:checked + .lang-label {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-underline-offset: 2px;
}

.lang-option input[type="radio"]:focus + .lang-label {
  outline: 2px solid var(--brand-dark);
  outline-offset: 1px;
}

.lang-option:hover .lang-label {
  background: rgba(11, 99, 206, 0.1);
}

.lang-option input[type="radio"]:checked + .lang-label:hover {
  background: var(--brand-dark);
}

/* Show (actuel)/(current) only on checked radio */
.lang-current {
  display: none;
}

.lang-option input[type="radio"]:checked + .lang-label .lang-current {
  display: inline;
}

/* ===========================
   Mobile Menu Button
   =========================== */

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--brand-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-btn:hover {
  background: rgba(11, 99, 206, 0.15);
}

.mobile-menu-btn:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.mobile-menu-icon {
  display: block;
  width: 18px;
  height: 14px;
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.mobile-menu-icon::before {
  top: 0;
}

.mobile-menu-icon::after {
  bottom: 0;
}

.mobile-menu-btn .mobile-menu-icon::before {
  box-shadow: 0 6px 0 currentColor;
}

/* ===========================
   Mobile Menu Panel
   =========================== */

.mobile-menu {
  display: none;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-list a {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.mobile-nav-list a:hover {
  color: var(--brand);
}

.mobile-nav-list a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.mobile-lang-toggle {
  margin-top: var(--space-md);
  padding: 0;
  border: none;
}

.mobile-lang-toggle legend {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.mobile-lang-toggle .lang-options {
  background: var(--brand-lighter);
}

/* Header responsive - breakpoint at 920px to prevent nav wrapping */
@media (max-width: 919px) {
  .header-container {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  /* Hide desktop nav and language toggle on mobile/tablet */
  .desktop-nav,
  .desktop-lang {
    display: none !important;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile menu panel styles when open */
  .mobile-menu:not([hidden]) {
    display: block;
    width: 100%;
    order: 10;
    margin-top: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-light);
  }
}

@media (min-width: 920px) {
  .header-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .nav-list {
    flex-wrap: nowrap;
  }
  .desktop-nav {
    margin-left: var(--space-lg);
  }
  .desktop-lang {
    margin-left: auto;
  }

  /* Hide mobile menu elements on desktop */
  .mobile-menu-btn,
  .mobile-menu {
    display: none !important;
  }
}

/* ===========================
   Main Content
   =========================== */

main {
  background: transparent;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  background: var(--brand-lighter);
  padding: var(--space-xl) 0;
  border-bottom: none;
}

.hero h1 {
  font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: var(--space-sm);
  max-width: 26ch;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.5;
}

/* ===========================
   Sections
   =========================== */

.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
  scroll-margin-top: var(--header-offset);
}

/* Services section: gradient from brand-lighter to white */
.section--services {
  background: linear-gradient(to bottom, var(--brand-lighter) 0%, var(--bg-light) 60%);
}

/* Blue section variant for large background areas */
.section--blue {
  background: var(--brand-lighter);
  color: #fff;
}

.section--blue h2 {
  color: #fff;
}

.section--blue .clients-list li {
  background: #fff;
  border-left-color: var(--brand-dark);
  color: var(--text);
}

/* White/neutral section variant */
.section--white {
  background: var(--bg-light);
}

/* Neutral section (for contact/footer area) */
.section--neutral {
  background: var(--bg-neutral);
}

.section--neutral h2 {
  color: var(--brand-dark);
}

/* Privacy section styling on neutral */
.section--neutral.section-compact p {
  color: var(--text-muted);
}

.section--neutral.section-compact a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section--neutral.section-compact a:hover {
  text-decoration: none;
}

.section--neutral.section-compact a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

/* Privacy section styling on blue (kept for future use) */
.section--blue.section-compact p {
  color: rgba(255, 255, 255, 0.9);
}

.section--blue.section-compact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section--blue.section-compact a:hover {
  text-decoration: none;
}

.section--blue.section-compact a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.section:last-of-type {
  border-bottom: none;
}

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

.section h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  margin-bottom: var(--space-lg);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Optional: Sticky section titles for scroll emphasis
   Enable with data-effects="on" on <html> or ?effects=1 query param
   Respects prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  html[data-effects="on"] .section h2 {
    position: sticky;
    top: calc(var(--header-offset) + 0.5rem);
    background: inherit;
    padding: var(--space-xs) 0;
    z-index: 5;
  }
}

.section h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
  font-weight: 600;
}

/* ===========================
   Services Cards (details/summary)
   =========================== */

.services-list {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

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

@media (min-width: 900px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand);
}

.service-summary {
  display: block;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 4px);
  cursor: pointer;
  position: relative;
  list-style: none;
}

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

.service-summary::marker {
  display: none;
  content: '';
}

.service-summary h3 {
  color: var(--brand-dark);
  margin-bottom: var(--space-xs);
  font-size: 1.0625rem;
  padding-right: 1.5rem;
}

.service-tagline {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  padding-right: 1.5rem;
}

/* Chevron indicator */
.service-chevron {
  position: absolute;
  top: calc(var(--space-md) + 8px);
  right: var(--space-md);
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.service-card[open] .service-chevron {
  transform: rotate(-135deg);
}

.service-summary:hover {
  background: rgba(11, 99, 206, 0.08);
}

.service-summary:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

/* Expanded content */
.service-details {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}

.service-details p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.service-details ul {
  margin: var(--space-sm) 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.service-details li {
  margin-bottom: 0.375rem;
}

.service-details li:last-child {
  margin-bottom: 0;
}

.service-links {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.service-links a {
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.service-links a:hover {
  text-decoration: underline;
}

.service-links a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===========================
   ML/AI Aside (secondary)
   =========================== */

.ml-aside {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-light);
  border-radius: var(--radius-md);
  max-width: 600px;
}

.ml-aside h3 {
  font-size: 1rem;
  color: var(--brand-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.ml-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.ml-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm) 0;
}

.ml-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.375rem;
}

.ml-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-light);
}

.ml-list li:last-child {
  margin-bottom: 0;
}

.ml-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-light);
}

/* ===========================
   Process List
   =========================== */

.process-list {
  list-style: none;
  counter-reset: process;
  max-width: var(--max-width);
}

.process-list li {
  counter-increment: process;
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.process-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.process-list li::before {
  content: counter(process);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.process-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-weight: 600;
}

.process-list .process-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ===========================
   Clients List
   =========================== */

.clients-list {
  list-style: none;
  max-width: var(--max-width);
  display: grid;
  gap: var(--space-sm);
}

.clients-list li {
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--brand);
  background: var(--brand-lighter);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ===========================
   Contact Section
   =========================== */

.section--blue .contact-intro {
  color: --text;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.contact-details {
  font-style: normal;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-dark);
}

.section--blue .contact-details {
  background: #fff;
  border-left-color: var(--brand-dark);
}

.section--neutral .contact-details {
  background: var(--bg-light);
  border-left-color: var(--brand);
}

.contact-email {
  margin-bottom: 0;
}

.contact-email a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-email a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ===========================
   Form Styles
   =========================== */

.form-container {
  max-width: 500px;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.section--blue .form-container {
  background: #fff;
  border-color: transparent;
}

.section--neutral .form-container {
  background: var(--bg-light);
  border-color: var(--border);
}

#form-heading {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--text);
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--text);
  transition: border-color 0.1s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(8, 74, 156, 0.2);
}

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

.form-actions {
  margin-top: var(--space-md);
}

button[type="submit"] {
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.1s ease;
}

button[type="submit"]:hover {
  background: var(--brand-dark);
}

button[type="submit"]:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 4px;
}

.form-note {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===========================
   Footer (Neutral background)
   =========================== */

footer {
  background: var(--bg-neutral);
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
  text-align: center;
}

footer p {
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-brand {
  font-weight: 500;
  color: var(--text);
}

.footer-contact {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

footer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover {
  text-decoration: none;
}

footer a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer-note {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===========================
   Links
   =========================== */

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

a:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===========================
   Buttons / CTAs
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

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

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.btn--outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.hero--dark .btn:focus {
  outline-color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ===========================
   Hero - Dark variant (home)
   =========================== */

.hero--dark {
  background: #0a1628;
  background-image: radial-gradient(ellipse at 72% 40%, rgba(11, 99, 206, 0.22) 0%, transparent 58%);
  min-height: clamp(60vh, 72vh, 84vh);
  display: flex;
  align-items: center;
  padding: calc(var(--space-xl) * 1.5) 0;
  border-bottom: 4px solid var(--brand);
  position: relative;
  overflow: hidden;
}

/* Dot-grid background for technical atmosphere */
.hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74, 144, 217, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

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

.hero--dark h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  line-height: 1.08;
  max-width: 16ch;
  font-weight: 800;
  letter-spacing: 0;
  font-stretch: normal;
  margin-bottom: var(--space-sm);
}

/* Accented word in hero headline */
.hero--dark h1 em {
  font-style: normal;
  color: var(--brand-light);
  position: relative;
}

.hero--dark .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  max-width: 50ch;
  line-height: 1.5;
  margin: 0;
}

/* Hero entrance animation — staggered fade-up */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero--dark h1 {
    animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero--dark .hero-subtitle {
    animation: heroFadeUp 0.65s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero--dark .hero-actions {
    animation: heroFadeUp 0.65s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* ===========================
   Hero - Inner page variant
   =========================== */

.hero--inner {
  background: var(--brand-lighter);
  padding: var(--space-xl) 0;
  border-bottom: 3px solid var(--brand);
}

.hero--inner h1 {
  font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem);
  color: var(--brand-dark);
  max-width: 30ch;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.hero--inner .hero-subtitle {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.hero-breadcrumb {
  font-size: 0.875rem;
  color: var(--brand);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.hero-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  text-decoration: underline;
}

/* ===========================
   Offer Cards (Home page grid)
   =========================== */

.offers-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.offers-section h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.offers-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

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

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

.offer-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-light);
  opacity: 0.45;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.offer-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 24px rgba(11, 99, 206, 0.14);
  transform: translateY(-2px);
}

.offer-card:hover::before {
  background: var(--brand);
  opacity: 1;
}

.offer-card:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

.offer-icon {
  width: 3rem;
  height: 3rem;
  background: var(--brand-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.offer-card h3 {
  font-size: 1.0625rem;
  color: var(--brand-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.offer-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.offer-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  margin-top: auto;
}

.offer-link::after {
  content: '→';
  transition: transform 0.18s ease;
  display: inline-block;
}

.offer-card:hover .offer-link::after {
  transform: translateX(4px);
}

.offer-link:hover {
  text-decoration: underline;
}

/* ===========================
   Profile / Differentiator block
   =========================== */

.profile-section {
  background: #0f1f38;
  padding: var(--space-xl) 0;
  border-bottom: none;
}

.profile-section h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.profile-section p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.diff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 60ch;
}

.diff-list li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin-bottom: 0.625rem;
}

.diff-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-light);
  font-weight: 700;
}

.diff-list li:last-child {
  margin-bottom: 0;
}

/* ===========================
   "Who it's for" section (home)
   =========================== */

.audience-section {
  background: var(--brand-lighter);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(11, 99, 206, 0.15);
}

.audience-section h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.audience-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
  max-width: 800px;
}

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

.audience-item {
  padding: var(--space-sm) var(--space-md);
  background: #fff;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ===========================
   Nav - active page indicator
   =========================== */

nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

nav a[aria-current="page"]::after {
  width: 100%;
}

/* ===========================
   Offer page layout (two-column)
   =========================== */

.page-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: var(--header-offset);
}

.page-layout {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .page-layout {
    grid-template-columns: 1fr 260px;
  }
}

.page-content h3 {
  font-size: 1.125rem;
  color: var(--brand-dark);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
  font-weight: 600;
}

.page-content h3:first-child {
  margin-top: 0;
}

.page-content ul,
.page-content ol {
  margin: var(--space-xs) 0 var(--space-sm);
  padding-left: 1.375rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content li:last-child {
  margin-bottom: 0;
}

.page-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

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

.page-content strong {
  color: var(--text);
  font-weight: 600;
}

/* Alternating section backgrounds on offer pages */
.page-section:nth-of-type(even) {
  background: var(--bg-neutral);
}

/* ===========================
   Project cards (home page)
   =========================== */

.projects-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.projects-section h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

.projects-intro {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
  max-width: 55ch;
}

.projects-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

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

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

.project-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.project-card h3 {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.project-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.project-tech span {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--brand-lighter);
  color: var(--brand-dark);
  border-radius: 2rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===========================
   Sidebar CTA
   =========================== */

.sidebar-cta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--header-offset) + var(--space-md));
}

.sidebar-cta h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.sidebar-cta p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.sidebar-cta .btn {
  width: 100%;
  margin-bottom: var(--space-xs);
}

.sidebar-email {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
  margin-top: var(--space-xs);
  line-height: 1.4;
}

.sidebar-email a {
  color: var(--brand);
  font-weight: 500;
}

/* ===========================
   Contact page options
   =========================== */

.contact-options {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}

@media (min-width: 700px) {
  .contact-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-option {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
}

.contact-option-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.contact-option h3 {
  font-size: 1.0625rem;
  color: var(--brand-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.contact-option p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
}

.contact-option .btn {
  width: 100%;
  margin-top: auto;
}

.contact-option address {
  font-style: normal;
  margin-top: auto;
}

.contact-option .contact-email-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  word-break: break-all;
}

.contact-option .contact-email-link:hover {
  text-decoration: underline;
}

/* ===========================
   Contact form (contact page)
   =========================== */

.contact-form-section {
  background: var(--bg-neutral);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-light);
}

.contact-form-section h2 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  color: var(--brand-dark);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

/* ===========================
   Privacy page
   =========================== */

.privacy-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
}

.privacy-section h3 {
  font-size: 1.0625rem;
  color: var(--brand-dark);
  margin-bottom: var(--space-xs);
  margin-top: var(--space-lg);
  font-weight: 600;
}

.privacy-section h3:first-child {
  margin-top: 0;
}

.privacy-section p,
.privacy-section ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

.privacy-section ul {
  padding-left: 1.25rem;
}

.privacy-section a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-lang-divider {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: var(--space-xl) 0;
}

/* ===========================
   Footer - expanded with links
   =========================== */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ===========================
   CTA Band (home closing CTA)
   =========================== */

.cta-band {
  background: var(--brand);
  padding: calc(var(--space-xl) * 1.2) 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  margin: 0 auto var(--space-md);
  font-size: 1rem;
  line-height: 1.6;
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ===========================
   Products Page
   =========================== */

.products-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
}

.products-heading {
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.products-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

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

.product-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.product-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  line-height: 1.4;
}

.product-badge--version {
  background: var(--brand);
  color: #fff;
}

.product-badge--platform {
  background: var(--brand-lighter);
  color: var(--brand-dark);
}

.product-badge--soon {
  background: var(--bg-neutral);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

.product-name {
  font-size: 1.375rem;
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.product-audience {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-light);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

.product-notes {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-notes summary {
  padding: 0.625rem var(--space-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  user-select: none;
}

.product-notes summary::-webkit-details-marker { display: none; }
.product-notes summary::marker { display: none; content: ''; }

.product-notes summary::before {
  content: '▸';
  font-size: 0.75rem;
  display: inline-block;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.product-notes[open] summary::before {
  transform: rotate(90deg);
}

.product-notes summary:hover {
  background: rgba(11, 99, 206, 0.05);
}

.product-notes summary:focus {
  outline: 2px solid var(--brand-dark);
  outline-offset: -2px;
}

.product-notes-content {
  padding: var(--space-sm);
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-notes-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.product-notes-content li {
  margin-bottom: 0.25rem;
}

.product-notes-content li:last-child {
  margin-bottom: 0;
}

.products-note {
  margin-top: var(--space-xl);
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
}

/* ===========================
   Print Styles
   =========================== */

@media print {
  body {
    background: #fff;
  }
  header {
    position: static;
  }
  .skip-link,
  .lang-toggle {
    display: none;
  }
  .section,
  .section--blue,
  .section--services {
    background: #fff;
    border: none;
    color: var(--text);
  }
  .section--blue h2,
  .section--blue .clients-list li {
    color: var(--text);
  }
  .service-card {
    break-inside: avoid;
  }
  .service-card[open] .service-details {
    display: block;
  }
}
