:root {
  color-scheme: dark;
  --bg-ink: #09111f;
  --bg-deep: #111f38;
  --surface-warm: rgba(240, 138, 93, 0.3);
  --surface-cool: rgba(89, 150, 255, 0.28);
  --surface-gold: rgba(255, 209, 102, 0.12);
  --panel: rgba(7, 12, 24, 0.56);
  --panel-border: rgba(255, 255, 255, 0.15);
  --text-strong: #f8f4ec;
  --text-soft: rgba(248, 244, 236, 0.72);
  --accent: #ffd166;
  --accent-strong: #ff9f5a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --grid-line: rgba(255, 255, 255, 0.05);
  --frame-line: rgba(255, 255, 255, 0.08);
  --native-fill: rgba(5, 10, 20, 0.55);
  --native-top: rgba(255, 255, 255, 0.06);
  --native-bottom: rgba(255, 255, 255, 0.03);
  --native-dash: rgba(255, 255, 255, 0.12);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-border: rgba(255, 255, 255, 0.12);
  --toggle-thumb: linear-gradient(135deg,  #4b87e0, #475c94);
  --radius-xl: 36px;
  --footer-color: rgba(9, 17, 31, 0.42);
}

[data-theme="day"] {
  color-scheme: light;
  --bg-ink: #f7e8d4;
  --bg-deep: #eef4fb;
  --surface-warm: rgba(233, 131, 82, 0.28);
  --surface-cool: rgba(91, 128, 203, 0.2);
  --surface-gold: rgba(255, 205, 95, 0.18);
  --panel: rgba(255, 252, 248, 0.68);
  --panel-border: rgba(132, 93, 61, 0.16);
  --text-strong: #1f1a17;
  --text-soft: rgba(57, 47, 41, 0.74);
  --accent: #9d4f2a;
  --accent-strong: #d98a52;
  --shadow: 0 28px 80px rgba(121, 83, 48, 0.16);
  --grid-line: rgba(30, 24, 18, 0.05);
  --frame-line: rgba(77, 54, 35, 0.08);
  --native-fill: rgba(255, 248, 240, 0.84);
  --native-top: rgba(255, 255, 255, 0.75);
  --native-bottom: rgba(244, 229, 213, 0.48);
  --native-dash: rgba(109, 79, 48, 0.18);
  --toggle-bg: rgba(20, 17, 15, 0.06);
  --toggle-border: rgba(109, 79, 48, 0.12);
  --toggle-thumb: linear-gradient(135deg,  #4b87e0, #475c94);
  --footer-color: rgba(9, 17, 31, 0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 15% 20%, var(--surface-warm), transparent 22%),
    radial-gradient(circle at 78% 18%, var(--surface-cool), transparent 25%),
    radial-gradient(circle at 50% 80%, var(--surface-gold), transparent 30%),
    linear-gradient(145deg, var(--bg-ink), var(--bg-deep));
  overflow-x: hidden;
  transition:
    background 220ms ease,
    color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--grid-line) 100%),
    linear-gradient(transparent 0, transparent calc(100% - 1px), var(--grid-line) 100%);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 92%);
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.legal-page {
  width: min(900px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.legal-page__card {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.legal-page__card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.legal-page__card p,
.legal-page__card a {
  color: var(--text-soft);
  line-height: 1.65;
}

.legal-page__card a {
  color: var(--accent);
}

.legal-footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--footer-color);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.legal-footer a,
.legal-footer__button {
  border: none;
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.36rem 0.55rem;
  text-decoration: none;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.legal-footer a:hover,
.legal-footer a:focus-visible,
.legal-footer__button:hover,
.legal-footer__button:focus-visible {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.06);
}

.legal-footer__button {
  cursor: pointer;
}

.cookie-consent {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 5;
  width: min(420px, calc(100vw - 2rem));
}

.cookie-consent__panel {
  border-radius: 28px;
  padding: 1.2rem;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, var(--native-top), var(--native-bottom)),
    var(--native-fill);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.cookie-consent__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cookie-consent__panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.cookie-consent__panel p {
  color: var(--text-soft);
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-consent__primary,
.cookie-consent__secondary {
  border-radius: 999px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--toggle-border);
  cursor: pointer;
}

.cookie-consent__primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #17130f;
  border: none;
  font-weight: 700;
}

.cookie-consent__secondary {
  background: var(--toggle-bg);
  color: var(--text-soft);
}

.side-banner-ad,
.corner-video-ad {
  position: fixed;
  z-index: 3;
}

.side-banner-ad {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.side-banner-ad__inner {
  width: 180px;
  min-height: 620px;
  padding: 1rem;
  border-radius: 28px;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, var(--native-top), var(--native-bottom)),
    var(--native-fill);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.side-banner-ad__label,
.corner-video-ad__meta span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-banner-ad__inner strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.side-banner-ad__inner p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.corner-video-ad {
  right: 1.5rem;
  bottom: 1.5rem;
}

.corner-video-ad__frame {
  width: min(320px, calc(100vw - 2rem));
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, var(--native-top), var(--native-bottom)),
    var(--native-fill);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.corner-video-ad__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 22%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.03));
  color: var(--text-strong);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.corner-video-ad__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
}

