:root {
  --bg: #07100f;
  --bg-soft: #0d1917;
  --surface: rgba(13, 25, 23, 0.86);
  --surface-strong: #12221f;
  --line: rgba(185, 255, 217, 0.16);
  --text: #f3fbf7;
  --muted: #a6b8b1;
  --accent: #39e58f;
  --accent-strong: #1fcf79;
  --accent-soft: rgba(57, 229, 143, 0.14);
  --blue: #35b9ff;
  --blue-strong: #1f9fe6;
  --blue-soft: rgba(53, 185, 255, 0.14);
  --hud-line: rgba(57, 229, 143, 0.32);
  --hud-grid-line: rgba(255, 255, 255, 0.05);
  --glow-accent: rgba(57, 229, 143, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 15, 0.78), #07100f 760px),
    radial-gradient(circle at 75% 0%, rgba(57, 229, 143, 0.16), transparent 34%),
    #07100f;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

main {
  overflow-x: clip;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #04110d;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 16, 15, 0.9);
  backdrop-filter: blur(18px);
}

.environment-banner[hidden] {
  display: none;
}

.environment-banner {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #1b1610;
}

.environment-banner .container {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 42px;
  padding-block: 0.5rem;
}

.environment-banner strong {
  flex: 0 0 auto;
  color: #ffd27a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.environment-banner span {
  color: #f2e5cf;
  font-size: 0.86rem;
}

.environment-banner[data-environment="live"] {
  background: #241113;
}

.environment-banner[data-environment="live"] strong {
  color: #ff8f97;
}

.environment-banner[data-environment="live"] span {
  color: #f5dfe1;
}

.environment-banner[data-environment="local"] {
  background: #101a24;
}

.environment-banner[data-environment="local"] strong {
  color: #79c8ff;
}

.environment-banner[data-environment="local"] span {
  color: #dceeff;
}

@media (max-width: 640px) {
  .environment-banner .container {
    display: grid;
    gap: 0.1rem;
  }
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.brand-wordmark {
  width: 170px;
  height: auto;
  filter: brightness(1.18) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.brand-title {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 0.62rem 0.8rem;
  border-radius: 6px;
  color: #d7e7e0;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.header-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

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

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 20px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 16, 15, 0.98), rgba(7, 16, 15, 0.68) 54%, rgba(7, 16, 15, 0.9)),
    linear-gradient(180deg, rgba(7, 16, 15, 0.1), #07100f 96%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(320px, 0.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.65rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.22;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 1.7rem;
  color: #d7e7e0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions,
.portal-actions,
.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.1;
}

.button-primary {
  background: var(--accent);
  color: #03110c;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #63f2ab;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  color: #d7e7e0;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 18, 16, 0.72);
  box-shadow: var(--shadow);
}

.hero-visual-panel {
  position: relative;
  min-height: 500px;
  padding: 1rem;
  overflow: hidden;
  align-content: end;
  background:
    linear-gradient(145deg, rgba(18, 34, 31, 0.94), rgba(7, 16, 15, 0.8)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 44px);
}

.hero-image-stage {
  position: relative;
  min-height: 430px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(57, 229, 143, 0.1), rgba(255, 255, 255, 0.03)),
    #07100f;
  overflow: hidden;
}

.hero-image-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 15, 0.08), rgba(7, 16, 15, 0.82)),
    linear-gradient(90deg, rgba(7, 16, 15, 0.12), transparent 48%);
  pointer-events: none;
}

.hero-image-stage img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.machine-visual {
  position: absolute;
  inset: 1rem 1rem 6.6rem;
}

.machine-frame {
  position: absolute;
  left: 0.4rem;
  bottom: 0;
  width: min(270px, 74%);
  height: 245px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.machine-frame::before,
.machine-frame::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.26);
}

.machine-frame::before {
  left: 18%;
  bottom: 0;
  width: 3px;
  height: 88%;
}

