/* AuthShield — enterprise marketing site (hexagon design system) */

:root {
  --bg0: #08090f;
  --bg1: #0c0e18;
  --bg2: #14172a;
  --card: rgba(20, 23, 45, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(99, 102, 241, 0.38);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent2: #a78bfa;
  --ok: #34d399;
  --warn: #fbbf24;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --hex: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  --r: 14px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.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;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--narrow {
  max-width: 720px;
}

.wrap--wide {
  max-width: 1320px;
}

/* --- Hex geometry --- */
.hex {
  display: block;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.45), rgba(139, 92, 246, 0.15));
  clip-path: var(--hex);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
}

.hex--lg {
  width: 180px;
  height: 200px;
  opacity: 0.55;
}
.hex--md {
  width: 100px;
  height: 112px;
  opacity: 0.4;
  margin: -40px 0 0 60px;
}
.hex--sm {
  width: 56px;
  height: 64px;
  opacity: 0.35;
  margin: 20px 0 0 100px;
}

@keyframes hex-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.65;
  }
}

@keyframes hex-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hex--pulse {
  animation: hex-pulse 5s ease-in-out infinite;
}

.hex--delay {
  animation: hex-float 7s ease-in-out infinite;
  animation-delay: -2s;
}

/* Ambient field: sparse hex marks + IT icons (one JS layer) */
.bg-ambient-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-ambient-motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-hex-mote {
  position: absolute;
  width: var(--s, 40px);
  height: var(--s, 40px);
  pointer-events: none;
  will-change: transform, opacity;
}

.bg-hex-mote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6046ff 0%, #7c3aed 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 14px rgba(96, 70, 255, 0.22);
}

.bg-hex-mote::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  left: 15%;
  top: 15%;
  background: var(--bg0);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.bg-hex-mote.is-out {
  animation-name: bg-hex-mote-life;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes bg-hex-mote-life {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(0.9);
  }
  11% {
    opacity: var(--op, 0.1);
  }
  89% {
    opacity: var(--op, 0.1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot, 0deg)) scale(1);
  }
}

.bg-it-mote {
  position: absolute;
  width: var(--m, 18px);
  height: var(--m, 18px);
  color: rgba(129, 140, 248, 0.3);
  pointer-events: none;
  will-change: transform, opacity;
}

.bg-it-mote svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bg-it-mote.is-out {
  animation-name: bg-mote-life;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes bg-mote-life {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.92);
  }
  14% {
    opacity: var(--op, 0.34);
  }
  86% {
    opacity: var(--op, 0.34);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.02);
  }
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 92, 246, 0.08), transparent 45%);
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
}

.bg-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(99, 102, 241, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.038) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: bg-mesh-grid-pan 140s linear infinite;
  opacity: 0.85;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.018) 2px,
      rgba(255, 255, 255, 0.018) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 3px
    );
  mix-blend-mode: soft-light;
  mask-image: linear-gradient(180deg, black 0%, black 78%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-grain {
    opacity: 0.2;
  }
}

@keyframes bg-mesh-grid-pan {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 48px 48px, 48px 48px;
  }
}

/* Ambient “monitoring plane” — slow sweep + telemetry ticks */
.bg-monitor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
}

.bg-monitor::before {
  content: "";
  position: absolute;
  left: -5%;
  width: 110%;
  height: min(180px, 22vh);
  top: -25%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.03) 35%,
    rgba(129, 140, 248, 0.09) 50%,
    rgba(99, 102, 241, 0.03) 65%,
    transparent 100%
  );
  animation: bg-monitor-sweep 16s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

.bg-monitor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 119px,
    rgba(99, 102, 241, 0.045) 119px,
    rgba(99, 102, 241, 0.045) 120px
  );
  opacity: 0.35;
  animation: bg-monitor-ticks 55s linear infinite;
}

@keyframes bg-monitor-sweep {
  0% {
    transform: translateY(-15vh);
    opacity: 0.35;
  }
  12% {
    opacity: 0.85;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(125vh);
    opacity: 0.35;
  }
}

@keyframes bg-monitor-ticks {
  0% {
    transform: translateX(0);
    opacity: 0.28;
  }
  50% {
    opacity: 0.42;
  }
  100% {
    transform: translateX(-120px);
    opacity: 0.28;
  }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header--scrolled {
  background: rgba(8, 9, 15, 0.94);
  backdrop-filter: blur(22px);
  border-bottom-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: var(--header-h);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 14, 24, 0.55);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  min-width: 2.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.is-active {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.lang-btn:hover:not(.is-active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  color: inherit;
}

/* Pulsing hex mark — same pattern as frontend/src/index.html (.title-bar-logo-hexagon) */
@keyframes logoHexagonPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 20px rgba(96, 70, 255, 0.4);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
    box-shadow: 0 0 40px rgba(96, 70, 255, 0.8);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 20px rgba(96, 70, 255, 0.4);
  }
}

