@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --night-indigo: #1e1a4d;
  --royal-indigo: #2d2867;
  --deep-blue: #061534;
  --surface-blue: #0e2550;
  --surface-blue-muted: #15305f;
  --surface-blue-elevated: #1a3a72;
  --sun-yellow: #f0de5b;
  --electric-cyan: #70bedd;
  --paper-light: #f3f2fa;
  --ink-dark: #1c1848;
  --ink-muted: #5e5a88;
  --border-soft: #d8d7eb;
  --text: #f5f8ff;
  --text-soft: #bcd0f5;
  --line: #2c4f88;
  --radius: 18px;
  --shadow: 0 14px 32px rgba(6, 21, 52, 0.35);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(112, 190, 221, 0.19), transparent 35%),
    radial-gradient(circle at 87% 18%, rgba(240, 222, 91, 0.14), transparent 32%),
    linear-gradient(145deg, var(--deep-blue) 0%, var(--night-indigo) 52%, var(--royal-indigo) 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: var(--sun-yellow);
  top: -100px;
  left: -80px;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: var(--electric-cyan);
  right: -120px;
  bottom: 10%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  backdrop-filter: blur(10px);
  background: rgba(6, 21, 52, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Sora", "Avenir Next", "Helvetica Neue", sans-serif;
  color: #d9e6ff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: #d9e6ff;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(112, 190, 221, 0.18);
}

.site-nav a.active {
  color: var(--sun-yellow);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(26, 58, 114, 0.6);
  color: #ffffff;
  font-family: inherit;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

main {
  width: min(1100px, 92vw);
  margin: 1.2rem auto 4rem;
}

.hero {
  background: linear-gradient(135deg, rgba(14, 37, 80, 0.94), rgba(26, 58, 114, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-compact {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sun-yellow);
  font-size: 0.75rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Sora", "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.9rem, 4.8vw, 3.2rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
  max-width: 65ch;
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  padding: 0.62rem 0.95rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  background: var(--sun-yellow);
  color: var(--ink-dark);
  border-color: var(--sun-yellow);
}

.btn-primary:hover {
  background: #e0ce4f;
  border-color: #e0ce4f;
}

.btn-ghost {
  color: #d9e6ff;
  border-color: var(--line);
  background: rgba(14, 37, 80, 0.55);
}

.btn-ghost:hover {
  border-color: var(--electric-cyan);
}

.panel {
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--ink-dark);
  background: var(--paper-light);
  box-shadow: 0 10px 28px rgba(6, 21, 52, 0.2);
}

.legal-page .panel h2 {
  margin-bottom: 0.4rem;
}

.panel h2,
.panel h3 {
  color: var(--ink-dark);
}

.panel p,
.panel li,
.panel .link-card-body {
  color: var(--ink-muted);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #ffffff;
  padding: 0.9rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.link-card {
  text-decoration: none;
  color: var(--ink-dark);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #ffffff;
  padding: 0.9rem;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  border-color: var(--electric-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(112, 190, 221, 0.2);
}

.link-card-title {
  display: block;
  font-family: "Sora", "Avenir Next", "Helvetica Neue", sans-serif;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.link-card-body {
  color: var(--ink-muted);
}

ul {
  padding-left: 1.1rem;
}

a {
  color: #1e3f87;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1rem clamp(1rem, 3vw, 3rem) 2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.muted {
  opacity: 0.85;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.2rem);
    right: 0.8rem;
    left: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14, 37, 80, 0.97);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .link-card {
    transition: none;
  }
}
