@font-face {
  font-family: "Mulish";
  src: url("assets/mulish-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --banner-width: 360px;
  --banner-height: 300px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: var(--banner-width);
  height: var(--banner-height);
  margin: 0;
  overflow: hidden;
  background: #3450c2;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
}

.banner {
  --content-pad: 14px;
  --layout-gap: 20px;
  --copy-gap: 12px;
  --logo-width: 110px;
  --claim-size: 24px;
  --claim-leading: 0.98;
  --subline-size: 15px;
  --subline-leading: 1.12;
  --subline-word-gap: 0.22em;
  --tall-logo-copy-gap: 42px;
  --cta-font-size: 14px;
  --cta-line-height: 17px;
  --cta-pad-y: 8px;
  --cta-pad-x: 15px;
  position: relative;
  width: var(--banner-width);
  height: var(--banner-height);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 0;
  color: #fff;
  background: #3450c2;
  isolation: isolate;
}

.creative {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
}

.click-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.feature-field,
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-field {
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #3c4fca 0%, #35bfc8 58%, #58bed2 100%);
}

.particle-canvas {
  display: block;
}

.content-layout {
  position: absolute;
  z-index: 7;
  inset: var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--layout-gap);
  text-align: center;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: var(--logo-width);
  height: auto;
  margin: 0;
  opacity: 0;
  transform: translateY(-10px);
  filter: drop-shadow(0 2px 5px rgba(13, 48, 83, 0.26));
}

.banner.is-ready .brand-logo {
  animation: brandReveal 650ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.copy-stack {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  flex-direction: column;
  gap: var(--copy-gap);
  visibility: hidden;
}

.banner.is-ready .copy-stack {
  visibility: visible;
}

.animated-copy {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
  text-rendering: geometricPrecision;
}

.claim {
  font-size: var(--claim-size);
  line-height: var(--claim-leading);
  letter-spacing: 0;
  text-shadow: 0 2px 5px rgba(20, 43, 55, 0.34);
}

.subline {
  font-size: var(--subline-size);
  line-height: var(--subline-leading);
  letter-spacing: 0;
  text-transform: uppercase;
}

.copy-line {
  display: flex;
  width: 100%;
  min-height: 1em;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
  white-space: nowrap;
}

.subline .copy-line {
  gap: var(--subline-word-gap);
}

.subline .copy-line + .copy-line {
  margin-top: 2px;
}

.word {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  transform-origin: center;
}

.subline .word {
  padding: 0.08em 0.18em 0.1em;
  border-radius: 2px;
  background: rgba(4, 46, 52, 0.58);
  box-shadow: 0 1px 3px rgba(14, 46, 63, 0.14);
}

.letter {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.claim .letter {
  opacity: 0;
  transform: translateY(1.15em) rotate(var(--letter-rotation));
}

.subline .word {
  opacity: 0;
  transform: scaleX(0.78);
}

.subline .letter {
  opacity: 0;
  transform: translateX(40px) translateZ(0) scaleX(0.3);
}

.banner.is-ready .claim .letter {
  animation: claimLetterReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--letter-delay) both;
}

.banner.is-ready .subline .word {
  animation: sublineWordReveal 720ms cubic-bezier(0.16, 1.24, 0.34, 1) var(--word-delay) both;
}

.banner.is-ready .subline .letter {
  animation: sublineLetterReveal 720ms cubic-bezier(0.16, 1, 0.3, 1) var(--letter-delay) both;
}

.cta {
  box-sizing: border-box;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.45em;
  flex: 0 0 auto;
  font-weight: 700;
  position: relative;
  text-align: center;
  transition: all 0.15s linear;
  border-radius: 3px;
  border-style: solid;
  border-width: 1px;
  padding: var(--cta-pad-y) var(--cta-pad-x);
  -webkit-appearance: none;
  appearance: none;
  background: #0095c1;
  border-color: #0095c1;
  color: #fff;
  font-size: var(--cta-font-size);
  line-height: var(--cta-line-height);
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  box-shadow: 0 5px 16px rgba(0, 62, 98, 0.28);
}

.banner.is-ready .cta {
  animation:
    ctaReveal 560ms cubic-bezier(0.22, 1, 0.36, 1) 3.85s both,
    ctaPulse 1.55s ease-in-out 4.55s 10;
}

.cta-arrow {
  display: block;
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
}

.cta-label {
  white-space: nowrap;
}

.cta-label-de,
.banner[data-language="de"] .cta-label-en {
  display: none;
}

.banner[data-language="de"] .cta-label-de {
  display: inline;
}

.banner[data-size^="336x280"] {
  --content-pad: 16px;
  --layout-gap: 20px;
  --copy-gap: 12px;
  --logo-width: 122px;
  --claim-size: 27px;
  --subline-size: 16.5px;
  --cta-font-size: 15px;
  --cta-line-height: 18px;
  --cta-pad-y: 8px;
  --cta-pad-x: 14px;
}

.banner[data-size^="360x300"] {
  --content-pad: 18px;
  --layout-gap: 20px;
  --copy-gap: 12px;
  --logo-width: 130px;
  --claim-size: 28.5px;
  --subline-size: 17.5px;
  --cta-font-size: 16px;
  --cta-line-height: 19px;
  --cta-pad-y: 9px;
  --cta-pad-x: 16px;
}

.banner[data-size^="300x600"] {
  --content-pad: 20px;
  --layout-gap: 20px;
  --copy-gap: 20px;
  --logo-width: 145px;
  --claim-size: 30px;
  --subline-size: 20px;
  --subline-leading: 1.14;
  --tall-logo-copy-gap: 42px;
  --cta-font-size: 18px;
  --cta-line-height: 22px;
  --cta-pad-y: 15px;
  --cta-pad-x: 28px;
}

.banner[data-size^="160x600"] {
  --content-pad: 12px;
  --layout-gap: 20px;
  --copy-gap: 20px;
  --logo-width: 116px;
  --claim-size: 17px;
  --subline-size: 14px;
  --subline-leading: 1.18;
  --tall-logo-copy-gap: 44px;
  --cta-font-size: 12px;
  --cta-line-height: 15px;
  --cta-pad-y: 9px;
  --cta-pad-x: 11px;
}

.banner[data-size^="120x600"] {
  --content-pad: 10px;
  --layout-gap: 20px;
  --copy-gap: 20px;
  --logo-width: 90px;
  --claim-size: 15.5px;
  --subline-size: 13px;
  --subline-leading: 1.2;
  --subline-word-gap: 0.16em;
  --tall-logo-copy-gap: 40px;
  --cta-font-size: 10px;
  --cta-line-height: 13px;
  --cta-pad-y: 8px;
  --cta-pad-x: 8px;
}

.banner[data-size^="300x600"] .content-layout,
.banner[data-size^="160x600"] .content-layout,
.banner[data-size^="120x600"] .content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 39px auto minmax(0, 1fr) auto 39px;
  gap: 0;
  align-items: center;
  justify-items: center;
  inset-block: 0;
}