.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6046ff 0%, #7c3aed 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: logoHexagonPulse 2s infinite;
  top: 0;
  left: 0;
  box-shadow: 0 0 15px rgba(96, 70, 255, 0.4);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--bg0);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  top: 6px;
  left: 6px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.brand--footer .brand-mark {
  width: 36px;
  height: 36px;
}

.brand--footer .brand-mark::before {
  width: 36px;
  height: 36px;
}

.brand--footer .brand-mark::after {
  width: 25px;
  height: 25px;
  top: 5.5px;
  left: 5.5px;
  background: rgb(6, 7, 13);
}

.brand--footer .brand-text {
  font-size: 1.2rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-panel a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-panel a:hover {
  color: var(--text);
}

.nav-portal {
  padding: 0.45rem 0.85rem !important;
  border-radius: 10px;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

.nav-portal:not(.nav-portal--placeholder):hover {
  border-color: rgba(99, 102, 241, 0.55) !important;
  background: rgba(99, 102, 241, 0.1);
  color: var(--text) !important;
}

.nav-portal--placeholder {
  display: inline-flex;
  align-items: center;
  cursor: not-allowed;
  opacity: 0.72;
  user-select: none;
}

.footer-portal-link--placeholder {
  display: inline-flex;
  align-items: center;
  cursor: not-allowed;
  opacity: 0.72;
  user-select: none;
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-panel {
    display: none;
    order: 3;
    flex: none;
    width: 100%;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0 1.25rem;
    background: transparent;
    border-bottom: none;
    gap: 0;
    justify-content: flex-start;
  }
  .nav-panel.is-open {
    display: flex;
  }
  .nav-panel a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-panel .nav-portal {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: none !important;
  }
  .header-end {
    margin-left: auto;
  }
  .site-header {
    position: relative;
  }
  .site-header .nav-panel.is-open {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.75rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  background: rgba(99, 102, 241, 0.08);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-bullets li {
  padding-left: 1.25rem;
  position: relative;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 8px;
  background: var(--accent);
  clip-path: var(--hex);
  opacity: 0.9;
}

.hero-visual-block {
  position: relative;
}

.hero-hex-stack {
  position: absolute;
  inset: auto auto 40% 10%;
  z-index: 0;
  pointer-events: none;
}

/* Hero: glass cards carousel (Lagebild / Sicherheit / Shadow Admin) */
.hero-card-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.hero-card-carousel__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r);
}

.hero-card-carousel__track {
  display: flex;
  width: 300%;
  transition: transform 0.45s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-carousel__track {
    transition: none;
  }
}

.hero-card-slide {
  flex: 0 0 33.333333%;
  min-width: 33.333333%;
  box-sizing: border-box;
}

.hero-carousel__arrow {
  flex-shrink: 0;
  align-self: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(12, 14, 24, 0.75);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-carousel__arrow:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--accent2);
}

.hero-carousel__arrow:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

.hero-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 100%;
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0 0.5rem;
  min-height: 1.25rem;
}

.hero-carousel__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .hero-carousel__arrow {
    display: none;
  }

  /* Single static card (first slide only) — carousel UX is too cramped on small screens */
  .hero-card-carousel__track {
    display: block;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .hero-card-slide {
    flex: none;
    min-width: 100%;
    width: 100%;
  }

  .hero-card-slide:not(:first-child) {
    display: none !important;
  }

  .hero-card-slide:first-child {
    display: block;
  }

  .hero-carousel__dots {
    display: none !important;
  }
}

.hero-card {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}
.dot:first-child {
  background: #f87171;
}
.dot:nth-child(2) {
  background: #fbbf24;
}
.dot:nth-child(3) {
  background: #4ade80;
}

.hero-card-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.hero-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.hero-metric-label {
  color: var(--muted);
}

.hero-metric-value {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hero-metric-value--ok {
  color: var(--ok);
}

.hero-metric-value--num {
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-metric-value--warn {
  color: var(--warn);
}

.hero-mini-rows {
  display: flex;
  gap: 5px;
  margin-top: 1rem;
  height: 64px;
  align-items: flex-end;
}

.hero-mini-rows span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(99, 102, 241, 0.15));
  min-height: 12px;
}

.hero-mini-rows--slide0 span:nth-child(1) {
  height: 35%;
}
.hero-mini-rows--slide0 span:nth-child(2) {
  height: 55%;
}
.hero-mini-rows--slide0 span:nth-child(3) {
  height: 80%;
}
.hero-mini-rows--slide0 span:nth-child(4) {
  height: 45%;
}
.hero-mini-rows--slide0 span:nth-child(5) {
  height: 68%;
}

.hero-mini-rows--slide1 span:nth-child(1) {
  height: 48%;
}
.hero-mini-rows--slide1 span:nth-child(2) {
  height: 72%;
}
.hero-mini-rows--slide1 span:nth-child(3) {
  height: 58%;
}
.hero-mini-rows--slide1 span:nth-child(4) {
  height: 88%;
}
.hero-mini-rows--slide1 span:nth-child(5) {
  height: 42%;
}