.machine-frame::after {
  left: -6px;
  bottom: -10px;
  width: 92%;
  height: 10px;
  border-radius: 999px;
}

.machine-arm,
.machine-seat,
.machine-stack {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.machine-arm {
  left: 24%;
  top: 25%;
  width: 155px;
  height: 6px;
  background: var(--accent);
  transform: rotate(-28deg);
  transform-origin: left center;
  box-shadow: 92px 0 0 rgba(255, 255, 255, 0.22);
}

.machine-arm::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -15px;
  width: 34px;
  height: 34px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  background: rgba(7, 16, 15, 0.92);
}

.machine-seat {
  left: 31%;
  bottom: 30px;
  width: 86px;
  height: 22px;
  background: #eaf9f2;
  box-shadow: 38px -30px 0 -5px #eaf9f2;
}

.machine-stack {
  right: 10px;
  bottom: 10px;
  width: 52px;
  height: 128px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(180deg, rgba(7, 16, 15, 0.2) 0 10px, rgba(255, 255, 255, 0.18) 10px 12px),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.qr-label-card {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.7rem;
  align-items: center;
  min-width: 190px;
  padding: 0.8rem;
  border: 1px solid rgba(57, 229, 143, 0.42);
  border-radius: 8px;
  background: rgba(5, 13, 11, 0.9);
}

.qr-label-card strong,
.qr-label-card small {
  display: block;
}

.qr-label-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-qr {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border: 5px solid #f1fff8;
  border-radius: 5px;
  background:
    linear-gradient(90deg, #07100f 7px, transparent 7px) 0 0 / 14px 14px,
    linear-gradient(#07100f 7px, transparent 7px) 0 0 / 14px 14px,
    #f1fff8;
}

.phone-preview {
  position: absolute;
  z-index: 3;
  right: 1.2rem;
  bottom: 3.5rem;
  width: min(250px, calc(100% - 2.4rem));
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #07100f;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.phone-top {
  width: 62px;
  height: 5px;
  margin: 0.15rem auto 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.phone-content {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #12221f, #0a1513);
}

.phone-content small,
.phone-options span {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-chip {
  justify-self: start;
  padding: 0.26rem 0.48rem;
  border: 1px solid rgba(57, 229, 143, 0.38);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
}

.phone-options {
  display: grid;
  gap: 0.35rem;
}

.phone-options span {
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.phone-submit {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent);
  color: #03110c;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-status-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.hero-status-row span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #dff2ea;
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.hero-proof-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dff2ea;
  font-size: 0.85rem;
  font-weight: 800;
}

.instant-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
  max-width: 690px;
  margin-top: 1rem;
}

.instant-flow span {
  position: relative;
  display: grid;
  min-height: 74px;
  align-content: end;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #e6f4ef;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.instant-flow span::before,
.instant-flow span::after {
  content: "";
  display: block;
}

.instant-flow span::before {
  position: absolute;
  top: 0.72rem;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(57, 229, 143, 0.78);
  border-radius: 7px;
  transform: translateX(-50%);
}

.instant-flow span:not(:last-child)::after {
  position: absolute;
  top: 1.58rem;
  right: -0.55rem;
  width: 0.7rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(57, 229, 143, 0.55);
}

.flow-problem::before {
  border-radius: 50% 50% 50% 8px;
  transform: translateX(-50%) rotate(-45deg);
}

.flow-scan::before {
  background:
    linear-gradient(90deg, var(--accent) 5px, transparent 5px) 0 0 / 10px 10px,
    linear-gradient(var(--accent) 5px, transparent 5px) 0 0 / 10px 10px;
}

.flow-report::before {
  border-radius: 7px 7px 7px 2px;
  box-shadow: inset 0 -9px 0 rgba(57, 229, 143, 0.16);
}

.flow-service::before {
  border-radius: 999px;
  box-shadow: 13px -2px 0 -10px var(--accent), -13px 2px 0 -10px var(--accent);
}

.flow-record::before {
  border-radius: 5px;
  background:
    linear-gradient(var(--accent) 0 0) 6px 7px / 14px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.42) 0 0) 6px 15px / 17px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.28) 0 0) 6px 22px / 11px 2px no-repeat;
}

.metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-card span {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.15rem;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 580px;
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.card-grid,
.benefit-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.portal-card {
  min-height: 210px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.feature-card {
  display: grid;
  align-content: start;
  position: relative;
  min-height: 238px;
  padding: 1.1rem;
  overflow: hidden;
}

.feature-card p,
.portal-card p {
  color: var(--muted);
}

.feature-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.feature-card .card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: auto;
  min-width: 34px;
  height: 28px;
  margin: 0;
  padding: 0 0.42rem;
  border: 1px solid rgba(57, 229, 143, 0.24);
  border-radius: 999px;
  background: rgba(57, 229, 143, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.service-icon-frame {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 1.05rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 229, 143, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(7, 16, 15, 0.72);
  box-shadow: 0 16px 45px rgba(57, 229, 143, 0.06);
  overflow: hidden;
}

.service-icon-frame img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(57, 229, 143, 0.16));
}

.service-icon-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split-layout.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 0.75fr);
  align-items: center;
}

