/* ==========================================================================
   KOBIL — Solution OneSec4All — Sektion: Hero (Figma 16604:20718)
   Blauer Verlaufs-Hero (1360x1110) mit Titel, Kerben-CTA, Security-Visual
   (iPhone / Code-Snippet / Debugger-Toast / Schild / Badges) und
   zweispaltigem Abschlusstext.
   ========================================================================== */

/* DM Mono (Latin-Subset, 8.7 KB) für das React-Code-Snippet der Code-Karte —
   die Seite lädt sonst nur Instrument Sans/Inter, der Fallback (SF Mono)
   weicht sichtbar von den Figma-Glyphen ab */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/solutions/onesec4all/hero/dm-mono-code.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2018-2019;
}

.sec-onesec4all-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-radius: var(--radius-sm);
  padding: 120px 0 138px;
}

/* ---- Hintergrund: gebackener Verlauf (Figma-Blur 222 → als WebP) + Welle ---- */

.os4a-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.os4a-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.os4a-hero__wave {
  position: absolute;
  top: -252px;
  left: -286px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2089.7px;
  height: 1292.3px;
}

.os4a-hero__wave img {
  flex: none;
  width: 2019.1px;
  height: 1165px;
  max-width: none;
  transform: rotate(176.32deg);
}

/* ---- Intro: Kicker + H1 + Kerben-CTA, zentriert ---- */

.os4a-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 813px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.os4a-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  color: var(--white);
}

.os4a-hero__kicker {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.os4a-hero__title {
  font-family: var(--font-sans);
  font-size: 50px;
  font-weight: 700;
  line-height: 62px;
  letter-spacing: 0;
}

/* CTA: weisser Button mit diagonaler Kerbe unten rechts (Figma-Shapes als Maske) */

.os4a-hero__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 4px 20px 4px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--navy);
  white-space: nowrap;
}

.os4a-hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  -webkit-mask-image: url("/assets/solutions/onesec4all/hero/btn-body.svg"),
    url("/assets/solutions/onesec4all/hero/btn-end.svg");
  -webkit-mask-position: left center, right center;
  -webkit-mask-size: calc(100% - 40px) 100%, 67px 100%;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image: url("/assets/solutions/onesec4all/hero/btn-body.svg"),
    url("/assets/solutions/onesec4all/hero/btn-end.svg");
  mask-position: left center, right center;
  mask-size: calc(100% - 40px) 100%, 67px 100%;
  mask-repeat: no-repeat, no-repeat;
  transition: background-color var(--dur) var(--ease);
}

.os4a-hero__cta:hover::before {
  background: var(--navy-30);
}

.os4a-hero__cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

.os4a-hero__cta:active {
  transform: translateY(1px);
}

.os4a-hero__cta-icon {
  transition: transform var(--dur) var(--ease);
}

.os4a-hero__cta:hover .os4a-hero__cta-icon {
  transform: translateX(3px);
}

/* ---- Security-Visual: fixe Design-Buehne 674x465, skaliert auf Mobile ---- */

.os4a-hero__stage {
  position: relative;
  height: 465px;
  margin-top: 14px;
}

.os4a-hero__canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 674px;
  height: 465px;
  margin-left: -337.6px;
  transform-origin: top center;
}

.os4a-hero__canvas img {
  display: block;
}

/* -- iPhone mit Security-Checks (gebakt, 2x) -- */

.os4a-hero__iphone {
  position: absolute;
  top: 48px;
  left: 148.6px;
  width: 363px;
  height: 399px;
}

/* -- Lock-Badge mit Glow -- */

.os4a-hero__lock {
  position: absolute;
  top: 93.8px;
  left: 129.8px;
  width: 100.5px;
  height: 100.5px;
}

/* -- Code-Karte (React-Snippet, "Secured by KOBIL") -- */

.os4a-hero__code {
  position: absolute;
  top: 178.9px;
  left: 15.4px;
  width: 258px;
  height: 226px;
}