.corner-video-ad__close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--text-soft);
  cursor: pointer;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid var(--frame-line);
  pointer-events: none;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--accent);
}

.theme-toggle {
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  border-radius: 999px;
  padding: 0.22rem;
  cursor: pointer;
  color: var(--text-strong);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.theme-toggle-widget {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

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

.theme-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 62px;
  height: 30px;
  padding: 0 0.38rem;
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1;
}

[data-theme="day"] .theme-toggle-icon-day,
:root:not([data-theme="day"]) .theme-toggle-icon-night {
  color: var(--text-strong);
}

.theme-toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--toggle-thumb);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease;
}

[data-theme="day"] .theme-toggle-thumb {
  transform: translateX(0);
}

:root:not([data-theme="day"]) .theme-toggle-thumb {
  transform: translateX(30px);
}

p {
  margin-top: 0;
}

.hero-title {
  display: grid;
  gap: 0.1em;
  margin: 0 auto 2rem;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-title span:nth-child(2) {
  font-size: 0.5em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title span:last-child {
  color: #fff1df;
}

[data-theme="day"] .hero-title span:last-child {
  color: #312014;
}

.hero-copy {
  max-width: 40rem;
  margin: 0 auto 1.4rem;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1rem;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.7;
}

.ambient-left {
  width: 260px;
  height: 260px;
  left: 8%;
  top: 18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-strong) 70%, transparent), transparent 68%);
  animation: drift 10s ease-in-out infinite;
}

.ambient-right {
  width: 380px;
  height: 380px;
  right: 5%;
  bottom: 14%;
  background: radial-gradient(circle, color-mix(in srgb, #6aa9ff 56%, transparent), transparent 70%);
  animation: drift 13s ease-in-out infinite reverse;
}

.status-message {
  margin: 1.4rem 0 0.75rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

.native-ad-shell {
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.native-ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.native-ad-kicker {
  color: var(--accent);
}

.native-ad-slot {
  min-height: 190px;
  padding: 1rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, var(--native-top), var(--native-bottom)),
    var(--native-fill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.native-ad-slot[data-ad-state="loaded"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 10, 20, 0.64);
}

.native-ad-placeholder {
  min-height: 156px;
  border-radius: 20px;
  border: 1px dashed var(--native-dash);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.native-ad-placeholder p {
  max-width: 34ch;
  margin-bottom: 0.45rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.seo-content,
.faq-strip {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.seo-disclosure {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1rem;
}

.seo-disclosure summary {
  width: fit-content;
  margin: 0 auto 1rem;
  list-style: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.seo-disclosure summary::-webkit-details-marker {
  display: none;
}

.seo-disclosure:not([open]) .seo-content,
.seo-disclosure:not([open]) .faq-strip {
  display: none;
}

.seo-content {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 1rem;
}

.faq-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 8rem;
}

.seo-card,
.faq-card {
  padding: 1.35rem;
  border-radius: 28px;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, var(--native-top), var(--native-bottom)),
    var(--native-fill);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.seo-card h2,
.faq-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.seo-card p,
.faq-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.primary-action,
.secondary-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.primary-action {
  border: none;
  cursor: pointer;
  min-width: min(100%, 360px);
  padding: 1.05rem 2.1rem;
  color: #1c1722;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 22px 40px rgba(255, 159, 90, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-3px) scale(1.01);
}

.secondary-action {
  margin-top: 0.4rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -18px, 0) scale(1.06);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 1rem 0;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 17vw, 4.4rem);
  }

  .primary-action {
    min-width: 100%;
  }

  .seo-content,
  .faq-strip {
    grid-template-columns: 1fr;
  }

  .faq-strip {
    padding-bottom: 9rem;
  }

  .seo-disclosure {
    padding-bottom: 1rem;
  }

  .native-ad-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .ambient-left {
    width: 180px;
    height: 180px;
    left: -2rem;
    top: 8%;
  }

  .ambient-right {
    width: 220px;
    height: 220px;
    right: -2rem;
    bottom: 6%;
  }

  .corner-video-ad {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .theme-toggle-widget {
    top: 0.75rem;
    right: 0.75rem;
  }

  .legal-footer {
    width: calc(100% - 1.5rem);
    margin: 0 auto 5.5rem;
  }

  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 5.4rem;
    width: auto;
  }
}

@media (min-width: 1500px) {
  .side-banner-ad {
    display: block;
  }
}