.banner[data-size^="300x600"] .brand-logo,
.banner[data-size^="160x600"] .brand-logo,
.banner[data-size^="120x600"] .brand-logo {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.banner[data-size^="300x600"] .copy-stack,
.banner[data-size^="160x600"] .copy-stack,
.banner[data-size^="120x600"] .copy-stack {
  grid-column: 1;
  grid-row: 3;
  align-self: center;
}

.banner[data-size^="300x600"] .cta,
.banner[data-size^="160x600"] .cta,
.banner[data-size^="120x600"] .cta {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
}

.banner[data-size^="970x250"] {
  --content-pad: 18px;
  --layout-gap: 14px;
  --copy-gap: 10px;
  --logo-width: 140px;
  --claim-size: 36px;
  --subline-size: 22px;
  --cta-font-size: 18px;
  --cta-line-height: 22px;
  --cta-pad-y: 13px;
  --cta-pad-x: 26px;
}

.banner[data-size^="728x90"],
.banner[data-size^="320x100"],
.banner[data-size^="320x50"],
.banner[data-size^="300x50"] {
  --content-pad: 10px;
  --layout-gap: 12px;
  --copy-gap: 0;
  --logo-width: 100px;
  --claim-size: 24px;
  --subline-size: 12.5px;
  --cta-font-size: 15px;
  --cta-line-height: 18px;
  --cta-pad-y: 6px;
  --cta-pad-x: 15px;
}

.banner[data-size^="728x90"] {
  --subline-size: 20px;
  --subline-leading: 1.04;
  --subline-word-gap: 0.16em;
}

.banner[data-size^="728x90"] .content-layout,
.banner[data-size^="320x100"] .content-layout,
.banner[data-size^="320x50"] .content-layout,
.banner[data-size^="300x50"] .content-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: var(--layout-gap);
  row-gap: 0;
}

