:root {
  color-scheme: dark;
  --bg: #070b1a;
  --bg-elevated: rgba(18, 24, 53, 0.74);
  --surface-border: rgba(154, 167, 255, 0.25);
  --text: #f7f8ff;
  --text-muted: #c8cde6;
  --brand-gradient: linear-gradient(120deg, #3db1ff 0%, #5a6eff 26%, #8d4fff 48%, #cf53d8 68%, #f861a2 84%, #ff9966 100%);
  --focus: #7bb8ff;
  --max-width: 1100px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-glow: 0 20px 70px rgba(56, 73, 184, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 18%, #1a2260 0%, rgba(26, 34, 96, 0) 45%),
    radial-gradient(circle at 86% 14%, #2d1e73 0%, rgba(45, 30, 115, 0) 40%),
    radial-gradient(circle at 78% 84%, #5a1d63 0%, rgba(90, 29, 99, 0) 34%),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25% -10%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

body::before {
  background: conic-gradient(from 145deg at 30% 50%, #2ca2ff, #5f67ff, #a24dff, #ee5cc2, #ff8f72, #2ca2ff);
  filter: blur(92px);
  animation: drift 22s ease-in-out infinite alternate;
}

body::after {
  background: radial-gradient(circle at 70% 30%, rgba(87, 121, 255, 0.75), transparent 48%),
    radial-gradient(circle at 30% 70%, rgba(235, 92, 194, 0.48), transparent 50%);
  filter: blur(74px);
  animation: drift-alt 28s ease-in-out infinite alternate;
}

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

@keyframes drift-alt {
  0% {
    transform: translate3d(3%, -1%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .hero-card,
  .fade-up,
  .button-primary::after {
    animation: none;
    transition: none;
  }
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -9999px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #0f1738;
  color: #fff;
}

.skip-link:focus-visible {
  top: 0.75rem;
  z-index: 999;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(6, 10, 26, 0.86), rgba(6, 10, 26, 0.6));
  border-bottom: 1px solid rgba(172, 183, 255, 0.12);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.top-nav a:hover {
  color: var(--text);
}

main {
  flex: 1;
}

.hero-wrap {
  padding: clamp(3.25rem, 7vw, 6rem) 0 2.4rem;
}

.hero-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(22, 30, 64, 0.78), rgba(10, 15, 35, 0.55));
  box-shadow: var(--shadow-glow);
  padding: clamp(1.35rem, 3.6vw, 3rem);
  position: relative;
  overflow: hidden;
  animation: soft-in 620ms ease-out both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 98, 178, 0.35), rgba(239, 98, 178, 0));
}

.hero-content {
  max-width: 640px;
}

.hero-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dce4ff;
}

h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.7vw, 1.35rem);
  color: #eef2ff;
}

.hero-support {
  margin: 1.1rem 0 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(120deg, #3eaeff, #8658ff 45%, #d156db 72%, #ff8f6f);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(72, 173, 255, 0.42), rgba(147, 89, 255, 0.34));
  opacity: 0;
  z-index: -1;
  transition: opacity 180ms ease;
}

.button-primary:hover::after {
  opacity: 1;
}

.button-secondary {
  border-color: rgba(180, 193, 255, 0.38);
  color: #eff3ff;
  background: rgba(12, 18, 42, 0.44);
}

.button-secondary:hover {
  border-color: rgba(214, 223, 255, 0.72);
}

.subtle-panel {
  margin-top: 1.6rem;
  border: 1px solid rgba(179, 191, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(14, 20, 45, 0.54);
  padding: 1rem 1.1rem;
}

.subtle-panel p {
  margin: 0;
  color: #dee6ff;
  font-size: 0.97rem;
}

.page-wrap {
  padding: clamp(2.3rem, 5vw, 4rem) 0;
}

.doc-shell {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(22, 30, 64, 0.76), rgba(9, 14, 32, 0.64));
  padding: clamp(1.3rem, 3.5vw, 2.6rem);
  max-width: 840px;
  box-shadow: var(--shadow-glow);
}

.doc-shell h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.doc-shell p {
  color: var(--text-muted);
  max-width: 64ch;
}

.legal-content h2 {
  margin-top: 1.65rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.legal-content h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.legal-content p {
  margin: 0.55rem 0 0.8rem;
}

.legal-content ul {
  margin: 0.45rem 0 1rem;
  padding-left: 1.1rem;
}

.legal-content li {
  margin: 0.35rem 0;
  color: #e6ebff;
}

.legal-content a {
  color: #c4d8ff;
}

.legal-content a:hover {
  color: #ffffff;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1.2rem;
}

.help-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(179, 191, 255, 0.24);
  border-radius: 14px;
  background: rgba(14, 20, 45, 0.42);
  padding: 0.9rem;
}

.help-card h3 {
  margin: 0;
}

.help-card p {
  margin: 0.45rem 0 0;
}

.help-card:hover {
  border-color: rgba(214, 223, 255, 0.62);
}

.doc-list {
  margin: 1.1rem 0 0;
  padding-left: 1rem;
}

.doc-list li {
  margin: 0.3rem 0;
  color: #e6ebff;
}

.fade-up {
  animation: fade-up 650ms ease-out both;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  border-top: 1px solid rgba(172, 183, 255, 0.16);
  background: rgba(6, 10, 25, 0.64);
  backdrop-filter: blur(16px);
}

.footer-inner {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eef2ff;
    --bg-elevated: rgba(255, 255, 255, 0.88);
    --surface-border: rgba(79, 94, 173, 0.26);
    --text: #141934;
    --text-muted: #3a4674;
    --focus: #3155f8;
    --shadow-glow: 0 20px 60px rgba(91, 84, 180, 0.2);
  }

  body {
    background: radial-gradient(circle at 12% 18%, rgba(87, 112, 255, 0.2) 0%, rgba(87, 112, 255, 0) 45%),
      radial-gradient(circle at 86% 14%, rgba(204, 98, 255, 0.16) 0%, rgba(204, 98, 255, 0) 40%),
      radial-gradient(circle at 78% 84%, rgba(255, 120, 150, 0.16) 0%, rgba(255, 120, 150, 0) 34%),
      var(--bg);
  }

  .site-header {
    background: linear-gradient(180deg, rgba(245, 247, 255, 0.92), rgba(245, 247, 255, 0.72));
    border-bottom-color: rgba(108, 123, 207, 0.2);
  }

  .top-nav a {
    color: #40508b;
  }

  .hero-card,
  .doc-shell {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 255, 0.78));
  }

  .hero-tagline,
  .subtle-panel p {
    color: #1f2a58;
  }

  .site-footer {
    background: rgba(247, 249, 255, 0.8);
    border-top-color: rgba(108, 123, 207, 0.24);
  }

  .footer-links a:hover {
    color: #17245b;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .top-nav {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .top-nav a {
    font-size: 0.9rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

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

@media (max-width: 640px) {
  .hero-wrap {
    padding-top: 2.2rem;
  }

  .hero-card {
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .legal-content h2 {
    margin-top: 1.35rem;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .brand-logo {
    width: 1.9rem;
    height: 1.9rem;
  }
}