.os4a-hero__code-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.os4a-hero__code-src {
  position: absolute;
  top: 34.1px;
  left: 37.6px;
  width: 169px;
  font-family: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.23px;
  font-weight: 400;
  line-height: 13px;
  color: var(--navy);
  white-space: pre-wrap;
}

.os4a-hero__kw {
  color: #0cbf76;
}

.os4a-hero__str {
  color: #23b8ff;
}

.os4a-hero__code-brand {
  position: absolute;
  top: 168px;
  left: 38.7px;
  font-family: var(--font-ui);
  font-size: 6.677px;
  font-weight: 400;
  line-height: normal;
  color: var(--navy-80);
  white-space: nowrap;
}

/* -- Debugger-Toast -- */

.os4a-hero__toast {
  position: absolute;
  top: 351px;
  left: 135.6px;
  width: 150px;
  height: 55px;
}

.os4a-hero__toast-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.os4a-hero__toast-body {
  position: absolute;
  top: 15.4px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.os4a-hero__toast-icon {
  flex: none;
  width: 21.3px;
  height: 22px;
}

.os4a-hero__toast-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.os4a-hero__toast-title {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 500;
  line-height: normal;
  color: var(--navy);
  white-space: nowrap;
}

.os4a-hero__toast-sub {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 400;
  line-height: normal;
  color: var(--navy-70);
}

/* -- Fingerprint-Badge (gebakt, 2x) + Schild mit Haken -- */

.os4a-hero__print {
  position: absolute;
  top: 209.8px;
  left: 433.8px;
  width: 100.5px;
  height: 100.5px;
}

.os4a-hero__shield {
  position: absolute;
  top: 35.9px;
  left: 407.3px;
  width: 130.3px;
  height: 139.3px;
}

/* ---- Abschlusstext: H2 links, Copy rechts, unten buendig ---- */

.os4a-hero__foot {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  margin: 13px 80px 0;
}

.os4a-hero__headline {
  flex: none;
  width: 572px;
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: var(--navy);
}

.os4a-hero__headline-accent {
  display: block;
  color: var(--blue);
}

.os4a-hero__copy {
  flex: none;
  width: 568px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  color: var(--navy-80);
}

.os4a-hero__copy strong {
  font-weight: 600;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .sec-onesec4all-hero {
    padding: 96px 0 96px;
  }

  .os4a-hero__title {
    font-size: 44px;
    line-height: 54px;
  }

  .os4a-hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 40px 40px 0;
  }

  .os4a-hero__headline,
  .os4a-hero__copy {
    width: auto;
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .sec-onesec4all-hero {
    padding: 80px 0 72px;
  }

  .os4a-hero__intro {
    gap: 36px;
  }

  .os4a-hero__heading {
    gap: 16px;
  }

  .os4a-hero__kicker {
    font-size: 16px;
    line-height: 22px;
  }

  .os4a-hero__title {
    font-size: 36px;
    line-height: 46px;
  }

  .os4a-hero__stage {
    height: 335px;
    margin-top: 8px;
  }

  .os4a-hero__canvas {
    transform: scale(0.72);
  }

  .os4a-hero__foot {
    gap: 20px;
    margin: 32px 24px 0;
  }

  .os4a-hero__headline {
    font-size: 32px;
    line-height: 42px;
  }
}

@media (max-width: 620px) {
  .os4a-hero__stage {
    height: 280px;
  }

  .os4a-hero__canvas {
    transform: scale(0.6);
  }
}

@media (max-width: 480px) {
  .sec-onesec4all-hero {
    padding: 64px 0 56px;
  }

  .os4a-hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .os4a-hero__title br {
    display: none;
  }

  .os4a-hero__stage {
    height: 233px;
    margin-top: 4px;
  }

  .os4a-hero__canvas {
    transform: scale(0.5);
  }

  .os4a-hero__foot {
    margin: 28px 20px 0;
  }

  .os4a-hero__headline {
    font-size: 28px;
    line-height: 36px;
  }
}