.hero-mini-rows--slide2 span:nth-child(1) {
  height: 62%;
}
.hero-mini-rows--slide2 span:nth-child(2) {
  height: 38%;
}
.hero-mini-rows--slide2 span:nth-child(3) {
  height: 75%;
}
.hero-mini-rows--slide2 span:nth-child(4) {
  height: 52%;
}
.hero-mini-rows--slide2 span:nth-child(5) {
  height: 66%;
}

.hero-card-note {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stats */
.stats {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  position: relative;
  padding: 1.35rem 1.25rem 1.35rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(12, 14, 24, 0.6);
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0.85;
}

.stat-hex {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 32px;
  background: rgba(99, 102, 241, 0.15);
  clip-path: var(--hex);
  opacity: 0.6;
}

.stat-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.stat-item span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Trust strip */
.trust-strip {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
}

.trust-strip-inner {
  padding: 2rem 1.75rem;
  border-radius: calc(var(--r) + 4px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(18, 21, 40, 0.55));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 24px 48px rgba(0, 0, 0, 0.25);
}

.trust-strip-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.trust-strip-title {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 1.35rem;
  max-width: 42rem;
}

.trust-strip-pills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(8, 9, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.trust-pill::before {
  content: "";
  width: 8px;
  height: 9px;
  margin-right: 0.55rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  clip-path: var(--hex);
  opacity: 0.95;
}

.section-divider {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 2rem;
  color: rgba(165, 180, 252, 0.55);
}

.section-divider-svg {
  display: block;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(18, 21, 40, 0.35), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 800px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead.lead--note {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 58ch;
  opacity: 0.95;
}

.module-carousel-hint {
  display: none;
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .module-carousel-hint {
    display: block;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-card {
  padding: 1.75rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(12, 14, 24, 0.5);
}

.split-card--accent {
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(12, 14, 24, 0.8));
}

.split-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 10px;
  height: 11px;
  clip-path: var(--hex);
  background: var(--ok);
  opacity: 0.9;
}

.list-check--neg li::before {
  background: #f87171;
}

/* Module carousel (Lösungsbereiche) */
.module-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.module-carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.module-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.module-carousel__track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.module-carousel__arrow {
  flex-shrink: 0;
  align-self: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(12, 14, 24, 0.75);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.module-carousel__arrow:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--accent2);
}

.module-carousel__arrow:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

.module-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .module-carousel__arrow {
    display: none;
  }

  .module-carousel__viewport {
    scroll-padding-inline: 1.25rem;
  }
}

/* 3 per row on desktop → less horizontal scrolling; 2 on tablet; 1 on phone */
.module-tile {
  --mod-gap: 1rem;
  flex: 0 0 calc((100% - 2 * var(--mod-gap)) / 3);
  width: calc((100% - 2 * var(--mod-gap)) / 3);
  max-width: calc((100% - 2 * var(--mod-gap)) / 3);
  scroll-snap-align: start;
  min-height: 100%;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(12, 14, 24, 0.45);
  position: relative;
  overflow: hidden;
}

@media (max-width: 960px) {
  .module-tile {
    flex: 0 0 calc((100% - var(--mod-gap)) / 2);
    width: calc((100% - var(--mod-gap)) / 2);
    max-width: calc((100% - var(--mod-gap)) / 2);
  }
}

@media (max-width: 700px) {
  /* Slightly narrower than viewport so the next card peeks — signals horizontal scroll */
  .module-tile {
    flex: 0 0 82vw;
    width: 82vw;
    max-width: 82vw;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
  }
}

.module-carousel__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
  min-height: 1.25rem;
}

@media (max-width: 700px) {
  .module-carousel__dots {
    display: flex;
  }
}

.module-carousel__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.module-carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
}

.module-carousel__dot:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
}

.module-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.7;
}

.module-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.module-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.module-tile--sovereignty {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(16, 18, 32, 0.55);
}

.module-tile-more {
  margin-top: 1rem;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2);
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.module-tile-more:hover {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}

.module-tile-more:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

.sovereignty-modal-body .sov-p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.sovereignty-modal-body .sov-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.sovereignty-modal-body .sov-list li {
  margin-bottom: 0.55rem;
}

.sovereignty-modal-body .sov-list li:last-child {
  margin-bottom: 0;
}

/* Editions: cards + comparison table */
.edition-compare {
  width: 100%;
}

.edition-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .edition-cards {
    grid-template-columns: 1fr;
  }
}

.edition-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.edition-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.edition-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.edition-table-wrap {
  overflow-x: auto;
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}

.edition-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

.edition-col--feature {
  width: 27.71%;
}

.edition-col--ed {
  width: 24.1%;
}

.edition-table thead th {
  padding: 0.85rem 0.75rem;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid rgba(99, 102, 241, 0.22);
  text-align: center;
  vertical-align: bottom;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.04));
}

.edition-table thead th:first-child {
  text-align: left;
  padding-left: 1rem;
  border-radius: var(--r) 0 0 0;
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.08));
  box-shadow: 1px 0 0 rgba(99, 102, 241, 0.15);
}

