@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --bg-3: #121212;
  --bg-4: #1a1a1a;
  --line: rgba(245, 197, 24, 0.2);
  --line-strong: rgba(245, 197, 24, 0.45);
  --gold: #f5c518;
  --gold-2: #d4a512;
  --gold-soft: rgba(245, 197, 24, 0.12);
  --white: #f6f6f3;
  --muted: #9b9b93;
  --danger: #ff7a5c;
  --ok: #8fd16a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header-h: 76px;
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(245, 197, 24, 0.08), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(245, 197, 24, 0.05), transparent 50%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #000;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.brand-text .gold {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav a.btn-gold,
.nav a.btn-gold:hover,
.nav a.btn-gold[aria-current="page"] {
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, #ffe36a, #f5c518 48%, #c9a00e);
  color: #000;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(255, 232, 140, 0.35),
    0 8px 28px rgba(245, 197, 24, 0.38);
}

.btn-pulse {
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.btn-pulse:hover {
  animation: none;
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 0 0 4px rgba(245, 197, 24, 0.2),
    0 10px 32px rgba(245, 197, 24, 0.5);
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 232, 140, 0.35),
      0 8px 28px rgba(245, 197, 24, 0.38);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(245, 197, 24, 0.18),
      0 0 32px rgba(245, 197, 24, 0.55);
    transform: scale(1.04);
  }
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 28px;
  min-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050505;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform-origin: center center;
  filter: saturate(0.88) contrast(1.08) brightness(0.72);
  animation: hero-drift 34s ease-in-out infinite alternate;
}

.hero-media-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(245, 197, 24, 0.16) 50%, transparent 62%);
  background-size: 240% 100%;
  background-position: 140% 0;
  animation: hero-gleam 11s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.68) 38%, rgba(5, 5, 5, 0.38) 72%, rgba(5, 5, 5, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, transparent 36%, rgba(5, 5, 5, 0.78) 100%),
    radial-gradient(80% 70% at 78% 18%, rgba(245, 197, 24, 0.16), transparent 58%);
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@keyframes hero-gleam {
  0%,
  58% {
    background-position: 140% 0;
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  88%,
  100% {
    background-position: -30% 0;
    opacity: 0;
  }
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  text-transform: uppercase;
}

h1 .line-gold {
  color: var(--gold);
}

.lead {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.hero .lead {
  color: rgba(246, 246, 243, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.solar-aura {
  position: absolute;
  inset: 6%;
  pointer-events: none;
}

.solar-rays,
.solar-core {
  position: absolute;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  border-radius: 50%;
}

.solar-rays {
  width: min(118%, 520px);
  aspect-ratio: 1;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(245, 197, 24, 0) 0 11deg,
    rgba(255, 214, 80, 0.28) 12deg 15deg
  );
  mask-image: radial-gradient(circle, transparent 16%, #000 30%, #000 48%, transparent 70%);
  animation: solar-shine 7s ease-in-out infinite;
}

.solar-core {
  width: 46%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(255, 236, 160, 0.7) 0%, rgba(245, 197, 24, 0.35) 38%, transparent 72%);
  filter: blur(6px);
  animation: solar-warmth 4.5s ease-in-out infinite;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  height: auto;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

@keyframes solar-shine {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes solar-warmth {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-block: 36px 8px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(12px);
  padding: 22px 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section-stage {
  position: relative;
}

.section-stage::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(520px 220px at 12% 30%, rgba(245, 197, 24, 0.07), transparent 68%),
    radial-gradient(480px 200px at 88% 70%, rgba(245, 197, 24, 0.05), transparent 70%);
}

.section-stage > .wrap {
  position: relative;
  z-index: 1;
}

.section-marks,
.section-flow {
  padding-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 36rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 197, 24, 0.08), transparent 28%),
    var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  min-height: 100%;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.1), transparent);
  transform: translateX(-140%) skewX(-16deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0.45;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(245, 197, 24, 0.12);
}

.card:hover::before {
  transform: translateX(280%) skewX(-16deg);
}

.card-featured {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.08), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.card-index {
  position: absolute;
  right: 18px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  color: rgba(245, 197, 24, 0.14);
  line-height: 1;
  pointer-events: none;
}

.card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.06);
  box-shadow: inset 0 0 12px rgba(245, 197, 24, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover .icon {
  transform: translateY(-2px) rotate(-6deg);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.28);
}

.card.is-in .icon {
  animation: icon-ring 1.15s ease-out;
  animation-delay: calc(0.18s + var(--i, 0) * 90ms);
}

.card h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.card li::marker {
  color: var(--gold);
}

.card a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.card a:hover {
  text-decoration: underline;
}

.icon-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.icon-row::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.55), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.icon-row.is-in::before {
  transform: scaleX(1);
}

