/* ==========================================================================
   Alman Operations LLC — enterprise infrastructure engineering
   Design direction: control-room. Dark, dense, technical, high contrast.
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------- */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins/Poppins-Light.ttf") format("truetype");     font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");    font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");      font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens --------------------------------------------------- */
:root {
  /* surfaces */
  --bg:            #060A15;
  --bg-deep:       #04070F;
  --surface:       #0B1223;
  --surface-2:     #101A31;
  --surface-3:     #16223D;
  --line:          rgba(140, 168, 220, 0.16);
  --line-strong:   rgba(140, 168, 220, 0.30);

  /* text */
  --text:          #E9EFFB;
  --text-muted:    #A8B7D4;
  --text-dim:      #7A8AAA;

  /* brand + signal */
  --primary:       #3266FF;
  --primary-lift:  #5B85FF;
  --cyan:          #0ADAFB;
  --violet:        #7A6CFF;
  --green:         #4ADE9B;
  --amber:         #FFB454;

  /* geometry */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --pad-card: 26px;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(2, 6, 16, 0.6), 0 8px 24px -12px rgba(2, 6, 16, 0.9);
  --shadow-2: 0 2px 6px rgba(2, 6, 16, 0.5), 0 24px 60px -28px rgba(2, 6, 16, 1);
  --glow-primary: 0 0 0 1px rgba(50, 102, 255, 0.35), 0 18px 50px -22px rgba(50, 102, 255, 0.85);

  /* motion */
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 620ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);

  /* typefaces */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Noto Naskh Arabic", "Arial", sans-serif;

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --topbar-h: 40px;
  --header-h: 74px;
}

@property --explode { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ---------- Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; transition: color var(--dur-fast) var(--ease-sharp); }
a:hover { color: #7EEBFF; }

ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
img { outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; }
img.no-outline { outline: none; }

strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(50, 102, 255, 0.4); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7;
}

/* ---------- Buttons -------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: #fff;
  font: inherit; font-weight: 500; font-size: 0.94rem;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition-property: transform, background-color, box-shadow, border-color, color;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-sharp);
}
.btn:hover { background: var(--primary-lift); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(140, 168, 220, 0.08); border-color: var(--cyan); color: var(--text); }

.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Topbar --------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--topbar-h);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: var(--text-muted); }
.topbar a:hover { color: var(--cyan); }
.topbar-contact { display: flex; align-items: center; gap: 22px; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-contact a { text-transform: none; letter-spacing: 0.03em; }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease-sharp), color var(--dur-fast) var(--ease-sharp);
}
.topbar-social a:hover { background: rgba(140, 168, 220, 0.1); }
.topbar svg { width: 15px; height: 15px; }

.lang-switch {
  /* flag chip: 30x20 flag inside a 44x32 hit area */
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 32px; padding: 0; margin-inline-end: 4px;
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease-sharp);
}
.lang-switch svg {
  width: 30px; height: 20px; display: block;
  border-radius: 3px;
  outline: 1px solid rgba(255, 255, 255, 0.18); outline-offset: -1px;
  transition: outline-color var(--dur-fast) var(--ease-sharp), transform var(--dur-fast) var(--ease-sharp);
}
.lang-switch:hover { background: rgba(140, 168, 220, 0.1); }
.lang-switch:hover svg { outline-color: var(--cyan); transform: translateY(-1px); }

/* ---------- Header --------------------------------------------------- */
.site-header {
  position: fixed; inset: var(--topbar-h) 0 auto; z-index: 70;
  height: var(--header-h);
  background: rgba(6, 10, 21, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-sharp), border-color var(--dur) var(--ease-sharp);
}
.site-header.is-scrolled {
  background: rgba(6, 10, 21, 0.94);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 190px; height: auto; display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 0.93rem;
  transition-property: color, background-color;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-sharp);
}
.nav a:hover { color: var(--text); background: rgba(140, 168, 220, 0.08); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--primary));
}
.nav .btn { margin-left: 12px; padding: 10px 20px; min-height: 42px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ----------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--topbar-h) + var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 12%, rgba(50, 102, 255, 0.20), transparent 62%),
    radial-gradient(760px 520px at 12% 82%, rgba(10, 218, 251, 0.11), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 62%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 168, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 168, 220, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
}
.hero > .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 92px);
  align-items: center;
}