.edition-table thead th:last-child {
  border-radius: 0 var(--r) 0 0;
}

.edition-table tbody th {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  width: 26%;
  min-width: 9.5rem;
  position: sticky;
  left: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 16, 32, 0.98) 85%, rgba(14, 16, 32, 0));
  backdrop-filter: blur(10px);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.05);
}

.edition-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--muted);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.edition-row--prose td {
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
  line-height: 1.45;
  font-size: 0.8rem;
}

.edition-row--prose-ed-center td {
  text-align: center;
}

.edition-row--feat td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.edition-row--feat td.edition-cell {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
}

.edition-cell--yes {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.08);
}

.edition-cell--no {
  color: rgba(148, 163, 184, 0.42);
  background: rgba(148, 163, 184, 0.06);
}

.edition-table tbody tr:last-child th,
.edition-table tbody tr:last-child td {
  border-bottom: none;
}

.edition-table tbody tr:last-child th:first-child {
  border-radius: 0 0 0 var(--r);
}

.edition-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--r) 0;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-block {
  padding: 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(12, 14, 24, 0.5);
}

.trust-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.trust-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-assurance {
  margin-top: 2rem;
  padding: 1.5rem 1.65rem 1.45rem;
  border-radius: var(--r);
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(12, 14, 24, 0.72));
  position: relative;
  overflow: hidden;
}

.trust-assurance::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.75;
}

.trust-assurance-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.85);
}

.trust-assurance-title {
  position: relative;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trust-assurance-lead {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 58rem;
}

.trust-assurance-list {
  position: relative;
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-assurance-list li {
  margin-bottom: 0.45rem;
}

.trust-assurance-list li:last-child {
  margin-bottom: 0;
}

.trust-assurance-note {
  position: relative;
  margin: 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.88);
  max-width: 58rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Timeline */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 720px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.timeline-step:last-child {
  border-bottom: none;
}

.timeline-hex {
  width: 40px;
  height: 46px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.08));
  clip-path: var(--hex);
  margin-top: 0.2rem;
  animation: hex-float 6s ease-in-out infinite;
}

.timeline-step:nth-child(2) .timeline-hex {
  animation-delay: -1.5s;
}
.timeline-step:nth-child(3) .timeline-hex {
  animation-delay: -3s;
}
.timeline-step:nth-child(4) .timeline-hex {
  animation-delay: -4.5s;
}

.timeline-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(12, 14, 24, 0.5);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "";
  width: 12px;
  height: 14px;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.5);
  clip-path: var(--hex);
  transition: transform 0.2s;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem 2.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
}

.cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: calc(var(--r) + 4px);
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(12, 14, 24, 0.95));
  position: relative;
  overflow: hidden;
}

.cta-hex {
  position: absolute;
  width: 200px;
  height: 230px;
  top: -80px;
  right: -60px;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.2), transparent);
  clip-path: var(--hex);
  opacity: 0.5;
  pointer-events: none;
  animation: hex-float 10s ease-in-out infinite;
}

.cta-inner h2 {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.cta-inner > p {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 620px;
  color: var(--muted);
}

.cta-email-plain {
  cursor: pointer;
  user-select: all;
  -webkit-user-select: all;
  font-family: var(--mono);
  text-decoration: none;
  color: inherit;
}

.cta-email-plain:hover {
  transform: none;
  filter: brightness(1.06);
}

.cta-email-plain:focus-visible {
  outline: 2px solid rgba(165, 180, 252, 0.65);
  outline-offset: 3px;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 5.5rem 0 0;
  background: rgba(6, 7, 13, 0.9);
}

.footer-story-wrap {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-story {
  max-width: 52rem;
}

.footer-story-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-display);
}

.footer-story-teaser {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-story-btn {
  margin-top: 0.25rem;
}

.story-modal-body .story-doc {
  margin: 0;
}

.story-modal-body .story-doc p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.story-modal-body .story-doc p:last-child {
  margin-bottom: 0;
}

.story-modal-body .story-doc-lead {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3.25rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 26rem;
  line-height: 1.6;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Let copyright text wrap; keep icon column from collapsing (also avoids ad-block cosmetic filters on class names containing "social") */
.footer-bottom-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.footer-meta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: 8px;
  color: var(--muted);
  line-height: 0;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease, fill 0.2s ease;
}

.footer-meta-link svg {
  display: block;
  width: 22px;
  height: 22px;
}

.footer-meta-link svg path {
  fill: var(--muted);
}

.footer-meta-link:hover {
  color: var(--accent);
  background: rgba(124, 92, 255, 0.08);
}

.footer-meta-link:hover svg path {
  fill: var(--accent);
}

.footer-meta-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-privacy-btn {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.footer-privacy-btn:hover {
  color: var(--accent);
}

body.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.privacy-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 2.5rem));
  max-height: min(90vh, 920px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, rgba(22, 25, 48, 0.98), rgba(8, 9, 15, 0.99));
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.privacy-modal.is-open .privacy-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.privacy-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.privacy-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.privacy-modal-close:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.privacy-modal-body {
  overflow-y: auto;
  padding: 1rem 1.35rem 1.5rem;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.5) rgba(255, 255, 255, 0.04);
}

