/* =========================================================
   Odenwald IT Service — Redesign
   Design System: Dark / Tiefblau / Hexagon
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #04060d;
  --bg-grad-a: #050a18;
  --bg-grad-b: #02030a;
  --surface-1: #0a1122;
  --surface-2: #111a2e;
  --surface-3: #182238;
  --border: rgba(120, 150, 200, 0.10);
  --border-strong: rgba(120, 150, 200, 0.22);

  /* Brand — tiefes Blau */
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #3b82f6;
  --brand-glow: #60a5fa;
  --cyan: #38bdf8;        /* KI accent */
  --honey: #f5c451;       /* echo logo yellow, used sparingly */
  --neon: #e6ff14;        /* neon yellow accent (replaces former green) */
  --neon-soft: #f5ff7a;   /* lighter neon for text on dark */

  /* Text */
  --text: #eef2f9;
  --text-2: #b6c0d4;
  --text-3: #7a8699;
  --text-4: #4b5773;

  /* Type */
  --font-display: "Sora", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Animations */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-w: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
}

/* Background mesh — radial blue blooms */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 75% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(50vw 50vh at 10% 30%, rgba(56, 189, 248, 0.12), transparent 65%),
    radial-gradient(45vw 50vh at 90% 80%, rgba(29, 78, 216, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b));
}

/* Noise overlay for film-grain texture */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Canvas hex grid sits above mesh but below content */
#hexCanvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#root { position: relative; z-index: 3; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--text);
}
h1 { font-weight: 500; letter-spacing: -0.035em; }
h2 { letter-spacing: -0.025em; }
p { margin: 0; color: var(--text-2); }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }

/* Layout primitives */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }

/* Eyebrow chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* Headlines */
.display-1 {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.display-2 {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.display-3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.55;
}

/* Gradient text */
.grad-text {
  background: linear-gradient(135deg, #ffffff 0%, #c8d6f0 40%, #60a5fa 75%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8 60%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out),
              background 0.3s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              border-color 0.3s var(--ease-out);
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.btn .arrow {
  transition: transform 0.4s var(--ease-out);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 8px 32px -8px rgba(37, 99, 235, 0.55),
              0 0 0 1px rgba(96, 165, 250, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset,
              0 14px 44px -8px rgba(37, 99, 235, 0.85),
              0 0 0 1px rgba(96, 165, 250, 0.5),
              0 0 32px rgba(56, 189, 248, 0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(96, 165, 250, 0.4);
}

/* Hex shape utility (pointy-top hexagon via clip-path) */
.hex {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Card base */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out),
              background 0.4s var(--ease-out),
              transform 0.5s var(--ease-out);
}
.card::before {
  /* mouse-tracked glow */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    300px circle at var(--mx, -200px) var(--my, -200px),
    rgba(96, 165, 250, 0.18),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 0;
}
.card::after {
  /* subtle hex pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><path d='M14 0 L42 0 L56 24 L42 48 L14 48 L0 24 Z' fill='none' stroke='%2338bdf8' stroke-opacity='0.05' stroke-width='1'/></svg>");
  background-size: 56px 48px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(96, 165, 250, 0.32);
  background: linear-gradient(180deg, rgba(96,165,250,0.04), rgba(255,255,255,0.01));
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* Hex card (services) */
.hex-card {
  position: relative;
  aspect-ratio: 1 / 1.08;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out);
}
.hex-card .hex-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.10), rgba(56, 189, 248, 0.04));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border: 1px solid transparent;
  transition: background 0.4s var(--ease-out);
}
.hex-card .hex-border {
  /* SVG border drawn separately for hex */
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hex-card .hex-content {
  position: relative;
  padding: 16% 18%;
  text-align: center;
  z-index: 2;
}
.hex-card:hover { transform: translateY(-6px) scale(1.02); }
.hex-card:hover .hex-bg {
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.28), rgba(56, 189, 248, 0.12));
}

/* Stat */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 14px;
}

/* Divider line with hex */
.hex-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hex-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* Marquee for partner logos / keywords */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Nav */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1240px;
  padding: 10px 14px 10px 18px;
  border-radius: var(--r-pill);
  background: transparent;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: top 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(6, 10, 20, 0.45);
  border-color: rgba(120, 150, 200, 0.18);
}
.nav-logo { display: flex; align-items: center; gap: 10px; height: 36px; }
.nav-logo img { height: 32px; width: auto; display: block; }