.hero-copy { max-width: 100%; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(96deg, var(--cyan) 0%, var(--primary-lift) 58%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.16rem); max-width: 50ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero-facts div { background: var(--surface); padding: 18px 20px; }
.hero-facts dt { color: var(--text-dim); margin-bottom: 6px; }
.hero-facts dd { margin: 0; font-size: 1.06rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.hero-facts dd small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }

/* ---------- Exploded stack ------------------------------------------ */
.stack-stage {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  --explode: 1;
  --px: 0;
  --py: 0;
  --zoom: 1;
  transform: scale(var(--zoom));
  transform-origin: 52% 42%;
  will-change: transform;
}
.stack-stage:not(.is-live) {
  animation: stackReveal 1750ms var(--ease-out) 120ms both;
}
@keyframes stackReveal {
  from { --explode: 0; --zoom: 1.62; opacity: 0; }
  22%  { opacity: 1; }
  to   { --explode: 1; --zoom: 1; opacity: 1; }
}

.stack { display: block; width: 100%; height: auto; overflow: visible; }

.layer {
  /* explode + pointer parallax, driven by --explode / --px / --py */
  transform:
    translate(
      calc(var(--px) * (var(--i) - 3) * 2.6px),
      calc((1 - var(--explode)) * (3 - var(--i)) * 124px + var(--py) * (var(--i) - 3) * 1.6px)
    );
  will-change: transform;
}
.layer-inner { animation: layerFloat 9s ease-in-out infinite; animation-delay: calc(var(--i) * -1.15s); }
@keyframes layerFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.plate-top { }
.plate-edge { fill: none; stroke-width: 1.15; stroke-opacity: 0.72; }
.plate-side { fill: #060C1B; fill-opacity: 0.9; }
.plate-side--lit { fill: #0C1730; fill-opacity: 0.95; }
.plate-grid { stroke: #9FC4FF; stroke-width: 0.6; }
.layer-shadow { fill: #02050D; opacity: 0.5; filter: blur(9px); }

.node-face { stroke: rgba(190, 215, 255, 0.26); stroke-width: 0.6; }
.node-face--left  { fill: #070D1C; fill-opacity: 0.97; }
.node-face--right { fill: #16233F; fill-opacity: 0.97; }
.cyl-body { fill: #0C1730; stroke: rgba(190, 215, 255, 0.2); stroke-width: 0.7; }
.cyl-top  { stroke: rgba(190, 215, 255, 0.28); stroke-width: 0.7; }
.mesh-link { stroke-width: 1; stroke-dasharray: 3 5; }

.beam { stroke-width: 1.4; stroke-dasharray: 2 7; opacity: 0.55; }

.pulse { fill: var(--cyan); opacity: 0; animation: pulseTravel 5.2s linear infinite; animation-delay: calc(var(--k) * 1.5s + 1.6s); }
@keyframes pulseTravel {
  0%   { transform: translateY(0);    opacity: 0; }
  8%   { opacity: 0.95; }
  88%  { opacity: 0.6; }
  100% { transform: translateY(744px); opacity: 0; }
}

.layer-label .label-title {
  fill: var(--text); font-family: "Poppins", sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
}
.layer-label .label-meta {
  fill: #93A6C8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: 0.05em;
}
.label-lead { stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.7; }

.stack-legend { display: none; }

/* ---------- Section shell -------------------------------------------- */
.section { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 22%, var(--surface) 78%, var(--bg) 100%); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 60px); }
.section-head p { font-size: 1.04rem; }
.section-head--wide { max-width: none; }

/* ---------- Cards ---------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: var(--pad-card);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition-property: transform, border-color, box-shadow, background-color;
  transition-duration: var(--dur);
  transition-timing-function: var(--ease-out);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card-icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px; /* concentric with --r-lg 22 at 26px padding */
  background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--primary)) 42%, transparent);
  color: var(--accent, var(--primary));
}
.card-icon svg { width: 22px; height: 22px; }

.card-list { margin-top: 16px; display: grid; gap: 9px; }
.card-list li {
  position: relative; padding-left: 22px;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.5;
}
.card-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent, var(--primary));
}