.privacy-modal-body::-webkit-scrollbar {
  width: 11px;
}

.privacy-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 4px 0;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(129, 140, 248, 0.5);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(165, 180, 252, 0.62);
}

.privacy-doc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.privacy-doc-product {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.privacy-doc-stand {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
}

.privacy-doc-section {
  margin: 1.35rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.privacy-doc p {
  margin: 0 0 0.85rem;
}

.privacy-doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.privacy-doc li {
  margin-bottom: 0.35rem;
}

.privacy-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.privacy-doc a:hover {
  color: #a5b4fc;
}

.privacy-doc-footer {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
  color: var(--muted);
}

.impressum-plain-contact {
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .privacy-modal {
    transition: opacity 0.15s ease;
  }
  .privacy-modal-panel {
    transition: opacity 0.15s ease;
    transform: none;
  }
  .privacy-modal.is-open .privacy-modal-panel {
    transform: none;
  }
}

/* --- Console UI preview (marketing cutouts) --- */
.ui-hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
}

.ui-hint-hex {
  width: 12px;
  height: 14px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  clip-path: var(--hex);
  opacity: 0.85;
}

.ui-showcase {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

@media (min-width: 880px) {
  .ui-showcase {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1.75rem 2rem;
    align-items: start;
  }
}

.ui-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 880px) {
  .ui-tablist {
    flex-direction: column;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.ui-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 14, 24, 0.55);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  text-align: left;
}

.ui-tab:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.35);
}

.ui-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ui-tab.is-active {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(12, 14, 24, 0.85));
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.ui-stage {
  min-width: 0;
  width: 100%;
}

.ui-cutout {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.42);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ui-showcase:focus-within .ui-cutout,
.ui-cutout:hover {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.ui-cutout-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border);
}

.ui-cutout-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.ui-cutout-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.ui-toolbar-pill {
  font-size: 0.65rem;
  font-family: var(--mono);
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.ui-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
  animation: ui-live-pulse 2.4s ease-in-out infinite;
}

@keyframes ui-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

.ui-subtle {
  font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--muted);
}

.ui-cutout-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.ui-cutout-body--split {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 520px) {
  .ui-cutout-body--split {
    grid-template-columns: 1fr;
  }
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-family: var(--mono);
}

