:root {
  color-scheme: dark;
  --bg: #0d0e0d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: #1b1a16;
  --text: #f7f7f4;
  --muted: #d2d2cc;
  --gold: #d4af37;
  --green: #4caf50;
  --green-dark: #236b2a;
  --border: rgba(212, 175, 55, 0.28);
  --danger: #ff6b6b;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #1a1a24, #121212, #242015, #0f0f0f);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 2000;
  padding: 10px 16px;
  color: #111;
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
}

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

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  padding: 12px 20px;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 750;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.site-nav .partner-link {
  padding: 7px 16px;
  color: #75d47b;
  background: rgba(46, 125, 50, 0.22);
  border: 1px solid var(--green);
  border-radius: 999px;
}

.site-nav .partner-link:hover {
  color: #fff;
  background: var(--green-dark);
}

main {
  min-height: calc(100vh - 160px);
}

.section,
.legal-page {
  width: min(calc(100% - 36px), var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 112px 0 58px;
}

.hero {
  padding-top: 138px;
  text-align: center;
}

.hero-logo {
  width: min(240px, 70vw);
  height: auto;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 22px 0 6px;
  font-size: clamp(2.7rem, 8vw, 4.3rem);
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 2.7rem);
  text-align: center;
}

h3 {
  margin-top: 30px;
  color: #fff;
  font-size: 1.35rem;
}

p,
li {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-lead {
  margin-top: 0;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 750;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 13px 24px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 750;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  color: #121212;
  background: var(--gold);
  transform: translateY(-2px);
}

.button-green {
  color: #78dc7d;
  background: rgba(46, 125, 50, 0.18);
  border-color: var(--green);
}

.button-green:hover {
  color: #fff;
  background: var(--green-dark);
}

.button-disabled {
  color: #b6b6b0;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.22);
  cursor: default;
}

.button-disabled:hover {
  color: #b6b6b0;
  background: rgba(255, 255, 255, 0.045);
  transform: none;
}

.glass-panel {
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.centered-copy {
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.card {
  padding: 28px;
  text-align: center;
}

.card h3 {
  margin-top: 0;
  color: var(--gold);
}

.legal-page {
  padding: 118px 0 64px;
}

.legal-card h1 {
  margin-top: 0;
  color: var(--gold);
  font-size: clamp(2.2rem, 6vw, 3.25rem);
}

.legal-card h2 {
  margin-top: 38px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  text-align: left;
}

.legal-card strong,
.highlight {
  color: var(--gold);
}

.legal-card li + li {
  margin-top: 10px;
}

.notice {
  margin: 26px 0;
  padding: 18px 20px;
  color: #eaf8eb;
  background: rgba(46, 125, 50, 0.22);
  border: 1px solid rgba(76, 175, 80, 0.7);
  border-radius: 12px;
}

.warning {
  margin: 26px 0;
  padding: 18px 20px;
  color: #fff1d4;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 12px;
}

.danger-note {
  color: #ffdede;
  border-color: rgba(255, 107, 107, 0.7);
  background: rgba(150, 30, 30, 0.18);
}

.steps {
  padding-left: 24px;
}

.steps li {
  padding-left: 6px;
}

.contact-email {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.footer {
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #aaa;
  text-align: center;
}

.footer p {
  margin: 5px 0;
  color: #aaa;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.footer a {
  color: #ddd;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 136px;
  }

  .site-nav {
    gap: 10px 18px;
    min-height: 112px;
    padding: 12px 14px;
  }

  .site-nav a {
    font-size: 0.92rem;
  }

  .section,
  .legal-page {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .section {
    padding-top: 148px;
  }

  .hero {
    padding-top: 164px;
  }

  .legal-page {
    padding-top: 150px;
  }

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

  .button-row,
  .button {
    width: 100%;
  }
}

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

  body {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