.banner[data-size^="728x90"] .brand-logo,
.banner[data-size^="320x100"] .brand-logo,
.banner[data-size^="320x50"] .brand-logo,
.banner[data-size^="300x50"] .brand-logo {
  grid-column: 1;
  grid-row: 1;
}

.banner[data-size^="728x90"] .copy-stack,
.banner[data-size^="320x100"] .copy-stack,
.banner[data-size^="320x50"] .copy-stack,
.banner[data-size^="300x50"] .copy-stack {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  align-self: stretch;
  place-items: center;
}

.banner[data-size^="728x90"] .cta,
.banner[data-size^="320x100"] .cta,
.banner[data-size^="320x50"] .cta,
.banner[data-size^="300x50"] .cta {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 2;
}

.banner[data-size^="728x90"] .animated-copy,
.banner[data-size^="320x100"] .animated-copy,
.banner[data-size^="320x50"] .animated-copy,
.banner[data-size^="300x50"] .animated-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 100%;
  opacity: 0;
  will-change: transform, opacity;
}

.banner[data-size^="320x100"] {
  --content-pad: 9px;
  --layout-gap: 10px;
  --copy-gap: 0;
  --logo-width: 58px;
  --claim-size: 17px;
  --subline-size: 10.5px;
  --subline-word-gap: 0.14em;
  --cta-font-size: 12px;
  --cta-line-height: 14px;
  --cta-pad-y: 5px;
  --cta-pad-x: 12px;
}

.banner[data-size^="320x50"],
.banner[data-size^="300x50"] {
  --content-pad: 10px;
  --layout-gap: 8px;
  --copy-gap: 0;
  --logo-width: 70px;
  --claim-size: 13px;
  --subline-size: 10px;
  --subline-leading: 1.08;
  --subline-word-gap: 0.1em;
  --cta-font-size: 11px;
  --cta-line-height: 13px;
  --cta-pad-y: 4px;
  --cta-pad-x: 11px;
}

.banner.is-ready[data-size^="728x90"] .claim,
.banner.is-ready[data-size^="320x100"] .claim,
.banner.is-ready[data-size^="320x50"] .claim,
.banner.is-ready[data-size^="300x50"] .claim {
  animation: shortCopyCurrent 2.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.banner.is-ready[data-size^="728x90"] .subline,
.banner.is-ready[data-size^="320x100"] .subline,
.banner.is-ready[data-size^="320x50"] .subline,
.banner.is-ready[data-size^="300x50"] .subline {
  animation: shortCopyNext 2.8s cubic-bezier(0.22, 1, 0.36, 1) 2.9s both;
}

.banner.is-ready[data-size^="728x90"] .cta,
.banner.is-ready[data-size^="320x100"] .cta,
.banner.is-ready[data-size^="320x50"] .cta,
.banner.is-ready[data-size^="300x50"] .cta {
  animation:
    shortCtaNext 640ms cubic-bezier(0.22, 1, 0.36, 1) 5.72s both,
    ctaPulse 1.55s ease-in-out 6.45s 10;
}

@keyframes brandReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes claimLetterReveal {
  0% { opacity: 0; transform: translateY(1.15em) rotate(var(--letter-rotation)); }
  62% { opacity: 1; transform: translateY(-0.08em) rotate(0deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes sublineWordReveal {
  0% { opacity: 0; transform: scaleX(0.78); }
  72% { opacity: 1; transform: scaleX(1.035); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes sublineLetterReveal {
  0% { opacity: 0; transform: translateX(40px) translateZ(0) scaleX(0.3); }
  74% { opacity: 1; transform: translateX(-0.8px) translateZ(0) scaleX(1.015); }
  100% { opacity: 1; transform: translateX(0) translateZ(0) scaleX(1); }
}

@keyframes ctaReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shortCopyCurrent {
  0%,
  70% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -120%, 0);
  }
}

@keyframes shortCopyNext {
  0% {
    opacity: 0;
    transform: translate3d(0, 120%, 0);
  }

  18%,
  70% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -120%, 0);
  }
}

@keyframes shortCtaNext {
  from {
    opacity: 0;
    transform: translate3d(0, 120%, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ctaPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 5px 16px rgba(0, 62, 98, 0.28); }
  50% { opacity: 1; transform: scale(1.055); box-shadow: 0 0 0 5px rgba(0, 149, 193, 0.2), 0 7px 20px rgba(0, 62, 98, 0.34); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .claim .letter,
  .subline .word,
  .subline .letter,
  .cta {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