.qr-section,
.portal-teaser {
  background: linear-gradient(180deg, rgba(57, 229, 143, 0.055), rgba(57, 229, 143, 0.015));
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.process-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.72);
}

.process-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(57, 229, 143, 0.36);
  border-radius: 12px;
  background: rgba(57, 229, 143, 0.1);
  color: var(--accent);
  font-weight: 900;
}

.process-icon b {
  position: absolute;
  right: -6px;
  top: -6px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #04110d;
  font-size: 0.78rem;
}

.process-icon::before,
.process-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.step-scan .process-icon::before {
  width: 28px;
  height: 28px;
  border: 4px solid #eafff5;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #07100f 5px, transparent 5px) 0 0 / 10px 10px,
    linear-gradient(#07100f 5px, transparent 5px) 0 0 / 10px 10px,
    #eafff5;
}

.step-problem .process-icon::before {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
}

.step-problem .process-icon::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.step-photo .process-icon::before {
  width: 32px;
  height: 24px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.step-photo .process-icon::after {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.step-review .process-icon::before {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(-34deg);
}

.step-review .process-icon::after {
  width: 16px;
  height: 16px;
  right: 13px;
  bottom: 13px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.step-record .process-icon::before {
  width: 30px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background:
    linear-gradient(var(--accent) 0 0) 7px 10px / 14px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.48) 0 0) 7px 19px / 17px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.3) 0 0) 7px 28px / 12px 2px no-repeat;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.visual-process {
  position: relative;
}

.visual-process li {
  position: relative;
  overflow: hidden;
}

.visual-process li::before {
  content: "";
  position: absolute;
  inset: auto 1rem 0 auto;
  width: 120px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  opacity: 0.7;
}

.visual-process li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2.75rem;
  top: 4.25rem;
  bottom: -1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(57, 229, 143, 0.65), transparent);
}

.qr-visual-stack {
  display: grid;
  gap: 1rem;
}

.workflow-image-card,
.dashboard-image-card,
.audience-image-card,
.portal-visual-band figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.workflow-image-card img,
.dashboard-image-card img,
.audience-image-card img,
.portal-visual-band img,
.portal-route-image,
.portal-preview-image {
  width: 100%;
  display: block;
  background:
    linear-gradient(145deg, rgba(57, 229, 143, 0.1), rgba(255, 255, 255, 0.03)),
    #07100f;
  object-fit: cover;
}

.workflow-image-card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.dashboard-image-card img,
.audience-image-card img {
  aspect-ratio: 4 / 3;
}

