:root {
  --bg-deep: #0b0e2a;
  --bg-mid: #141840;
  --bg-night: #090b20;
  --gold: #ffd700;
  --gold-deep: #e8700a;
  --blue: #25a6ef;
  --ink: #e8ecff;
  --ink-soft: #b8c5ef;
  --line: rgba(90, 128, 255, 0.3);
  --card: linear-gradient(
    160deg,
    rgba(16, 21, 60, 0.86),
    rgba(9, 12, 38, 0.86)
  );
  --shadow: 0 26px 54px rgba(3, 7, 25, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 14% 14%,
      rgba(37, 166, 239, 0.24),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 215, 0, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(232, 112, 10, 0.16),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      var(--bg-deep) 0%,
      var(--bg-mid) 52%,
      var(--bg-night) 100%
    );
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.5;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(72, 90, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 90, 170, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(
    circle at 50% 32%,
    rgba(0, 0, 0, 0.74),
    rgba(0, 0, 0, 0)
  );
}

.site-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 1.6rem;
  position: relative;
  z-index: 1;
}

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
}

.hero::before {
  top: 0.9rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.6),
    transparent
  );
}

.hero::after {
  bottom: 0.9rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 166, 239, 0.5),
    transparent
  );
}

.hero-logo-wrap {
  margin-top: 0.1rem;
  display: flex;
  justify-content: center;
}

.hero-logo {
  display: block;
  width: min(100%, 820px);
  height: auto;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.52));
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.15;
  background: linear-gradient(
    180deg,
    var(--gold) 0%,
    #ffbf28 45%,
    var(--gold-deep) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

h2 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: #ffe07b;
}

h3 {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  margin-bottom: 0.3rem;
  color: #fff3c4;
}

p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.lead {
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  color: #d7defa;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 1rem;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(180deg, #ffd700 0%, #ffbf28 55%, #e8700a 100%);
  color: #181210;
  box-shadow: 0 10px 18px rgba(232, 112, 10, 0.4);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.06);
}

a {
  color: #8bd9ff;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid #9edbff;
  outline-offset: 2px;
}

.hero-foot {
  margin-top: 1.05rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(90, 128, 255, 0.28);
  width: 100%;
  text-align: center;
}

.hero-foot p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.45;
  color: #b8c5ef;
  margin-left: auto;
  margin-right: auto;
}

.hero-foot p + p {
  margin-top: 0.45rem;
}

.legal-links {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #9ab2ef;
}

.legal-link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8bd9ff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-link-btn:hover,
.legal-link-btn:focus-visible {
  color: #c3ecff;
}

.copyright {
  color: #7f8dc6;
  font-size: 0.8rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 24, 0.75);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 860px);
  background: linear-gradient(
    160deg,
    rgba(16, 21, 60, 0.97),
    rgba(8, 11, 34, 0.97)
  );
  border: 1px solid rgba(95, 130, 255, 0.44);
  border-radius: 16px;
  box-shadow: 0 26px 58px rgba(2, 6, 24, 0.6);
  overflow: hidden;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(95, 130, 255, 0.28);
}

.modal-header h2 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.modal-close {
  appearance: none;
  border: 1px solid rgba(138, 219, 255, 0.35);
  background: rgba(37, 166, 239, 0.14);
  color: #d5f1ff;
  border-radius: 999px;
  padding: 0.32rem 0.78rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(37, 166, 239, 0.23);
}

.modal-content {
  padding: 0.9rem 1rem 1.1rem;
  max-height: calc(min(82vh, 860px) - 62px);
  overflow-y: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 600ms cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn {
    transition: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(960px, calc(100% - 0.8rem));
    padding-top: 0.75rem;
  }

  .hero {
    border-radius: 16px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .btn {
    width: 100%;
  }

  .modal {
    padding: 0.6rem;
  }

  .modal-panel {
    max-height: 88vh;
  }

  .modal-content {
    max-height: calc(88vh - 62px);
    padding: 0.85rem 0.85rem 1rem;
  }
}