/* Kleines Hex-Mark-Logo links in der Nav */
.nav > .nav-links { margin-right: auto; }
.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 6px;
  transition: transform 0.3s var(--ease-out), filter 0.3s;
}
.nav-logo-link img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}
.nav-logo-link:hover {
  transform: translateY(-2px);
}
.nav-logo-link:hover img {
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.65));
}

/* Hero mark — big honeycomb logo (with wordmark + tagline) on hero right */
.hero-mark {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 6%;
}
.hero-mark-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(56, 189, 248, 0.30), rgba(37, 99, 235, 0.18) 50%, transparent 75%);
  filter: blur(24px);
  animation: heroGlow 7s ease-in-out infinite;
  z-index: 0;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.hero-mark-blur {
  position: absolute;
  top: 6%; left: 6%; right: 6%;
  width: 88%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: blur(28px) saturate(1.4) brightness(1.15);
  opacity: 0.7;
  transform: scale(1.04);
  animation: heroBlurBreath 8s ease-in-out infinite;
  mix-blend-mode: screen;
  will-change: opacity, transform;
}
@keyframes heroBlurBreath {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1.02);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}
.hero-mark-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 36px rgba(56, 189, 248, 0.32))
    drop-shadow(0 20px 60px rgba(0, 0, 0, 0.55));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-0.6deg); }
}
@media (max-width: 960px) {
  .hero-mark { max-width: 420px; margin-top: 24px; }
}
/* Auf dem Handy: grosses Hero-Logo ausblenden — das kleine Mark in der Nav
   uebernimmt die Logo-Rolle. */
@media (max-width: 600px) {
  .hero-visual { display: none; }
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* Hex grid pattern background helper */
.hex-pattern-bg {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 84 96'><g fill='none' stroke='%2338bdf8' stroke-opacity='0.10' stroke-width='1'><path d='M21 0 L63 0 L84 36 L63 72 L21 72 L0 36 Z'/><path d='M63 72 L84 36'/></g></svg>");
  background-size: 84px 96px;
}

/* Reveal-on-scroll — uses CSS animation that plays when .in is added.
   Default state is visible so content shows even if JS / animations don't run
   (e.g. screenshot iframes with paused rendering). */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealUpSmall {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.reveal.in {
  animation: revealUp 0.9s var(--ease-out) both;
}
.reveal-stagger.in > * {
  animation: revealUpSmall 0.8s var(--ease-out) both;
}
.reveal-stagger.in > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { animation-delay: 0.40s; }
.reveal-stagger.in > *:nth-child(7) { animation-delay: 0.47s; }
.reveal-stagger.in > *:nth-child(8) { animation-delay: 0.54s; }
.reveal-stagger.in > *:nth-child(9) { animation-delay: 0.61s; }
.reveal-stagger.in > *:nth-child(n+10) { animation-delay: 0.68s; }

/* Floating notice strip */
.notice-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  background: rgba(230, 255, 20, 0.06);
  border: 1px solid rgba(230, 255, 20, 0.30);
  color: var(--neon-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.notice-bar .badge {
  background: var(--neon);
  color: #1a1a00;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Chatbot demo styles */
.chat-shell {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #0c1426, #060a16);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(96,165,250,0.12),
    0 0 80px -20px rgba(37,99,235,0.4);
  overflow: hidden;
  position: relative;
  font-size: 14px;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-head .av {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 12px;
  font-family: var(--font-display);
}
.chat-head .title { font-weight: 600; font-size: 14px; }
.chat-head .status { font-size: 11px; color: var(--neon-soft); display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); }
.chat-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 8px var(--neon);
}
.chat-body {
  padding: 20px;
  height: 460px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  overflow: hidden;
}
.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 14px;
  white-space: pre-wrap;
  animation: msgIn 0.5s var(--ease-out);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.bot .src {
  margin-top: 8px;
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--border-strong);
}
.chat-msg.bot .src .src-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(56,189,248,0.08);
  color: var(--cyan);
  border: 1px solid rgba(56,189,248,0.2);
}
.chat-msg.bot.typing {
  display: inline-flex; gap: 4px;
}
.chat-msg.bot.typing .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: typing 1.2s ease-in-out infinite;
}
.chat-msg.bot.typing .d:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.bot.typing .d:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}
.chat-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.02);
}
.chat-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-3);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.chat-foot .send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid; place-items: center;
  color: white;
  font-size: 14px;
}