.ui-table th {
  text-align: left;
  padding: 0.5rem 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ui-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.ui-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ui-row:hover {
  background: rgba(99, 102, 241, 0.08);
}

.ui-row.is-selected {
  background: rgba(99, 102, 241, 0.16);
  box-shadow: inset 3px 0 0 0 var(--accent);
}

.ui-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.ui-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ui-pill--ok {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ui-pill--warn {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.ui-pill--muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.ui-pill--ghost {
  font-size: 0.65rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.ui-pill--blue {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.ui-pill--teal {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.ui-pill--bad {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.ui-pill--info {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.ui-mono {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.ui-table--dense th,
.ui-table--dense td {
  font-size: 0.68rem;
  padding: 0.4rem 0.45rem;
}

.ui-cutout--dash {
  max-width: 100%;
}

.ui-cutout--device-pop-host {
  position: relative;
}

.ui-device-pop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.ui-device-pop.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ui-device-pop {
    transition: none;
  }
}

.ui-device-pop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ui-device-pop-panel {
  position: relative;
  z-index: 1;
  max-width: min(100%, 22rem);
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 20, 32, 0.98), rgba(10, 12, 20, 0.99));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  padding: 0.85rem 1rem 0.9rem;
  max-height: calc(100% - 1rem);
  overflow-y: auto;
}

.ui-device-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ui-device-pop-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e2e8f0;
}

.ui-device-pop-x {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ui-device-pop-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.ui-device-pop-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.72rem;
  align-items: baseline;
}

.ui-device-pop-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.ui-device-pop-dl dd {
  margin: 0;
  color: var(--text);
}

.ui-device-pop-dd-mono {
  font-size: 0.65rem;
  word-break: break-all;
}

.ui-device-pop-hint {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.4;
}

.ui-cutout-body--scroll {
  max-height: min(560px, 70vh);
  overflow-y: auto;
  padding: 0.75rem 0.85rem 0.9rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}

.ui-cutout-body--scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.dash-head--compact {
  margin-bottom: 0.5rem;
}

.dash-hero-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #c4b5fd;
  line-height: 1.2;
}

.dash-hero-title--sm {
  font-size: 0.95rem;
}

.dash-hero-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.45;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.65rem;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.dash-btn--primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.dash-btn--accent {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}

.dash-ico {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.dash-ico--dl {
  clip-path: polygon(20% 0%, 80% 0%, 100% 35%, 100% 100%, 0% 100%, 0% 35%);
}

.dash-ico--sync {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  width: 11px;
  height: 11px;
}

.dash-alert {
  font-size: 0.68rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.45rem;
  border-left: 4px solid;
}

.dash-alert--amber {
  background: rgba(251, 191, 36, 0.08);
  border-left-color: #f59e0b;
  color: #fcd34d;
}

.dash-alert--red {
  background: rgba(248, 113, 113, 0.08);
  border-left-color: #ef4444;
  color: #f87171;
}

.dash-kpi6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .dash-kpi6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dash-kpi {
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  min-height: 0;
}

.dash-kpi-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.1rem;
}

.dash-kpi-ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  opacity: 0.85;
}

.dash-kpi-ico--p {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}
.dash-kpi-ico--g {
  background: linear-gradient(135deg, #34d399, #059669);
}
.dash-kpi-ico--o {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}
.dash-kpi-ico--r {
  background: linear-gradient(135deg, #f87171, #dc2626);
}
.dash-kpi-ico--b {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}
.dash-kpi-ico--v {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.dash-kpi-t {
  flex: 1;
  min-width: 0;
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.25;
}

.dash-kpi-v {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 0.2rem 0 0.1rem;
  line-height: 1;
}

.dash-kpi-s {
  display: block;
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.25;
}

.dash-kpi--has-breakdown {
  padding-right: 2rem;
}

.dash-kpi-info {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-kpi-info:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #c4b5fd;
}

.dash-kpi-info:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dash-sec-breakdown {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.58rem;
  color: var(--muted);
  line-height: 1.45;
}

.dash-sec-bd-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.dash-sec-bd-row:last-child {
  margin-bottom: 0;
}

.dash-sec-posture-h {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dash-sec-posture {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 720px) {
  .dash-sec-posture {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-sec-pillar {
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.dash-sec-pillar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.dash-sec-pillar-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.25;
}

.dash-sec-pillar-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
}

.dash-sec-pillar-suf {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-sec-pillar-meta {
  margin-bottom: 0.35rem;
}

.dash-sec-pillar-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-sec-pillar-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.dash-sec-pillar-bar--threat > span {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.dash-sec-pillar-bar--resp > span {
  background: linear-gradient(90deg, #eab308, #ca8a04);
}

.dash-sec-pillar-bar--cov > span {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.dash-sec-insights-h {
  margin: 0.5rem 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dash-sec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.dash-sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-sec-chip:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text);
}

.dash-sec-chip--active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.12);
  color: #e2e8f0;
}

.dash-sec-chip-l {
  max-width: 12rem;
  text-align: left;
  line-height: 1.25;
}

.dash-sec-chip-n {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #a5b4fc;
}

.dash-sec-panel {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.dash-sec-line {
  font-size: 0.65rem;
  font-family: var(--mono);
  color: var(--muted);
  line-height: 1.45;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-sec-line:last-child {
  border-bottom: none;
}

.dash-bar-t--warn > span {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.dash-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .dash-chart-row {
    grid-template-columns: 1fr;
  }
}

.dash-chart {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.55rem 0.6rem;
}

.dash-chart--full {
  margin-top: 0.25rem;
}

.dash-chart-h {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #a5b4fc;
  font-family: var(--mono);
}

.dash-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-bar {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2rem;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.dash-bar-l {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-bar-t {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-bar-t > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.dash-bar-t--ok > span {
  background: linear-gradient(90deg, #34d399, #059669);
}

.dash-bar-t--bad > span {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

.dash-bar-t--muted > span {
  background: linear-gradient(90deg, #64748b, #475569);
}

.dash-bar-n {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text);
}

.dash-split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 560px) {
  .dash-split2 {
    grid-template-columns: 1fr;
  }
}

.dash-panel {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  padding: 0.55rem 0.6rem;
}

.dash-panel-h {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dash-mini3,
.dash-mini2 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-mini3 > div,
.dash-mini2 > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.dash-mini3 strong,
.dash-mini2 strong {
  margin-left: auto;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dash-mini-p {
  font-size: 0.62rem;
  color: #94a3b8;
  font-family: var(--mono);
}

.dash-mini-ico {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dash-mini-ico--g {
  background: #34d399;
}
.dash-mini-ico--o {
  background: #fb923c;
}
.dash-mini-ico--r {
  background: #f87171;
}
.dash-mini-ico--b {
  background: #3b82f6;
}
.dash-mini-ico--n {
  background: #64748b;
}

.dash-spark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 48px;
  padding: 0.25rem 0;
}

.dash-spark span {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(99, 102, 241, 0.15));
  min-height: 8px;
}

.dash-spark span:nth-child(1) {
  height: 35%;
}
.dash-spark span:nth-child(2) {
  height: 55%;
}
.dash-spark span:nth-child(3) {
  height: 42%;
}
.dash-spark span:nth-child(4) {
  height: 68%;
}
.dash-spark span:nth-child(5) {
  height: 50%;
}
.dash-spark span:nth-child(6) {
  height: 78%;
}
.dash-spark span:nth-child(7) {
  height: 62%;
}
.dash-spark span:nth-child(8) {
  height: 45%;
}

.dash-spark--sha span:nth-child(9) {
  height: 58%;
}
.dash-spark--sha span:nth-child(10) {
  height: 72%;
}
.dash-spark--sha span:nth-child(11) {
  height: 48%;
}
.dash-spark--sha span:nth-child(12) {
  height: 65%;
}

.dash-sha-spark-meta {
  margin: 0.45rem 0 0;
  font-size: 0.62rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.dash-sha-spark-meta strong {
  color: var(--text);
  font-weight: 700;
}

.dash-sha-trend-up {
  color: #34d399;
}

.dash-sha-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .dash-sha-insights-grid {
    grid-template-columns: 1fr;
  }
}

.dash-sha-insight-card {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  min-width: 0;
}

.dash-sha-insight-h {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.25;
}

.dash-sha-insight-line {
  margin: 0;
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.45;
  font-family: var(--mono);
}

.dash-sha-tabs {
  margin-top: 0.25rem;
}

.dash-sha-panels {
  margin-top: 0.45rem;
}

.dash-sha-panel {
  min-width: 0;
}

.dash-sha-filter-strip {
  margin-bottom: 0.5rem;
}

.dash-sha-roles-lead {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}

.dash-sha-role-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-sha-role-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
}

.dash-sha-role-list li:last-child {
  border-bottom: none;
}

.dash-sha-role-name {
  font-weight: 600;
  color: var(--text);
}

.dash-sha-role-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  text-align: right;
}

.dash-pro-lead {
  margin: 0 0 0.65rem;
  max-width: 52ch;
}

.dash-pro-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-pro-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(124, 58, 237, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e0e7ff;
}

.dash-pro-hero {
  min-width: 0;
}

.dash-pro-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e2e8f0;
}

.dash-pro-upn {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.dash-pro-meta {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.dash-pro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dash-pro-chips {
  margin-bottom: 0.45rem;
}

.dash-pro-sec-h {
  margin: 0.65rem 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dash-pro-sec-h--sp {
  margin-top: 0.85rem;
}

.dash-pro-kpi4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

@media (min-width: 640px) {
  .dash-pro-kpi4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-kpi-v--sm {
  font-size: 0.88rem !important;
}

.dash-pro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.dash-pro-snippet {
  font-size: 0.65rem;
  font-family: var(--mono);
  color: var(--muted);
  line-height: 1.45;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-pro-apps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-pro-app {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.dash-pro-app strong {
  color: var(--text);
  font-weight: 600;
}

.dash-pro-alert {
  font-size: 0.65rem;
  color: #fdba74;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
  line-height: 1.4;
}

.dash-pro-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
}

.dash-pro-ca-name {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
}

.dash-lic-bars {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-lic-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.dash-lic-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-lic-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.dash-lic-track--2 > span {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.dash-lic-track--3 > span {
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

.dash-foot-note {
  margin: 0.5rem 0 0;
  font-size: 0.62rem;
  color: var(--muted);
  font-family: var(--mono);
  opacity: 0.85;
}

.dash-cell-btn {
  font-size: 0.62rem;
  font-weight: 600;
  color: #93c5fd;
  cursor: default;
  white-space: nowrap;
}

.dash-pol-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 720px) {
  .dash-pol-top {
    grid-template-columns: 1fr;
  }
}

.dash-pol-w {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0.55rem;
}

.dash-pol-wh {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #a5b4fc;
}

.dash-pol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
}

.dash-pp {
  font-size: 0.58rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.dash-pp--on {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
  color: #e0e7ff;
}

.dash-pol-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.62rem;
  color: var(--muted);
}

.dash-pol-stats span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-dot--g {
  background: #34d399;
}
.dash-dot--b {
  background: #3b82f6;
}
.dash-dot--r {
  background: #f87171;
}
.dash-dot--y {
  background: #fbbf24;
}

.dash-gauge {
  text-align: center;
  padding: 0.35rem 0;
}

.dash-gauge-val {
  display: inline-block;
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.35), rgba(0, 0, 0, 0.4));
  border: 2px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
  margin-bottom: 0.35rem;
}

.dash-gauge-l {
  font-size: 0.58rem;
  color: var(--muted);
}

.dash-pol-bars {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.dash-pol-bars > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.58rem;
  color: var(--muted);
}

.dash-mbar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-mbar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.dash-impact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.62rem;
  color: var(--muted);
}

.dash-impact li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
}

.dash-pol-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.dash-fake-input {
  flex: 1;
  min-width: 140px;
  font-size: 0.65rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
}

.dash-fake-dd {
  font-size: 0.62rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
}

.dash-pol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

@media (max-width: 520px) {
  .dash-pol-grid {
    grid-template-columns: 1fr;
  }
}

.dash-pol-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0.55rem;
}

.dash-pol-card-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.dash-pol-name {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.dash-pol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.dash-tag {
  font-size: 0.52rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c4b5fd;
}

.dash-pol-prog {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.dash-pol-prog > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #3b82f6);
}

.dash-pol-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  cursor: default;
}

.ui-cutout-foot {
  margin: 1rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  opacity: 0.85;
}

.ui-cutout-foot--inset {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
}

.ui-id-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (max-width: 520px) {
  .ui-id-rail {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.ui-chip {
  display: block;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: left;
}

.ui-chip:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.35);
}

.ui-chip.ui-chip--active {
  border-color: var(--border-strong);
  background: rgba(99, 102, 241, 0.18);
  color: var(--text);
}

.ui-id-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.85rem 1rem 1rem;
  overflow: hidden;
  min-height: 140px;
}

.ui-id-card-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 0.65rem;
  font-family: var(--mono);
}

.ui-id-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  font-size: 0.78rem;
  align-items: baseline;
}

.ui-id-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.ui-id-dl dd {
  margin: 0;
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.76rem;
}

.ui-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.55), transparent);
  animation: ui-scan 4.5s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes ui-scan {
  0%,
  100% {
    transform: translateY(-120px);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  50% {
    transform: translateY(-12px);
    opacity: 0.55;
  }
}

.ui-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 700px) {
  .ui-kpi-row {
    grid-template-columns: 1fr;
  }
}

.ui-kpi {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.ui-kpi-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.ui-kpi-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.ui-kpi-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ui-kpi-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-kpi-bar--warn .ui-kpi-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.ui-kpi-bar--ok .ui-kpi-fill {
  background: linear-gradient(90deg, var(--ok), #059669);
}

.ui-lic-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.ui-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ui-legend-dot--a {
  background: var(--accent);
}
.ui-legend-dot--b {
  background: var(--accent2);
}

.ui-legend-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  opacity: 0.85;
}

@media (max-width: 520px) {
  .ui-legend-note {
    margin-left: 0;
    width: 100%;
  }
}

.ui-app-meta {
  font-size: 0.68rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.ui-scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-scope-list li {
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.ui-scope-list code {
  font-family: var(--mono);
  color: #c4b5fd;
  word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  .ui-live-dot {
    animation: none;
  }
  .ui-scanline {
    animation: none;
    display: none;
  }
}

.ui-showcase .ui-cutout {
  animation: ui-cutout-in 0.55s ease both;
}

@keyframes ui-cutout-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-showcase .ui-cutout {
    animation: none;
  }
}

/* --- Product depth map (mini window cutouts) --- */
.depth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.depth-grid--nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .depth-grid--nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .depth-grid--nav {
    grid-template-columns: 1fr;
  }
}

.depth-pillar {
  margin: 0;
  min-width: 0;
}

.mini-cutout {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.mini-cutout:hover {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.14);
  transform: translateY(-2px);
}

.mini-cutout-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border);
}

.mini-cutout-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.25;
}

.mini-cutout-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.mini-cutout-badge--ghost {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.mini-cutout-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.mini-cutout-body--prose p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.mini-cutout--text .mini-cutout-body--prose {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mini-cutout-screen {
  margin: 0 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  font-family: var(--mono);
  line-height: 1.35;
}

.mini-snippet-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.mini-snippet-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

button.mini-snippet-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

button.mini-snippet-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-snippet-row--tip:hover {
  background: rgba(99, 102, 241, 0.07);
  color: var(--text);
}

.mini-snippet-row--tip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.map-nav-tip {
  position: fixed;
  z-index: 400;
  max-width: min(16.5rem, calc(100vw - 1.75rem));
  padding: 0.7rem 0.9rem 0.75rem;
  border-radius: 14px 14px 14px 5px;
  background: linear-gradient(155deg, rgba(22, 24, 38, 0.98), rgba(12, 14, 22, 0.99));
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.map-nav-tip.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .map-nav-tip {
    transition: none;
  }
}

.map-nav-tip-inner {
  position: relative;
}

.map-nav-tip-text {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.map-nav-tip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(99, 102, 241, 0.35);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.map-nav-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(18, 20, 32, 0.98);
}

.map-nav-tip.map-nav-tip--below::before {
  bottom: auto;
  top: -7px;
  border-top: none;
  border-bottom: 7px solid rgba(99, 102, 241, 0.35);
}

.map-nav-tip.map-nav-tip--below::after {
  bottom: auto;
  top: -6px;
  border-top: none;
  border-bottom: 6px solid rgba(18, 20, 32, 0.98);
}

.mini-snippet-idx {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.55);
  padding-top: 0.12rem;
}

.mini-cutout-foot {
  margin: 0;
  padding: 0.45rem 0.9rem 0.65rem;
  font-size: 0.62rem;
  color: var(--muted);
  font-family: var(--mono);
  opacity: 0.75;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
}

.depth-extra {
  margin: 0 0 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.55;
}

.depth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.depth-row--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .depth-row {
    grid-template-columns: 1fr;
  }
}

.depth-call-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.depth-call-list li {
  margin-bottom: 0.45rem;
}

.depth-call-list li:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mini-cutout:hover {
    transform: none;
  }
}