.workflow-image-card figcaption,
.dashboard-image-card figcaption,
.audience-image-card figcaption,
.portal-visual-band figcaption {
  padding: 0.78rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcebe5;
  font-size: 0.9rem;
  font-weight: 800;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.before-after-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.comparison-card {
  position: relative;
  min-height: 170px;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.comparison-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 76px;
  height: 60px;
  opacity: 0.8;
}

.comparison-card.before::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.24) 0 0) 0 9px / 62px 3px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) 8px 28px / 42px 3px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.13) 0 0) 16px 47px / 52px 3px no-repeat;
}

.comparison-card.after {
  border-color: rgba(57, 229, 143, 0.32);
  background: rgba(57, 229, 143, 0.075);
}

.comparison-card.after::after {
  background:
    linear-gradient(var(--accent) 0 0) 0 7px / 58px 5px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.42) 0 0) 0 27px / 72px 5px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.26) 0 0) 0 47px / 46px 5px no-repeat;
}

.comparison-card span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.comparison-card.after span {
  background: var(--accent-soft);
  color: var(--accent);
}

.comparison-card strong {
  display: block;
  max-width: 280px;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.comparison-card p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.comparison-arrow {
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: #03110c;
}

.comparison-arrow::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  margin: 13px auto;
  border-right: 3px solid #03110c;
  border-bottom: 3px solid #03110c;
  transform: rotate(-45deg);
}

.benefit-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.benefit-dashboard {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.dashboard-head span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-bars {
  display: grid;
  gap: 0.8rem;
}

.dashboard-bars span {
  display: grid;
  gap: 0.35rem;
  color: #dcebe5;
  font-size: 0.9rem;
  font-weight: 750;
}

.dashboard-bars i {
  display: block;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dashboard-bars i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.dashboard-ticket {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(57, 229, 143, 0.28);
  border-radius: 7px;
  background: rgba(57, 229, 143, 0.08);
}

.dashboard-ticket span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 850;
}

.benefit-grid span,
.audience-panel span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #e8f4ef;
  font-weight: 750;
}

.audience-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.audience-panel span:first-child {
  grid-column: 1 / -1;
  min-height: 86px;
  background: var(--accent-soft);
}

.audience-visual {
  display: grid;
  gap: 1rem;
}

.audience-image-card img {
  max-height: 330px;
}

.network-map {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(7, 16, 15, 0.72);
  overflow: hidden;
}

.network-map::before,
.network-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76%;
  height: 1px;
  background: rgba(57, 229, 143, 0.28);
  transform: translate(-50%, -50%) rotate(24deg);
}

.network-map::after {
  transform: translate(-50%, -50%) rotate(-24deg);
}

.network-node {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 96px;
  min-height: 44px;
  place-items: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(9, 20, 18, 0.94);
  color: #e9f6f1;
  font-weight: 850;
}

.network-node.main {
  left: 50%;
  top: 50%;
  min-width: 116px;
  min-height: 58px;
  border-color: rgba(57, 229, 143, 0.42);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translate(-50%, -50%);
}

.network-node.n1 {
  left: 7%;
  top: 16%;
}

.network-node.n2 {
  right: 9%;
  top: 15%;
}

.network-node.n3 {
  left: 10%;
  bottom: 17%;
}

.network-node.n4 {
  right: 8%;
  bottom: 16%;
}

.portal-teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.76);
}

.portal-teaser-card p {
  max-width: 720px;
  color: var(--muted);
}

.portal-mockup {
  min-width: 260px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #07100f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.portal-preview-image {
  height: 150px;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
}

.mockup-toolbar {
  display: flex;
  gap: 0.32rem;
  padding: 0.25rem 0.2rem 0.75rem;
}

.mockup-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 9px;
  background: linear-gradient(180deg, #12221f, #0a1513);
}

.mockup-grid strong,
.mockup-grid span {
  display: grid;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 850;
}