/* RAG pipeline diagram */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
.pipeline-step {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px;
  text-align: center;
  overflow: hidden;
}
.pipeline-step .icon {
  width: 44px; height: 44px; margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(56,189,248,0.08));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
  color: var(--brand-glow);
}
.pipeline-step .title { font-weight: 600; font-size: 14px; }
.pipeline-step .desc { font-size: 12px; color: var(--text-3); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.pipeline-arrow {
  /* Verbindungslinie + animierter Punkt zwischen den Pipeline-Stufen komplett
     entfernt (auf Wunsch — wirkte unruhig, auf Desktop wie Handy). */
  display: none;
}
.pipeline-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
  opacity: 0.4;
}
.pipeline-arrow::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: flow 2.5s linear infinite;
}
@keyframes flow {
  from { left: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  to   { left: calc(100% - 6px); opacity: 0; }
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
}

/* Service hex grid */
.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}
.hex-grid > *:nth-child(4n+3),
.hex-grid > *:nth-child(4n+4) {
  transform: translateY(40px);
}
@media (max-width: 980px) {
  .hex-grid { grid-template-columns: repeat(3, 1fr); }
  .hex-grid > * { transform: none !important; }
  .hex-grid > *:nth-child(3n+2) { transform: translateY(40px) !important; }
}
@media (max-width: 680px) {
  .hex-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hex-grid > *,
  .hex-grid > *:nth-child(3n+2) { transform: none !important; }

  /* Waben-Form aufgeben — Text quoll aus den Spitzen. Normale Cards,
     aber Hex-Nummern-Badge bleibt als Markenelement. */
  .hex-card { aspect-ratio: auto; align-items: stretch; }
  .hex-card .hex-bg {
    clip-path: none;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(56,189,248,0.06), rgba(255,255,255,0.01));
  }
  .hex-card:hover .hex-bg {
    background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(255,255,255,0.02));
  }
  .hex-card .hex-border { display: none; }
  .hex-card .hex-content {
    padding: 22px 16px; width: 100%;
    display: flex; flex-direction: column; justify-content: center;
  }
  .hex-card:hover { transform: translateY(-3px) !important; }
}
@media (max-width: 460px) {
  .hex-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hex-grid > *,
  .hex-grid > *:nth-child(3n+2) { transform: none !important; }
  .hex-card .hex-content { padding: 18px 12px; }
}

/* Pricing card */
.price {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
}
.price.featured {
  border-color: rgba(96,165,250,0.4);
  background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(56,189,248,0.02));
  box-shadow: 0 30px 60px -30px rgba(37,99,235,0.6);
}
.price:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.4);
}
.price .price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price .price-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.price .price-sub { color: var(--text-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.price .price-features {
  list-style: none; padding: 0; margin: 24px 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.price .price-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.price .price-features li::before {
  content: ""; width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex-shrink: 0;
}

/* Footer */
footer {
  position: relative;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8,12,20,0), rgba(2,4,10,0.8));
  z-index: 3;
}
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .container { grid-template-columns: 1fr; } }
footer h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--text-2); font-size: 14px; transition: color 0.2s; }
footer a:hover { color: var(--text); }
footer .bottom {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--text-4); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Notfall floating */
.emergency-fab {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: white;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 12px 30px -10px rgba(239,68,68,0.6), 0 0 0 1px rgba(255,180,180,0.2);
  transition: transform 0.4s var(--ease-spring);
}
.emergency-fab:hover { transform: translateY(-3px); }
.emergency-fab .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: white;
  position: relative;
}
.emergency-fab .pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid white;
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Map hex tiles for region */
.region-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

/* Utilities */
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.muted { color: var(--text-3); }
.tiny { font-size: 12px; letter-spacing: 0.04em; }
.center { text-align: center; }

/* Selection */
::selection { background: rgba(96,165,250,0.35); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,150,200,0.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,150,200,0.32); }


/* =========================================================
   Contact Modal — DSGVO-konformes Popup mit Hex-Captcha
   ========================================================= */