.icon-tile {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 8px 4px;
  background: transparent;
  border: 0;
}

.icon-stamp {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 35% 30%, rgba(245, 197, 24, 0.18), transparent 55%),
    var(--bg-3);
  box-shadow:
    0 0 0 8px var(--bg),
    0 0 24px rgba(245, 197, 24, 0.12);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.icon-tile svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.icon-tile span:last-child {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.icon-tile:hover .icon-stamp,
.icon-tile:focus-within .icon-stamp {
  transform: translateY(-6px) scale(1.06);
  border-color: var(--gold);
  box-shadow:
    0 0 0 8px var(--bg),
    0 10px 28px rgba(245, 197, 24, 0.28);
}

.icon-tile:hover span:last-child {
  color: var(--gold);
}

.icon-tile[data-mark="strom"] svg {
  animation: spark 1.8s ease-in-out infinite;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 28px;
  height: 1px;
  background: rgba(245, 197, 24, 0.28);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.steps.is-in::before {
  transform: scaleX(1);
}

.step {
  position: relative;
  padding: 0 8px 8px;
  background: transparent;
  border: 0;
}

.step em {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg);
  color: var(--gold);
  font-style: normal;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  box-shadow:
    0 0 0 8px var(--bg),
    0 0 22px rgba(245, 197, 24, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  text-transform: uppercase;
}

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

.step:hover em {
  transform: scale(1.08);
  box-shadow:
    0 0 0 8px var(--bg),
    0 0 28px rgba(245, 197, 24, 0.4);
}

@keyframes icon-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.45);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(245, 197, 24, 0);
  }
}

@keyframes spark {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.7));
  }
}

[data-reveal] {
  opacity: 1;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 95ms);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.reveal-ready .card.is-in:hover {
  transform: translateY(-8px);
}

.reveal-ready .card.is-in.card-featured {
  transform: translateY(-14px);
}

.reveal-ready .card.is-in.card-featured:hover {
  transform: translateY(-20px);
}

.hint-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 8px;
}

.hint-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: var(--bg-2);
}

.hint-item strong {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hint-item p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  margin: 20px 0 80px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(120deg, rgba(245, 197, 24, 0.14), transparent 42%),
    var(--bg-3);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cta-band:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(245, 197, 24, 0.12);
}