.mockup-grid strong {
  grid-column: 1 / -1;
  border-color: rgba(57, 229, 143, 0.36);
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-lines {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: #d8e9e2;
}

.contact-lines a {
  color: var(--accent);
  font-weight: 800;
}

.contact-mini-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.contact-mini-flow span {
  display: grid;
  gap: 0.35rem;
  min-height: 78px;
  align-content: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #dcebe5;
  font-weight: 800;
}

.contact-mini-flow strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-form,
.contact-cta {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-cta {
  align-content: start;
}

.contact-cta-title {
  margin: 0;
}

.contact-cta p {
  margin: 0;
  color: var(--muted);
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: #dcebe5;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.82rem 0.9rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form option {
  background: #10201d;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050b0a;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 0.6fr));
  gap: 2rem;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.site-footer p,
.copyright {
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #b9ccc5;
  overflow-wrap: anywhere;
}

.portal-page {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(57, 229, 143, 0.14), transparent 38%), var(--bg);
}

.portal-hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0 3rem;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.58fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.portal-hero h1 {
  max-width: 920px;
}

.portal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.portal-route-visual {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 34, 31, 0.92), rgba(7, 16, 15, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 42px);
  box-shadow: var(--shadow);
}

.portal-route-image {
  height: 210px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
}

.route-screen {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: #07100f;
}

.route-screen strong {
  font-size: 1.08rem;
}

.route-pill {
  justify-self: start;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(57, 229, 143, 0.38);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.route-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.58rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.route-line span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(57, 229, 143, 0.16));
}

.route-line em {
  color: #dcebe5;
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 800;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 5rem;
}

.portal-visual-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
}

.portal-visual-band img {
  aspect-ratio: 16 / 9;
}