/* environment cards get an accent rail */
.card--env { padding-top: calc(var(--pad-card) + 6px); overflow: hidden; }
.card--env::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.card-tag {
  display: inline-block; margin-bottom: 14px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent, var(--primary)) 14%, transparent);
  color: var(--accent, var(--primary));
  border: 1px solid color-mix(in srgb, var(--accent, var(--primary)) 34%, transparent);
}

/* ---------- Delivery phases ------------------------------------------ */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: phase; }
.phase {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.phase::before {
  counter-increment: phase;
  content: "0" counter(phase);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--cyan);
}
.phase::after {
  content: ""; position: absolute; top: 50%; right: -20px; width: 20px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.phase:last-child::after { display: none; }
.phase h3 { margin: 12px 0 10px; font-size: 1.12rem; }
.phase p { font-size: 0.92rem; }
.phase-out {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  color: var(--text-dim); font-size: 0.8rem;
}
.phase-out strong { display: block; color: var(--text-muted); font-weight: 500; font-size: 0.86rem; margin-top: 4px; }

/* ---------- Capability matrix (stack) -------------------------------- */
.matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.matrix-cell { background: var(--surface); padding: 24px 22px; transition: background-color var(--dur) var(--ease-out); }
.matrix-cell:hover { background: var(--surface-2); }
.matrix-cell h4 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--text); }
.matrix-cell h4 svg { width: 17px; height: 17px; color: var(--accent, var(--primary)); flex: none; }
.matrix-cell ul { display: grid; gap: 6px; }
.matrix-cell li { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Metrics -------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.metric {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
}
.metric-value { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text); line-height: 1.05; }
.metric-value span { color: var(--cyan); }
.metric-label { margin-top: 10px; color: var(--text-muted); font-size: 0.9rem; }

.counts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 22px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.count { background: var(--surface); padding: 26px 24px; display: flex; align-items: baseline; gap: 16px; }
.count-value {
  margin: 0; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; color: var(--cyan);
  min-width: 2.4ch;
}
.count-label { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn svg { width: 18px; height: 18px; }

/* ---------- FAQ ------------------------------------------------------ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; min-height: 56px;
  cursor: pointer; list-style: none;
  font-weight: 500; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--cyan); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { font-size: 0.95rem; }

/* ---------- Contact -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 3vw, 48px); align-items: start; }

.contact-panel {
  padding: 30px 28px;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 65%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.contact-list { display: grid; gap: 20px; margin-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.contact-list span { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--cyan); }
.contact-list a[download] { color: var(--cyan); font-size: 0.88rem; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.84rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit; font-size: 0.94rem;
  transition-property: border-color, background-color, box-shadow;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-sharp);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #5F6F8E; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(10, 218, 251, 0.16);
  background: var(--surface-2);
}
.field select { appearance: none; background-image: none; cursor: pointer; }
.field select option { background: var(--surface-2); color: var(--text); }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 0.86rem; color: var(--text-muted); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }

.form-note { font-size: 0.82rem; color: var(--text-dim); }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="error"] { color: #FF8080; }

/* ---------- Footer --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: clamp(48px, 6vw, 72px) 0 28px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.8fr)); gap: 36px; }
.footer-brand svg { width: 200px; height: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; max-width: 40ch; }
.footer-col h4 { color: var(--text-dim); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 0.84rem;
}

.footer-business { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-business h4 { color: var(--text-dim); margin-bottom: 10px; }
.footer-business address { font-style: normal; color: var(--text-muted); font-size: 0.88rem; line-height: 1.75; }
.footer-business + .footer-bottom { margin-top: 24px; }
.footer-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Back to top ---------------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition-property: opacity, transform, visibility, background-color;
  transition-duration: var(--dur);
  transition-timing-function: var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--surface-3); color: var(--cyan); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

/* ---------- Legal pages ---------------------------------------------- */
.legal { padding-top: calc(var(--topbar-h) + var(--header-h) + 56px); }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.5rem; margin-top: 46px; }
.legal-body h3 { font-size: 1.08rem; margin-top: 28px; }
.legal-body ul { display: grid; gap: 8px; margin: 0 0 1.1em; }
.legal-body li { color: var(--text-muted); padding-left: 20px; position: relative; }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.legal-body address { font-style: normal; color: var(--text-muted); }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .stack-stage { margin-inline: auto; max-width: 720px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:nth-child(2n)::after { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--topbar-h) + var(--header-h)) 0 auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gutter) 26px;
    background: rgba(6, 10, 21, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition-property: opacity, transform, visibility;
    transition-duration: var(--dur);
    transition-timing-function: var(--ease-out);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav a.is-active::after { left: 12px; right: auto; width: 20px; bottom: 6px; }
  .nav .btn { margin: 10px 0 0; }
  .topbar-contact span.is-optional { display: none; }
}