.reveal-ready .cta-band.is-in:hover {
  transform: translateY(-4px);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 18px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: block;
  width: fit-content;
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.footer-nav a {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.site-footer a:hover {
  color: var(--gold);
}

.page-hero {
  padding: 40px 0 80px;
}

main.page-hero .lead {
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.legal h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal address {
  font-style: normal;
  color: var(--white);
  line-height: 1.7;
}

.legal .fill {
  color: var(--gold);
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: #10100c;
}

td strong {
  color: var(--gold);
  font-size: 1.05rem;
}

tr:last-child td {
  border-bottom: 0;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.control {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  gap: 22px;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: 22px;
}

legend {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 8px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
}

.check a,
.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.error {
  color: var(--danger);
  font-size: 0.88rem;
}

.success {
  border: 1px solid rgba(143, 209, 106, 0.4);
  background: rgba(143, 209, 106, 0.08);
  border-radius: var(--radius);
  padding: 22px;
}

.success pre {
  white-space: pre-wrap;
  color: var(--muted);
  font-family: var(--font-body);
}

.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-wrap {
  max-width: 520px;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
}

.portal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}

.portal-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.portal-tab.is-active {
  border-color: var(--gold);
  color: #111;
  background: var(--gold);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  cursor: pointer;
  border: 0;
}

.filter.is-on {
  background: var(--gold);
  color: #111;
}

.ticket-list,
.doc-list {
  display: grid;
  gap: 10px;
}

.ticket-row.is-unread {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.ticket-row,
.doc-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--white);
  cursor: pointer;
}

.doc-card {
  cursor: default;
  grid-template-columns: 1fr auto;
}

.ticket-detail {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ticket-head h2 {
  text-transform: none;
  font-size: 1.3rem;
}

.ticket-meta {
  color: var(--muted);
}

.thread {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.bubble {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

.bubble.admin {
  border-color: var(--line-strong);
  background: rgba(245, 197, 24, 0.08);
}

.bubble.visitor {
  border-color: rgba(255, 255, 255, 0.12);
}

.bubble span {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.reply-form textarea {
  width: 100%;
  min-height: 90px;
  margin-bottom: 10px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}

.status-select {
  background: #0a0a0a;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 12px;
}

.status-offen { color: #ffd54a; }
.status-in_bearbeitung { color: #8fd16a; }
.status-warten { color: #9ad4ff; }
.status-abgeschlossen,
.status-geschlossen { color: var(--muted); }
.status-gesendet { color: #ffd54a; }
.status-angenommen, .status-bezahlt { color: #8fd16a; }
.status-abgelehnt { color: var(--danger); }

.upload-card {
  margin-bottom: 22px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  .hero-grid,
  .cards,
  .steps,
  .stats,
  .icon-row,
  .controls,
  .cta-band,
  .section-head,
  .fields {
    grid-template-columns: 1fr;
    display: grid;
  }

  .reveal-ready .card.is-in.card-featured,
  .reveal-ready .card.is-in.card-featured:hover,
  .reveal-ready .card.is-in:hover {
    transform: none;
  }

  .icon-row {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }

  .icon-row::before {
    display: none;
  }

  .steps::before {
    left: 28px;
    right: auto;
    top: 28px;
    bottom: 40px;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .steps.is-in::before {
    transform: scaleY(1);
  }

  .step {
    padding: 4px 0 28px 84px;
  }

  .step em {
    position: absolute;
    left: 0;
    top: 0;
  }

  .cta-band,
  .section-head {
    align-items: start;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

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

  .ticket-row,
  .doc-card {
    grid-template-columns: 1fr auto;
  }

  .ticket-row .note {
    grid-column: 1 / -1;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-logo {
    height: 56px;
    max-width: 80px;
  }
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.72);
}

.welcome-card {
  width: min(520px, 100%);
  max-height: min(88dvh, 640px);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 24px;
}

.welcome-card h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.welcome-card p {
  color: var(--muted);
  margin: 0 0 22px;
}

.welcome-card a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.welcome-open {
  overflow: hidden;
}

.ww-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ww-fab {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--gold);
}

.ww-robot {
  position: relative;
  width: 64px;
  height: 72px;
  color: var(--gold);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: ww-bob 2.6s ease-in-out infinite;
}

.ww-robot-svg {
  width: 64px;
  height: 72px;
  display: block;
}

.ww-robot-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: ww-blink 4.2s ease-in-out infinite;
}

.ww-robot-eye-right {
  animation-delay: 0.12s;
}

.ww-robot-ant {
  transform-box: view-box;
  transform-origin: 32px 18px;
  animation: ww-ant 2.2s ease-in-out infinite;
}

.ww-robot-tip {
  animation: ww-tip 1.4s ease-in-out infinite;
}

.ww-live {
  position: absolute;
  right: 2px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f97316;
  border: 2px solid #111;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35), 0 0 10px rgba(249, 115, 22, 0.7);
  animation: ww-live-pulse 1.6s ease-in-out infinite;
}

.ww-live.is-on {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 0 10px rgba(34, 197, 94, 0.7);
  animation: ww-live-pulse 1.6s ease-in-out infinite;
}

.ww-say {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #111;
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 12px 7px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  animation: ww-pop 2.6s ease-in-out infinite;
  white-space: nowrap;
}

.ww-say .ww-online-sign {
  margin-top: 0;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--white);
}

.ww-say .ww-online-sign.is-on {
  color: var(--white);
}

.ww-say .ww-online-dot {
  width: 9px;
  height: 9px;
}

.ww-widget.is-open .ww-say {
  display: none;
}

.ww-online-sign {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f97316;
}

.ww-online-sign.is-on {
  color: #22c55e;
}

.ww-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.ww-online-sign.is-on .ww-online-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.ww-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ww-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ww-panel {
  width: min(380px, calc(100vw - 28px));
  max-height: min(560px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ww-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.ww-head strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ww-head p,
.ww-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.ww-close {
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ww-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
}

.ww-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  cursor: pointer;
}

.ww-tab.is-on {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.ww-tab.is-off {
  opacity: 0.45;
  pointer-events: none;
}

.ww-offline {
  display: grid;
  gap: 10px;
}

.ww-offline strong {
  color: var(--gold);
}

.ww-body {
  padding: 12px 14px 14px;
  overflow: auto;
}

.ww-form,
.ww-composer {
  display: grid;
  gap: 10px;
}

.ww-form .field span {
  font-size: 0.78rem;
}

.ww-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.78rem;
}

.ww-check input {
  margin-top: 3px;
}

.ww-error {
  color: var(--danger);
  margin: 0;
  font-size: 0.86rem;
}

.ww-thread {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  margin-bottom: 10px;
}

.ww-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

.ww-bubble.admin {
  background: rgba(245, 197, 24, 0.1);
  border-color: var(--line-strong);
}

.ww-bubble span {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.ww-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.ww-composer textarea {
  width: 100%;
  min-height: 64px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
}

.ww-ok {
  display: grid;
  gap: 10px;
}

.ww-ok strong {
  color: var(--gold);
}

@keyframes ww-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ww-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(0.12); }
}

@keyframes ww-ant {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}

@keyframes ww-tip {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes ww-pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes ww-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

@media (max-width: 600px) {
  body:not([data-page="team"]) {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }

  .ww-widget {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .ww-fab {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }

  .ww-say {
    white-space: normal;
    max-width: min(220px, calc(100vw - 92px));
    border-radius: 16px 16px 4px 16px;
  }

  .ww-robot {
    width: 56px;
    height: 64px;
  }

  .ww-robot-svg {
    width: 56px;
    height: 64px;
  }

  .ww-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px));
  }

  .hero-actions,
  .form-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .form-actions .btn,
  .cta-band .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .hero-media-shine {
    animation: none;
    transform: none;
  }

  .btn:hover,
  .btn-pulse,
  .solar-rays,
  .solar-core,
  .ww-fab,
  .ww-robot,
  .ww-robot-eye,
  .ww-robot-ant,
  .ww-robot-tip,
  .ww-say,
  .ww-live,
  .icon-tile[data-mark="strom"] svg,
  .card.is-in .icon {
    animation: none;
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .card.is-in:hover,
  .card.is-in.card-featured,
  .card.is-in.card-featured:hover,
  .reveal-ready .card.is-in:hover,
  .reveal-ready .card.is-in.card-featured,
  .reveal-ready .card.is-in.card-featured:hover,
  .cta-band:hover,
  .reveal-ready .cta-band.is-in:hover,
  .icon-stamp,
  .icon-tile:hover .icon-stamp,
  .step em,
  .step:hover em {
    transform: none;
  }

  .icon-row::before,
  .steps::before {
    transform: none;
    transition: none;
  }
}