.portal-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.portal-card-badge {
  justify-self: start;
  padding: 0.26rem 0.52rem;
  border: 1px solid rgba(57, 229, 143, 0.24);
  border-radius: 999px;
  background: rgba(57, 229, 143, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.portal-card h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.portal-card .button {
  margin-top: auto;
}

.internal-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1040px) {
  .service-grid,
  .benefit-grid,
  .portal-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-layout,
  .split-layout.reverse,
  .contact-grid,
  .portal-teaser-card,
  .benefit-layout,
  .portal-hero-grid,
  .portal-visual-band {
    grid-template-columns: 1fr;
  }

  .portal-actions {
    justify-content: flex-start;
  }

  .before-after-panel {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 72px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 16, 15, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .nav-toggle {
    display: block;
  }

  .header-link {
    display: none;
  }

  .brand-wordmark {
    width: 145px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 1.25rem;
    padding-top: 4.35rem;
    padding-bottom: 3.5rem;
  }

  .hero-copy {
    display: grid;
  }

  .hero-lead {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .hero-actions,
  .section-actions,
  .portal-actions,
  .portal-hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .service-grid,
  .benefit-grid,
  .portal-grid,
  .audience-panel,
  .contact-mini-flow {
    grid-template-columns: 1fr;
  }

  .hero-visual-panel {
    min-height: 455px;
    padding: 0.8rem;
  }

  .hero-image-stage {
    min-height: 395px;
  }

  .machine-visual {
    inset: 0.7rem 0.7rem 6.2rem;
  }

  .machine-frame {
    left: 0.15rem;
    width: 84%;
    height: 218px;
  }

  .qr-label-card {
    left: 0.4rem;
    right: auto;
    top: 0.4rem;
    min-width: 0;
    max-width: calc(100% - 0.8rem);
  }

  .phone-preview {
    right: 0.8rem;
    bottom: 3.65rem;
    width: min(236px, calc(100% - 1.6rem));
  }

  .hero-status-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .hero-status-row span {
    min-height: 36px;
    font-size: 0.66rem;
  }

  .hero-proof-strip {
    display: none;
  }

  .instant-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
    margin-top: 0.75rem;
  }

  .instant-flow span {
    min-height: 62px;
    padding: 0.5rem 0.18rem;
    font-size: 0.66rem;
  }

  .instant-flow span::before {
    top: 0.55rem;
    width: 22px;
    height: 22px;
  }

  .instant-flow span:not(:last-child)::after {
    display: none;
  }

  .benefit-dashboard,
  .portal-mockup {
    min-width: 0;
    width: 100%;
  }

  .network-map {
    min-height: 300px;
  }

  .network-node {
    min-width: 82px;
    font-size: 0.86rem;
  }

  .feature-card,
  .portal-card {
    min-height: auto;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0 0.85rem;
    align-items: start;
    padding: 0.9rem;
  }

  .feature-card .service-icon-frame {
    grid-row: span 3;
    width: 72px;
    height: 72px;
    margin: 0;
  }

  .service-icon-frame img {
    width: 76%;
    height: 76%;
  }

  .feature-card .card-icon {
    display: none;
  }

  .feature-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .feature-card p {
    margin: 0;
    font-size: 0.9rem;
  }

  .process-list li {
    gap: 0.8rem;
    padding: 0.85rem;
  }

  .process-icon {
    width: 52px;
    height: 52px;
  }

  .visual-process li:not(:last-child)::after {
    left: 2.45rem;
    top: 3.8rem;
  }

  .visual-process li::before {
    width: 78px;
    height: 52px;
  }

  .before-after-panel {
    margin-bottom: 0.8rem;
  }

  .comparison-card {
    min-height: 142px;
    padding: 0.95rem;
  }

  .workflow-image-card img,
  .portal-visual-band img {
    aspect-ratio: 4 / 3;
  }

  .dashboard-image-card img,
  .audience-image-card img,
  .portal-route-image,
  .portal-preview-image {
    max-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .section {
    padding: 3.4rem 0;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }
}

/* ===== Über-TwinSolution-Sektion (Relaunch V1) ===== */
.about-section {
  background:
    linear-gradient(180deg, rgba(53, 185, 255, 0.05), rgba(53, 185, 255, 0.015)),
    var(--bg);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-value {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.about-value-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(53, 185, 255, 0.3);
  background:
    radial-gradient(circle at 30% 30%, rgba(53, 185, 255, 0.5), transparent 60%),
    var(--blue-soft);
}

.about-value h3 {
  margin-bottom: 0.45rem;
}

.about-value p {
  margin: 0;
  color: var(--muted);
}

.about-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  border: 1px solid rgba(53, 185, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(53, 185, 255, 0.1), rgba(255, 255, 255, 0.03)),
    var(--surface);
  box-shadow: var(--shadow);
}

.about-panel h3 {
  margin: 0;
}

.about-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-facts li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-facts strong {
  color: var(--blue);
}

.about-facts span {
  color: var(--muted);
  text-align: right;
}

.about-status-note {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.about-panel .button {
  margin-top: 0.2rem;
}

@media (max-width: 1040px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .about-facts span {
    text-align: left;
  }
}

/* ===== Scroll-Reveal-System (Motion-Modernisierung) ===== */
[data-reveal] {
  transition: opacity 520ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal="up"] {
  opacity: 0;
  transform: translateY(16px);
}

html.js [data-reveal="left"] {
  opacity: 0;
  transform: translateX(-24px);
}

html.js [data-reveal="right"] {
  opacity: 0;
  transform: translateX(24px);
}

html.js [data-reveal="grow"] {
  transform: scaleX(0);
  transform-origin: left center;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.js [data-reveal="grow"].is-visible {
  transform: scaleX(1);
}

/* KPI-Balken: füllen sich beim Sichtbarwerden */
.dashboard-bars i::before {
  width: 0;
  transition: width 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dashboard-bars.is-visible i::before {
  width: var(--value);
}

/* ===== Hero-Eintrittsanimation (Motion-Modernisierung) ===== */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-panel-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-float {
  from {
    transform: translateY(-4px);
  }
  to {
    transform: translateY(4px);
  }
}

@keyframes hero-glow-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
}

html.js .hero-copy > * {
  opacity: 0;
}

html.js .hero-copy > .reveal-step-1 {
  animation: hero-rise 520ms ease-out 0ms both;
}

html.js .hero-copy > .reveal-step-2 {
  animation: hero-rise 520ms ease-out 90ms both;
}

html.js .hero-copy > .reveal-step-3 {
  animation: hero-rise 520ms ease-out 180ms both;
}

html.js .hero-copy > .reveal-step-4 {
  animation: hero-rise 520ms ease-out 270ms both;
}

html.js .hero-copy > .reveal-step-5 {
  animation: hero-rise 520ms ease-out 360ms both;
}

html.js .hero-copy > .reveal-step-6 {
  animation: hero-rise 520ms ease-out 450ms both;
}

html.js .hero-visual-panel {
  animation: hero-panel-rise 600ms ease-out 150ms both;
}

.hero-visual-panel::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--glow-accent), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  animation: hero-glow-pulse 7s ease-in-out infinite;
}

html.js .hero-image-stage {
  animation: hero-float 9s ease-in-out infinite alternate;
  animation-delay: 900ms;
}

.hero-idle-paused .hero-image-stage,
.hero-idle-paused .hero-visual-panel::before {
  animation-play-state: paused;
}

/* ===== Microinteractions (Motion-Modernisierung) ===== */
.button {
  transition: transform 180ms ease, box-shadow 220ms ease, background 180ms ease, border-color 180ms ease;
}

.button:active {
  transform: translateY(0);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 6px 18px var(--glow-accent);
}

.button-primary:active {
  box-shadow: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.32rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.feature-card {
  transition: transform 200ms ease, border-color 200ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(57, 229, 143, 0.4);
}

.service-icon-frame {
  transition: transform 200ms ease;
}

.feature-card:hover .service-icon-frame,
.feature-card:focus-within .service-icon-frame {
  transform: scale(1.03);
}

.process-list li {
  box-shadow: inset 2px 0 0 0 transparent;
  transition: box-shadow 200ms ease;
}

.process-list li:hover {
  box-shadow: inset 2px 0 0 0 var(--accent);
}

.process-icon {
  transition: transform 200ms ease;
}

.process-list li:hover .process-icon {
  transform: scale(1.05);
}

.portal-teaser-card .portal-actions .button-primary {
  gap: 0.6rem;
}

.portal-teaser-card .portal-actions .button-primary::after {
  content: "\2192";
  transition: transform 200ms ease;
}

.portal-teaser-card .portal-actions .button-primary:hover::after,
.portal-teaser-card .portal-actions .button-primary:focus-visible::after {
  transform: translateX(2px);
}

/* ===== Systemüberblick / HUD-Signalfluss (Motion-Modernisierung) ===== */
.system-flow-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(57, 229, 143, 0.055), rgba(57, 229, 143, 0.015)),
    var(--bg);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.system-flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--hud-grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, var(--hud-grid-line) 0 1px, transparent 1px 64px);
  opacity: 0.6;
  pointer-events: none;
}

.system-flow-diagram {
  position: relative;
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2.5rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--hud-line);
  border-radius: var(--radius);
  background: rgba(7, 16, 15, 0.55);
  overflow: hidden;
}