@keyframes contactOverlayIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(24px); }
}
@keyframes contactModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes contactGlow {
  0%, 100% { box-shadow: 0 30px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(96,165,250,0.18), 0 0 90px -10px rgba(37,99,235,0.45); }
  50%      { box-shadow: 0 30px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(96,165,250,0.30), 0 0 120px -10px rgba(56,189,248,0.65); }
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: contactOverlayIn 0.45s var(--ease-out) both;
  overflow-y: auto;
}
.contact-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #0c1426, #060a16);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  animation:
    contactModalIn 0.45s var(--ease-spring) both,
    contactGlow 8s ease-in-out infinite 0.5s;
}
.contact-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(50% 35% at 100% 0%,  rgba(56,189,248,0.16), transparent 65%),
    radial-gradient(50% 35% at 0% 0%,    rgba(96,165,250,0.10), transparent 65%),
    radial-gradient(50% 35% at 100% 100%,rgba(37,99,235,0.10), transparent 65%),
    radial-gradient(50% 35% at 0% 100%,  rgba(56,189,248,0.14), transparent 65%);
  opacity: 0.9;
  z-index: 0;
}
.contact-modal > * { position: relative; z-index: 1; }

.contact-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s, color 0.25s, transform 0.4s var(--ease-out);
}
.contact-close:hover {
  background: rgba(96,165,250,0.15);
  color: var(--text);
  transform: rotate(90deg);
}

/* Mobil: Vollbild-Modal, Close-Button immer erreichbar (fixed, 44px Tap-Target) */
@media (max-width: 600px) {
  .contact-overlay {
    padding: 0;
    place-items: stretch;
    overflow: hidden;            /* Overlay scrollt NICHT — verhindert verschachteltes Scrollen */
    overscroll-behavior: contain;
  }
  .contact-modal {
    max-width: 100%;
    width: 100%;
    height: 100vh;               /* Fallback */
    height: 100dvh;              /* dynamische Viewport-Hoehe — gegen Adressleisten-Springen */
    min-height: 0;
    max-height: none;
    border: none;
    border-radius: 0;
    overflow-y: auto;            /* NUR das Modal scrollt */
    -webkit-overflow-scrolling: touch;  /* iOS Momentum-Scrolling */
    overscroll-behavior: contain;       /* kein Scroll-Chaining -> kein "Steckenbleiben" */
    padding:
      calc(env(safe-area-inset-top, 0px) + 68px)
      20px
      calc(env(safe-area-inset-bottom, 0px) + 32px);
  }
  .contact-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 12px;
    width: 44px;
    height: 44px;
  }
  /* Chat-Demo-Fenster auf dem Handy etwas hoeher (feste Hoehe gegen Springen) */
  .chat-body { height: 540px; }
}

.contact-head { margin-bottom: 24px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-label .req { color: var(--cyan); margin-left: 4px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  width: 100%;
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5 L7 9 L11 5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form select option {
  background: #0a1122;
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(96,165,250,0.55);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.18);
}
.contact-form ::placeholder { color: var(--text-4); }

/* Honeypot — hidden from humans, kept in DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Anrede picker — segmented */
.anrede-picker { display: flex; flex-direction: column; gap: 8px; }
.anrede-options {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  background: rgba(0,0,0,0.3);
  width: fit-content;
}
.anrede-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-2);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, background 0.4s var(--ease-out);
}
.anrede-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 4px 16px -4px rgba(37,99,235,0.5);
}
.anrede-btn:not(.active):hover { color: var(--text); }

/* Hex slider Captcha */
.hex-captcha {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.hex-captcha-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hex-captcha-track {
  position: relative;
  height: 52px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.hex-captcha-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(37,99,235,0.30), rgba(56,189,248,0.50));
  transition: width 0.18s var(--ease-out);
}
.hex-captcha-slot {
  position: absolute;
  right: 6px; top: 6px; bottom: 6px;
  width: 40px;
  border-radius: 999px;
  border: 1px dashed rgba(96,165,250,0.35);
  display: grid; place-items: center;
}
.hex-captcha-slot::after {
  content: "";
  width: 20px; height: 22px;
  background: rgba(96,165,250,0.12);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-captcha-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: grab;
  background: linear-gradient(135deg, #0a1122, #131c2f);
  border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.4);
  box-shadow: 0 4px 14px -4px rgba(56,189,248,0.45),
              0 0 0 1px rgba(96,165,250,0.2);
  transition: left 0.18s var(--ease-out),
              transform 0.25s var(--ease-spring),
              box-shadow 0.3s;
  color: white;
  z-index: 2;
}
.hex-captcha-handle.dragging {
  cursor: grabbing;
  transform: scale(1.06);
  transition: transform 0.15s var(--ease-out), box-shadow 0.3s;
  box-shadow: 0 6px 20px -4px rgba(56,189,248,0.7),
              0 0 0 1px rgba(96,165,250,0.5),
              0 0 24px rgba(56,189,248,0.4);
}
.hex-captcha-track.verified .hex-captcha-handle {
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-color: rgba(96,165,250,0.7);
  color: white;
  cursor: default;
}
.hex-captcha-track.verified .hex-captcha-label { color: var(--neon-soft); }

