/* =========================================================
   Aicorvia — Hyper Minimal Design System
   Stylesheet: design tokens, layout, components, responsive
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Monochrome palette — black / white / system grays */
  --color-primary: #000000;
  --color-primary-light: #424245;
  --color-secondary: #6e6e73;
  --color-accent: #000000;

  /* Backgrounds */
  --bg-dark: #f5f5f7;       /* "dark" sections are now Apple light gray */
  --bg-dark-2: #ebebf0;
  --bg-light: #f5f5f7;
  --bg-white: #ffffff;

  /* Text */
  --text-on-dark: #1d1d1f;
  --text-on-dark-muted: #6e6e73;
  --text-on-light: #1d1d1f;
  --text-on-light-muted: #6e6e73;

  /* Borders */
  --border-dark: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);

  /* Layout */
  --container-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows — restrained */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: none;

  /* Spacing */
  --section-padding: clamp(64px, 9vw, 128px);
  --section-padding-tight: clamp(40px, 5vw, 64px);

  /* Typography — Apple system font stack */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.4s var(--ease-out);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--bg-white);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

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

/* ---------- 3. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  top: -50px;
  inset-inline-start: 12px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  border-radius: 4px;
}

.section { padding-block: var(--section-padding); }
.section-tight { padding-block: var(--section-padding-tight); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark .section-lead { color: var(--text-on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 14px;
}
.section-dark .eyebrow { color: var(--color-secondary); }

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  margin: 0 0 18px;
}

.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-on-light-muted);
  max-width: 640px;
  margin: 0;
}
.small-note { font-size: 14px; opacity: 0.8; }

.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* glass is replaced by a clean white card */
.glass {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-on-light);
  transition: gap var(--transition-fast);
}
.text-link:hover { gap: 10px; }
.section-dark .text-link { color: var(--text-on-dark); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #000;
  color: #fff;
}
.btn-primary:hover { background: #333; }
.btn-outline {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.22);
  color: #1d1d1f;
}
.section-dark .btn-outline,
.hero .btn-outline { border-color: rgba(0, 0, 0, 0.22); color: #1d1d1f; }
.btn-outline:hover { background: rgba(0, 0, 0, 0.05); }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-full { width: 100%; }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 5. REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 6. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 16px;
  transition: background var(--transition-med), padding var(--transition-med), box-shadow var(--transition-med);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: #1d1d1f; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: none;
  border: none;
  color: #424245;
  font-weight: 500;
  font-size: 14px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #1d1d1f; background: rgba(0, 0, 0, 0.04); }
.chevron { transition: transform var(--transition-fast); }
.dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 300px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}
.has-dropdown.open .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.dropdown-item:hover { background: rgba(0, 0, 0, 0.04); }
.dropdown-item-title { color: #1d1d1f; font-weight: 600; font-size: 14px; }
.dropdown-item-desc { color: #6e6e73; font-size: 12.5px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- 6a. LANGUAGE SWITCHER ---------- */
.lang-switcher { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #424245;
  font-weight: 600;
  font-size: 13px;
  transition: background var(--transition-fast);
}
.lang-toggle:hover { background: rgba(0, 0, 0, 0.08); }
.lang-toggle .chevron { transition: transform var(--transition-fast); }
.lang-switcher.open .lang-toggle .chevron { transform: rotate(180deg); }
.lang-current { letter-spacing: 0.02em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 10;
}
.lang-switcher.open .lang-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.lang-option {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  color: #6e6e73;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  min-height: 40px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.lang-option:hover { background: rgba(0, 0, 0, 0.04); color: #1d1d1f; }
.lang-option.active { color: #1d1d1f; background: rgba(0, 0, 0, 0.06); font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: #1d1d1f;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  background: #fff;
  color: #1d1d1f;
  overflow: hidden;
}

/* hide glow/grid overlays; keep the canvas */
.hero-glow,
.hero-grid,
.hero-shape { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
}

/* Grid items default to a content-based min-width, so a single long unbroken
   word (common in German compounds) can force a track to blow out and crush
   its sibling. min-width: 0 lets tracks shrink to their fr share instead. */
.hero-copy, .hero-visual,
.problem-copy, .problem-media,
.enablement-copy, .enablement-media,
.about-copy, .about-media,
.contact-info, .contact-form-wrap {
  min-width: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  overflow-wrap: break-word;
  hyphens: auto;
  color: #1d1d1f;
  margin: 0 0 20px;
}
.hero-text {
  font-size: clamp(16px, 1.5vw, 18px);
  color: #6e6e73;
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.trust-line { font-size: 13.5px; color: #6e6e73; }

.hero-visual { position: relative; }
.hero-visual-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 10;
  container-type: inline-size;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.hero-slideshow { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide-composite .hero-slide-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-paper-text {
  position: absolute;
  top: 4.5%; left: 2.5%; right: 8%;
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(16px, 8cqw, 44px);
  line-height: 1;
  color: #201d1d;
  mix-blend-mode: multiply;
  opacity: 0.88;
}
.hero-screen-logo {
  position: absolute;
  top: 25.3%; right: 10.9%; bottom: 34.4%; left: 18.7%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2cqw;
}
.hero-screen-logo img {
  width: 14cqw; max-width: 60px;
  border-radius: 6px;
}
.hero-screen-logo span {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(13px, 6.5cqw, 32px);
  color: #1d1d1f;
}
.hero-visual-badge {
  position: absolute;
  inset-inline-start: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: #1d1d1f;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #1d1d1f; }
.hero-visual-float {
  position: absolute;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px; font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: floatShape 9s ease-in-out infinite;
}
.float-1 { top: 8%; inset-inline-end: -6%; }
.float-2 { bottom: 14%; inset-inline-start: -8%; animation-delay: -4s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 8. PROBLEM SECTION ---------- */
.problem-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.pain-list { display: grid; gap: 22px; margin-top: 32px; }
.pain-item { display: flex; gap: 16px; align-items: flex-start; }
.pain-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}
.pain-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pain-item p { font-size: 14.5px; color: var(--text-on-light-muted); }
.problem-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- 9. VALUE CARDS ---------- */
.value-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-md);
}
.value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  margin-bottom: 20px;
}
.value-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; color: #1d1d1f; overflow-wrap: break-word; hyphens: auto; }
.value-card p { color: #6e6e73; font-size: 15px; }

/* ---------- 10. PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.process-card { position: relative; }
.process-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.process-media img { width: 100%; aspect-ratio: 7/5; object-fit: cover; }
.process-number {
  position: absolute; top: 16px; inset-inline-start: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
}
.process-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.process-card p { color: var(--text-on-light-muted); font-size: 15px; }

/* ---------- 11. CTA BANNER ---------- */
.cta-banner {
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);
  overflow: hidden;
  text-align: center;
  background: #f5f5f7;
  color: #1d1d1f;
}
.cta-banner-bg { display: none; }
.cta-banner-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.cta-banner h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.018em; }
.cta-banner p { font-size: 17px; color: #6e6e73; margin-bottom: 30px; }

/* ---------- 12. SERVICES ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0.12); }
.service-media { position: relative; }
.service-media img { width: 100%; aspect-ratio: 7/5; object-fit: cover; display: block; }
.service-number {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
}
.service-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px 24px 26px; }
.service-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--text-on-light-muted); font-size: 15px; margin-bottom: 18px; flex-grow: 1; }

/* ---------- 13. STATS ---------- */
.stats-grid { margin-top: 8px; }
.stat-card { text-align: center; padding: 24px 12px; }
.stat-number {
  display: block;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.stat-card p { color: var(--text-on-dark-muted); font-size: 14.5px; }

/* ---------- 14. INDUSTRIES ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.industry-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.industry-card:hover img { transform: scale(1.04); }
.industry-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 10%, rgba(0,0,0,0.04) 60%);
}
.industry-name {
  position: relative; z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 22px;
}

/* ---------- 15. ENABLEMENT / ACCORDION ---------- */
.enablement-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.enablement-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.accordion { margin-top: 30px; border-top: 1px solid rgba(0,0,0,0.08); }
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  background: none; border: none;
  color: #1d1d1f;
  padding: 20px 4px;
  font-size: 17px; font-weight: 600;
  text-align: start;
}
.accordion-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.accordion-icon { margin-inline-start: auto; transition: transform var(--transition-fast); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { overflow: hidden; padding-block: 0 20px; padding-inline: 4px; padding-inline-start: 46px; }
.accordion-panel p { color: #6e6e73; font-size: 15px; max-width: 520px; }
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq-wrap .accordion-panel p { max-width: none; }

/* ---------- 16. CASE STUDIES ---------- */
.case-card { display: flex; flex-direction: column; }
.case-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.case-media img { width: 100%; aspect-ratio: 7/5; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.case-card:hover .case-media img { transform: scale(1.03); }
.case-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 10px;
}
.case-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.case-card p { color: var(--text-on-light-muted); font-size: 15px; margin-bottom: 16px; }

/* ---------- 17. TESTIMONIALS ---------- */
.testimonial-slider { position: relative; }
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 0;
}
.testimonial-card .quote { font-size: 15.5px; line-height: 1.65; color: #1d1d1f; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { display: block; font-style: normal; font-weight: 600; font-size: 14px; color: #1d1d1f; }
.author-role { display: block; font-size: 12.5px; color: #6e6e73; }
.testimonial-dots { display: none; justify-content: center; gap: 8px; margin-top: 24px; }
.dot-btn {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,0.18); border: none; padding: 0;
  min-height: 0;
}
.dot-btn.active { background: #1d1d1f; }

/* ---------- 18. ABOUT ---------- */
.about-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.about-copy p:not(.section-lead) { color: var(--text-on-light-muted); margin-top: 16px; }
.about-copy .btn-outline { margin-top: 28px; }

/* ---------- 19. LOGOS ---------- */
.logos-section { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.logos-title { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: #6e6e73; margin-bottom: 28px; }
.logos-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 24px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  color: #6e6e73;
  background: #fff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.logo-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.logo-chip-icon { flex-shrink: 0; }
.logo-chip-name { line-height: 1.2; }

/* ---------- 20. BLOG ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.blog-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.blog-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.blog-category {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: #1d1d1f; background: rgba(0,0,0,0.06);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.blog-date { font-size: 13px; color: var(--text-on-light-muted); }
.blog-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.blog-card p { color: var(--text-on-light-muted); font-size: 14.5px; margin-bottom: 14px; }

/* ---------- 21. CONTACT ---------- */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 26px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}
.contact-info-item strong { display: block; margin-bottom: 4px; font-size: 15px; color: #1d1d1f; }
.contact-info-item p, .contact-info-item a { color: #6e6e73; font-size: 14.5px; }
.contact-info-item a:hover { color: #1d1d1f; }

.contact-form-wrap { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); background: #f5f5f7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: #1d1d1f; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #1d1d1f;
  transition: border-color var(--transition-fast);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: #1d1d1f;
  outline: none;
}
.form-field select option { color: #1d1d1f; }
.form-field-checkbox { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
.form-field-checkbox input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: #1d1d1f; }
.form-field-checkbox label { font-weight: 500; font-size: 13.5px; color: #6e6e73; flex: 1; }
.field-error { font-size: 12.5px; color: #c0392b; min-height: 16px; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #c0392b; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1d1d1f;
  font-size: 14.5px;
}
.form-status.is-error {
  background: rgba(192,57,43,0.08);
  border-color: rgba(192,57,43,0.35);
  color: #c0392b;
}

/* ---------- 22. FOOTER ---------- */
.site-footer { background: #1d1d1f; color: rgba(255,255,255,0.55); padding-top: clamp(56px, 6vw, 84px); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin: 16px 0 20px; font-size: 14.5px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14px; transition: color var(--transition-fast); }
.footer-col a:hover { color: #fff; }
.footer-cta-col p { font-size: 14px; margin-bottom: 18px; }
.footer-brand .logo-text { color: #fff; }

/* footer CTA button override */
.site-footer .btn-primary { background: #fff; color: #1d1d1f; }
.site-footer .btn-primary:hover { background: rgba(255,255,255,0.88); }
.site-footer .btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.site-footer .btn-outline:hover { background: rgba(255,255,255,0.08); }

/* footer newsletter signup */
.footer-newsletter-col p { font-size: 14px; margin-bottom: 18px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.newsletter-form .btn { width: 100%; }
.newsletter-status { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.85); }
.newsletter-status.is-error { color: #e57368; }

/* Spam honeypot fields (see api/security.php) — clipped away, never shown.
   No left:-10000px: in RTL (fa) that widened the page to ~10,000px. */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.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;
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 24px;
  font-size: 13.5px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a:hover { color: #fff; }

/* ---------- 23. SERVICE DETAIL PAGES ---------- */
.page-hero { padding-top: max(var(--section-padding-tight), 104px); }
.page-back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #6e6e73;
  margin-bottom: 28px;
  transition: color var(--transition-fast);
}
.page-back-link:hover { color: #1d1d1f; }
.page-back-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-start: 2px solid currentColor;
  border-block-start: 2px solid currentColor;
  transform: rotate(-45deg);
}
[dir="rtl"] .page-back-link::before { transform: rotate(135deg); }

.page-hero .section-title { max-width: 720px; }
.page-hero .section-lead { max-width: 620px; }
.page-hero .section-lead + .btn { margin-top: 24px; }

.service-hero-media { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.service-hero-media img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; margin-top: 32px; max-width: 900px; margin-inline: auto; }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .problem-layout, .enablement-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .problem-media, .enablement-media, .about-media { order: -1; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; width: 100%; max-width: 420px; margin-inline: auto; }
  .hero-actions, .hero-copy { justify-content: center; }
  .hero-actions { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav, .header-actions .btn-primary { display: none; }
  .hamburger { display: flex; }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0; inset-inline-end: 0;
    height: 100vh;
    width: min(340px, 84vw);
    background: #fff;
    border-inline-start: 1px solid rgba(0,0,0,0.08);
    flex-direction: column;
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    overflow-y: auto;
  }
  [dir="rtl"] .main-nav { transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 16px; }
  .has-dropdown { width: 100%; }
  .dropdown-panel {
    position: static;
    transform: none;
    width: 100%;
    max-height: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: hidden;
    transition: max-height var(--transition-med), padding var(--transition-med);
  }
  .has-dropdown.open .dropdown-panel { max-height: 600px; padding: 6px 0 10px; transform: none; }

  .header-actions { gap: 10px; }
  .mobile-cta-wrap { display: block; }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-track {
    grid-template-columns: 100%;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .testimonial-card { scroll-snap-align: start; min-width: 100%; }
  .testimonial-dots { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .service-hero-media img { aspect-ratio: 16/10; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4, .industry-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 96px; min-height: auto; padding-bottom: 60px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .float-1 { inset-inline-end: 8px; }
  .float-2 { inset-inline-start: 8px; }
  .btn { min-height: 46px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 30px; }
}

@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .logo-text { font-size: 17px; }
  .hero-title { font-size: 34px; }
}

/* =========================================================
   INTERNATIONALIZATION (EN / FA / DE)
   ========================================================= */

/* ---------- Persian (Vazirmatn) typeface ---------- */
html[lang="fa"] body {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.85;
}

/* Letter-spacing and uppercase transforms break the joined letterforms of the
   Persian/Arabic script — disable them whenever the active language is Farsi. */
html[lang="fa"] .eyebrow,
html[lang="fa"] .hero-title,
html[lang="fa"] .section-title,
html[lang="fa"] .blog-category,
html[lang="fa"] .case-tag,
html[lang="fa"] .logos-title,
html[lang="fa"] .service-number,
html[lang="fa"] .btn {
  letter-spacing: 0;
}
html[lang="fa"] .eyebrow,
html[lang="fa"] .blog-category,
html[lang="fa"] .case-tag,
html[lang="fa"] .logos-title {
  text-transform: none;
}

/* ---------- RTL layout mirroring ---------- */
[dir="rtl"] .industry-name { text-align: start; }
[dir="rtl"] .quote::before,
[dir="rtl"] .quote::after { unicode-bidi: plaintext; }

/* ---------- 24. RATGEBER (GUIDE ARTICLES) ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 48px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 30px 0 8px; }
.article p, .article li { font-size: 17px; line-height: 1.7; color: #3a3a3c; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-inline-start: 22px; margin: 0 0 18px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article-note { background: #f5f5f7; border-radius: 14px; padding: 16px 20px; font-size: 15px !important; }
.article-meta { font-size: 14px; color: #6e6e73; margin: 0 0 6px; }
.page-hero .article-meta { margin-top: 18px; }
.article-more { font-weight: 600; font-size: 15px; }