.flow-node {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  min-width: 108px;
  text-align: center;
}

.flow-node-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(57, 229, 143, 0.36);
  border-radius: 10px;
  background: rgba(57, 229, 143, 0.1);
  color: var(--accent);
}

.flow-node-icon::before,
.flow-node-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.flow-node-label {
  font-size: 0.82rem;
  font-weight: 850;
  color: #e6f4ef;
}

.flow-connector {
  flex: 1;
  height: 2px;
  min-width: 24px;
  background: linear-gradient(90deg, var(--accent), rgba(57, 229, 143, 0.16));
  border-radius: 999px;
}

.flow-pulse-dot {
  position: absolute;
  top: 50%;
  left: 4cqw;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.system-flow-diagram.is-active .flow-pulse-dot {
  animation: flow-pulse-travel 5s ease-in-out infinite;
}

.system-flow-diagram.is-paused .flow-pulse-dot {
  animation-play-state: paused;
}

@keyframes flow-pulse-travel {
  0% {
    transform: translate(-50%, -50%) translateX(0);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  46% {
    transform: translate(-50%, -50%) translateX(92cqw);
    opacity: 1;
  }
  52% {
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) translateX(92cqw);
    opacity: 0;
  }
}

/* Knoten-Icons */
.flow-node[data-flow-icon="machine"] .flow-node-icon::before {
  width: 28px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 3px 3px 0 0;
  border-bottom: 4px solid var(--accent);
}

.flow-node[data-flow-icon="qr"] .flow-node-icon::before {
  width: 24px;
  height: 24px;
  border: 4px solid var(--accent);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(7, 16, 15, 0.92) 5px, transparent 5px) 0 0 / 10px 10px,
    linear-gradient(rgba(7, 16, 15, 0.92) 5px, transparent 5px) 0 0 / 10px 10px;
}