/* DSGVO row */
.dsgvo-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
  padding: 4px 0;
}
.dsgvo-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  position: relative;
}
.dsgvo-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-color: rgba(96,165,250,0.7);
}
.dsgvo-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 12px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}
.dsgvo-row a {
  color: var(--brand-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dsgvo-row a:hover { color: var(--cyan); }

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.32);
  color: #fca5a5;
  font-size: 13.5px;
}

.contact-foot {
  margin-top: 4px;
  text-align: center;
  color: var(--text-4);
}
.contact-foot .mono { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; }

/* Success view */
.contact-success {
  padding: 32px 8px 8px;
  text-align: center;
}
.success-hex {
  display: inline-block;
  animation: successPop 0.55s var(--ease-spring) both;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.6) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}


/* =========================================================
   Legal pages (Impressum / AGB / Datenschutz)
   ========================================================= */
/* Legal page chrome — lifted above .bg-mesh and .bg-noise */
.legal-nav, .legal-hero, main.legal-main, .legal-footer { position: relative; z-index: 3; }

.legal-nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1240px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.65);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(120, 150, 200, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.legal-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.legal-nav .legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2);
}
.legal-nav .legal-back:hover { color: var(--brand-glow); }

.legal-hero {
  padding: 180px 0 60px;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 12px;
}
.legal-hero p {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 120px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}
.legal-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 56px 0 16px;
  scroll-margin-top: 120px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.legal-prose h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 6px;
}
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul, .legal-prose ol {
  margin: 0 0 18px; padding-left: 24px;
}
.legal-prose ul li, .legal-prose ol li { margin-bottom: 6px; }
.legal-prose strong { color: var(--text); font-weight: 600; }
.legal-prose a {
  color: var(--brand-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(96,165,250,0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.legal-prose a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}
.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.legal-prose .addr {
  display: inline-block;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 24px;
}
.legal-prose .toc {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 56px;
}
.legal-prose .toc ol { padding-left: 20px; margin: 0; }
.legal-prose .toc li { margin-bottom: 4px; }

/* Compact footer for legal pages */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.legal-footer .legal-links { display: inline-flex; gap: 20px; }
.legal-footer a { color: var(--text-3); transition: color 0.2s; }
.legal-footer a:hover { color: var(--text); }


/* =========================================================
   Mobile Hamburger Nav
   ========================================================= */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .nav-cta-contact, .nav-cta-support { display: none; }
}
@media (max-width: 460px) {
  /* On very small screens hide all CTAs except burger */
  .nav .nav-right .btn { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 4, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 86vw);
  padding: 80px 32px 32px;
  background: linear-gradient(180deg, #0a1122 0%, #04060d 100%);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.25s, transform 0.4s var(--ease-out), background 0.25s;
}
.mobile-nav-close:hover {
  color: var(--text);
  background: rgba(96,165,250,0.15);
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}
.mobile-nav-links a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(20px);
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}
.mobile-nav.open .mobile-nav-links a {
  animation: mobileLinkIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.mobile-nav-links a:hover {
  color: var(--brand-glow);
  padding-left: 12px;
}
@keyframes mobileLinkIn {
  to { opacity: 1; transform: translateX(0); }
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.mobile-nav-cta .btn { justify-content: center; }

.mobile-nav-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-4);
}
.mobile-nav-foot .mono {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =========================================================
   Skip-to-content link (a11y)
   ========================================================= */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.3s var(--ease-spring);
  box-shadow: 0 6px 24px -6px rgba(37,99,235,0.6);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* =========================================================
   Microsoft Partner Badge (trust pill)
   ========================================================= */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: border-color 0.25s, background 0.25s;
}
.partner-badge:hover {
  border-color: rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.06);
}
.partner-badge .ms-grid {
  display: grid;
  grid-template-columns: 8px 8px;
  grid-template-rows: 8px 8px;
  gap: 2px;
}
.partner-badge .ms-grid i { display: block; border-radius: 1px; }
.partner-badge .ms-grid i:nth-child(1) { background: #f25022; }
.partner-badge .ms-grid i:nth-child(2) { background: #7fba00; }
.partner-badge .ms-grid i:nth-child(3) { background: #00a4ef; }
.partner-badge .ms-grid i:nth-child(4) { background: #ffb900; }
