:root {
  color-scheme: dark;
  --bg: #041126;
  --bg-deep: #020b19;
  --panel: rgba(12, 35, 73, 0.76);
  --panel-strong: #0d2a59;
  --line: rgba(102, 162, 255, 0.24);
  --text: #f7f9ff;
  --muted: #a9bce1;
  --blue: #4f8cff;
  --gold: #ffd459;
  --gold-strong: #ffb91f;
  --green: #52d9a1;
  --danger: #ff6f86;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 7%, rgba(42, 102, 224, 0.27), transparent 28rem),
    radial-gradient(circle at 0% 70%, rgba(20, 74, 172, 0.2), transparent 24rem),
    linear-gradient(150deg, var(--bg-deep), var(--bg) 55%, #061a38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 22rem;
  aspect-ratio: 1;
  border: 1px solid rgba(67, 126, 239, 0.17);
  border-radius: 42% 58% 63% 37%;
  transform: rotate(24deg);
}

body::before { top: -12rem; left: -10rem; }
body::after { right: -11rem; bottom: -14rem; }

a { color: #83b4ff; }
a:hover { color: #b4d2ff; }

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  color: #1c1600;
  border: 1px solid #ffe998;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff19c, var(--gold-strong));
  box-shadow: 0 0 28px rgba(255, 197, 47, 0.24);
  font-size: 27px;
  font-weight: 950;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(65, 126, 239, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 38px 0 28px;
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(20, 66, 140, 0.83), rgba(6, 25, 56, 0.92));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "∑";
  position: absolute;
  right: 7%;
  top: 50%;
  color: rgba(255, 216, 91, 0.1);
  font-size: clamp(10rem, 32vw, 20rem);
  font-weight: 900;
  line-height: 0;
  transform: translateY(-10%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.16; letter-spacing: -0.03em; }
h1 { position: relative; z-index: 1; max-width: 740px; margin: 0; font-size: clamp(2.1rem, 6vw, 4.4rem); }
h2 { margin: 38px 0 12px; font-size: clamp(1.45rem, 3.8vw, 2rem); }
h3 { margin: 0 0 8px; font-size: 1.1rem; }

.hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 18px 0 0;
  color: #c8d6f1;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
}

.hero-actions,
.button-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(119, 169, 255, 0.4);
  border-radius: 15px;
  color: var(--text);
  background: rgba(9, 31, 68, 0.72);
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  color: #211900;
  border-color: #ffe695;
  background: linear-gradient(135deg, #ffe98e, var(--gold));
  box-shadow: 0 12px 32px rgba(255, 197, 47, 0.19);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 44px;
}

.card,
.notice,
.legal-section {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 46, 94, 0.82), rgba(7, 24, 51, 0.82));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}

.card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  text-decoration: none;
}

.card:hover { border-color: rgba(255, 212, 89, 0.58); transform: translateY(-2px); }
.card { transition: transform .18s ease, border-color .18s ease; }
.card-icon { margin-bottom: auto; color: var(--gold); font-size: 34px; }
.card p { margin: 0; color: var(--muted); }
.card strong { display: block; margin: 18px 0 6px; color: var(--text); font-size: 1.3rem; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  align-items: start;
  margin: 28px 0 60px;
}

.legal {
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(5, 21, 46, 0.78);
  box-shadow: var(--shadow);
}

.legal > :first-child { margin-top: 0; }
.legal p, .legal li { color: #c3d0ea; }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li + li { margin-top: 8px; }

.toc {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 25, 53, 0.86);
}

.toc strong { display: block; margin-bottom: 9px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--text); }

.notice {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 18px;
  color: #dce7fb;
}

.notice.gold { border-color: rgba(255, 212, 89, 0.42); background: rgba(93, 70, 10, 0.2); }
.notice.green { border-color: rgba(82, 217, 161, 0.38); background: rgba(18, 97, 68, 0.18); }

.meta { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.contact { word-break: break-word; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 44px;
  border-top: 1px solid rgba(93, 144, 228, 0.18);
  color: #8298bf;
  font-size: 14px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: #9eb5db; text-decoration: none; }

@media (max-width: 780px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 1040px); }
  .topbar { padding-top: 16px; }
  .hero { margin-top: 18px; border-radius: 25px; }
  .hero-actions .button, .button-row .button { width: 100%; }
  .legal { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

:root{--bg:#090d0c;--panel:#151c19;--text:#f5f7f6;--muted:#9ca9a2;--accent:#22c55e;--gold:#22c55e;--blue:#4ade80}body{background:#090d0c;color:#f5f7f6}.brand-mark{background:transparent!important;box-shadow:none!important}.hero{background:#151c19!important}.button.primary{background:#22c55e!important;color:#07190d!important}