.flow-node[data-flow-icon="ticket"] .flow-node-icon::before {
  width: 26px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background:
    linear-gradient(var(--accent) 0 0) 5px 8px / 14px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.5) 0 0) 5px 15px / 14px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.3) 0 0) 5px 22px / 10px 2px no-repeat;
}

.flow-node[data-flow-icon="technician"] .flow-node-icon::before {
  width: 30px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(-34deg);
}

.flow-node[data-flow-icon="technician"] .flow-node-icon::after {
  width: 16px;
  height: 16px;
  right: 12px;
  bottom: 12px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.flow-node[data-flow-icon="repair"] .flow-node-icon::before {
  width: 22px;
  height: 22px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 14px -2px 0 -10px var(--accent), -14px 2px 0 -10px var(--accent);
}

.flow-node[data-flow-icon="file"] .flow-node-icon::before {
  width: 28px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background:
    linear-gradient(var(--accent) 0 0) 6px 9px / 14px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.48) 0 0) 6px 16px / 16px 2px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.3) 0 0) 6px 23px / 11px 2px no-repeat;
}

.flow-node[data-flow-icon="dashboard"] .flow-node-icon::before {
  width: 28px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background:
    linear-gradient(var(--accent) 0 0) 4px 14px / 5px 6px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.6) 0 0) 11px 9px / 5px 11px no-repeat,
    linear-gradient(rgba(57, 229, 143, 0.4) 0 0) 18px 12px / 5px 8px no-repeat;
}

@media (max-width: 1040px) {
  .system-flow-diagram {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem 1.25rem;
    padding: 2rem 1.25rem;
  }

  .flow-connector {
    display: none;
  }

  .flow-pulse-dot {
    display: none;
  }
}

@media (max-width: 640px) {
  .system-flow-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .flow-node {
    grid-auto-flow: column;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    min-width: 0;
    text-align: left;
  }
}

/* ===== Barrierefreiheit: Bewegung reduzieren (Relaunch V1) ===== */
@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;
    scroll-behavior: auto !important;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html.js .hero-copy > *,
  html.js .hero-visual-panel,
  html.js .hero-image-stage {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-visual-panel::before,
  .flow-pulse-dot {
    display: none !important;
  }

  .dashboard-bars i::before {
    width: var(--value) !important;
    transition: none !important;
  }
}

/* ===== Rechtsseiten-Layout: Impressum / Datenschutz ===== */
.legal-main {
  padding-block: clamp(2rem, 5vw, 4rem);
  overflow-wrap: break-word;
}

.legal-hero,
.legal-content {
  width: min(1080px, 100% - clamp(2.5rem, 7vw, 6rem));
  margin-inline: auto;
}

.legal-hero {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.legal-content {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.legal-card {
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.legal-card h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  line-height: 1.2;
}

.legal-card h3 {
  margin-top: 1.5rem;
}

.legal-card p {
  margin-bottom: 0.7rem;
}

.legal-card a {
  overflow-wrap: anywhere;
}

.legal-card > *:last-child {
  margin-bottom: 0;
}