@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phase::after { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .layer-label { display: none; }
  .stack-legend {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
    margin-top: 26px;
  }
  .stack-legend li { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--text-muted); }
  .stack-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); flex: none; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .stack-legend { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Right-to-left (Arabic) ----------------------------------- */
[lang="ar"] body,
body:has([lang="ar"]),
[dir="rtl"] body { font-family: var(--font-ar); }
[dir="rtl"] { font-family: var(--font-ar); letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.28; }
[dir="rtl"] .hero h1 { line-height: 1.24; }
/* .mono nutzt eine Monospace-Familie ohne arabische Glyphen — für arabischen Text
   würde der Browser pro Zeichen zurückfallen, die Buchstaben verlieren ihre
   Verbindungen und Versalien sind ohnehin bedeutungslos. */
[dir="rtl"] .mono {
  font-family: var(--font-ar);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
/* die Kontaktzeile oben ist lateinisch und bleibt technisch */
[dir="rtl"] .topbar .mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
[dir="rtl"] .phase-out { font-size: 0.86rem; }
[dir="rtl"] .phase-out strong { font-size: 0.92rem; }
[dir="rtl"] .footer-bottom { font-size: 0.86rem; }
[dir="rtl"] .lang-switch { letter-spacing: 0; }

[dir="rtl"] .skip-link { left: auto; right: 16px; }
/* the wordmark is latin — keep it laid out left-to-right */
[dir="rtl"] .brand svg, [dir="rtl"] .footer-brand svg { direction: ltr; }
[dir="rtl"] .eyebrow::before { order: 0; }
[dir="rtl"] .nav a.is-active::after { left: 14px; right: 14px; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .card-list li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .card-list li::before { left: auto; right: 4px; }
[dir="rtl"] .card--env::before { background: linear-gradient(270deg, var(--accent), transparent); }
[dir="rtl"] .phase::after { right: auto; left: -20px; background: linear-gradient(270deg, var(--line-strong), transparent); }
[dir="rtl"] .faq summary::after { transform: rotate(45deg) translate(-2px, -2px); }
[dir="rtl"] .legal-body li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .legal-body li::before { left: auto; right: 4px; }
[dir="rtl"] .to-top { right: auto; left: 22px; }
[dir="rtl"] .count-value { min-width: 2.4ch; }
[dir="rtl"] .hero::before {
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
}
/* The isometric graphic is mirrored inside the SVG, so its motion has to be
   mirrored too: the zoom-out grows away from the text, and pointer parallax
   follows the mirrored perspective. */
[dir="rtl"] .stack-stage { transform-origin: 48% 42%; }
[dir="rtl"] .layer {
  transform:
    translate(
      calc(var(--px) * (var(--i) - 3) * -2.6px),
      calc((1 - var(--explode)) * (3 - var(--i)) * 124px + var(--py) * (var(--i) - 3) * 1.6px)
    );
}
/* the drawing is flipped, so swap the shaded faces to keep the light coming
   from the same direction as in the latin version */
[dir="rtl"] .label-title { font-family: var(--font-ar); font-size: 20px; }
[dir="rtl"] .plate-side { fill: #0C1730; }
[dir="rtl"] .plate-side--lit { fill: #060C1B; }
[dir="rtl"] .node-face--left { fill: #16233F; }
[dir="rtl"] .node-face--right { fill: #070D1C; }
[dir="rtl"] .stack-legend li { flex-direction: row; }

/* ---------- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack-stage:not(.is-live) { animation: none; }
  .stack-stage { --explode: 1; --zoom: 1; --px: 0; --py: 0; opacity: 1; }
  .layer-inner, .pulse { animation: none; }
  .pulse { opacity: 0.5; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
