:root {
  color-scheme: dark;
  --bg: #03050a;
  --bg-soft: #070b12;
  --panel: #0a101b;
  --panel-2: #0d1625;
  --text: #f7f9ff;
  --muted: #a8b2c3;
  --line: rgba(151, 177, 215, .16);
  --blue: #3985ff;
  --blue-bright: #5aa0ff;
  --cyan: #55d9ff;
  --max: 1500px;
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 103, 224, .17), transparent 32rem),
    radial-gradient(circle at 96% 18%, rgba(0, 156, 255, .12), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--blue-bright); text-underline-offset: .22em; }
a:hover { color: #fff; }

.site-header,
.page-shell,
.legal-layout,
.site-footer {
  width: min(var(--max), calc(100% - 4rem));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(76, 151, 255, .42);
  box-shadow: 0 0 30px rgba(42, 113, 255, .24);
}

.brand strong { font-size: 1rem; letter-spacing: .09em; }
.brand strong span { color: var(--blue-bright); }

nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.7vw, 1.8rem);
}

nav a {
  color: #d1d8e5;
  text-decoration: none;
  font-size: .86rem;
  white-space: nowrap;
  transition: color .18s ease;
}

nav a:hover,
nav a[aria-current="page"] { color: #fff; }

.button,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #286fef, #438cff);
  text-decoration: none;
  font-weight: 760;
  box-shadow: 0 15px 38px rgba(36, 111, 244, .22);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover,
.header-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #3f86ff, #5ba3ff);
  transform: translateY(-1px);
}

.header-cta { min-height: 42px; padding: .58rem 1rem; font-size: .84rem; white-space: nowrap; }

.button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(111, 161, 236, .34);
  box-shadow: none;
}

.button.secondary:hover { border-color: var(--blue-bright); background: rgba(57, 133, 255, .1); }

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 820;
}

.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--blue-bright); }

h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(4.2rem, 8.2vw, 8rem);
  line-height: .9;
  letter-spacing: -.07em;
}

h1 .accent {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--blue-bright);
  text-shadow: 0 0 36px rgba(57, 133, 255, .12);
}

.lead {
  max-width: 58ch;
  margin: 2rem 0 0;
  color: #cdd6e4;
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-art {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(36vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 118, 255, .28), rgba(22, 75, 178, .08) 48%, transparent 70%);
  filter: blur(8px);
  z-index: -2;
}

.hero-art::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(75, 157, 255, .52), transparent);
  box-shadow: 0 0 40px rgba(58, 131, 255, .6);
  transform: rotate(-14deg);
  z-index: -1;
}

.brand-orbit {
  position: relative;
  width: min(32vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 157, 255, .28);
  border-radius: 42% 58% 55% 45% / 48% 43% 57% 52%;
  background:
    linear-gradient(145deg, rgba(24, 66, 135, .32), rgba(4, 8, 15, .84)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(90, 163, 255, .035) 39px 40px);
  box-shadow: inset 0 0 80px rgba(46, 122, 255, .12), 0 40px 100px rgba(0, 0, 0, .52);
  transform: rotate(-7deg);
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(84, 156, 255, .28);
  border-radius: 50%;
}

.brand-orbit::before { inset: 12%; transform: rotate(28deg) scaleX(1.25); }
.brand-orbit::after { inset: -12%; transform: rotate(-20deg) scaleY(.65); }

.brand-orbit img {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: 0 0 70px rgba(44, 134, 255, .42);
  transform: rotate(7deg);
}

.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.section-heading { max-width: 760px; margin-bottom: 2.4rem; }
.section-heading h2 { margin: 0; color: #fff; font-size: clamp(2.25rem, 4.7vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.section-heading p { margin: 1rem 0 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

.card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 134, 255, .13), transparent 45%),
    linear-gradient(150deg, rgba(14, 24, 40, .96), rgba(6, 10, 17, .98));
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover { transform: translateY(-4px); border-color: rgba(82, 157, 255, .42); }
.card .number { color: var(--blue-bright); font-weight: 800; letter-spacing: .14em; font-size: .78rem; }
.card h3 { margin: auto 0 .8rem; color: #fff; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.1; }
.card p { margin: 0 0 1.4rem; color: var(--muted); }
.card-link { display: inline-flex; gap: .5rem; align-items: center; color: #fff; text-decoration: none; font-weight: 720; }
.card-link span { color: var(--blue-bright); font-size: 1.25rem; }

.institutional-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.institutional-section h2 { margin: 0; color: #fff; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }

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

.institutional div {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 16, 27, .76);
}

.institutional dt { color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.institutional dd { margin: .4rem 0 0; color: #fff; font-weight: 650; overflow-wrap: anywhere; }

.legal-layout { padding: clamp(3rem, 6vw, 6rem) 0; }

.legal-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(55, 134, 255, .24), transparent 30rem),
    linear-gradient(140deg, rgba(13, 23, 39, .98), rgba(5, 8, 14, .98));
  overflow: hidden;
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(77, 151, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(45, 125, 255, .14);
}

.legal-hero h1 { max-width: 15ch; font-size: clamp(3.1rem, 7vw, 6.4rem); }
.legal-hero .lead { max-width: 70ch; }
.updated { color: var(--muted); margin: 1.3rem 0 0; }

.legal-content {
  max-width: 980px;
  margin: clamp(2rem, 5vw, 4.5rem) auto 0;
  padding: clamp(1.3rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 13, 22, .82);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .3);
}

.legal-content h2 {
  margin: 2.7rem 0 .7rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content p, .legal-content li { color: #d7dfeb; }
.legal-content li + li { margin-top: .38rem; }
.legal-content code { color: var(--cyan); }

.notice {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 14px 14px 0;
  background: rgba(57, 133, 255, .09);
  color: #e8f1ff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .87rem;
}

.site-footer p { margin: 0; color: var(--muted); }
.site-footer strong { color: #fff; letter-spacing: .03em; }
.footer-links { display: grid; gap: .35rem; align-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto auto; gap: 1rem; padding: 1rem 0; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  nav::-webkit-scrollbar { display: none; }
  .header-cta { justify-self: end; }
  .hero { grid-template-columns: 1fr .8fr; min-height: 580px; }
  .hero-art { min-height: 420px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 240px; }
  .institutional-section { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header, .page-shell, .legal-layout, .site-footer { width: min(var(--max), calc(100% - 1.25rem)); }
  .site-header { min-height: 0; }
  .brand strong { font-size: .9rem; }
  .header-cta { min-height: 38px; padding: .52rem .65rem; font-size: .7rem; }
  nav { gap: 1.15rem; }
  nav a { font-size: .8rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0 3.5rem; }
  h1 { max-width: 8ch; font-size: clamp(3.8rem, 20vw, 5.2rem); }
  h1 .accent { -webkit-text-stroke-width: 1.5px; }
  .hero-art { min-height: 330px; }
  .brand-orbit { width: min(78vw, 340px); }
  .hero-art::before { width: min(90vw, 430px); }
  .section { padding: 3.5rem 0; }
  .cards { gap: .8rem; }
  .card { min-height: 250px; padding: 1.45rem; }
  .institutional { grid-template-columns: 1fr; }
  .legal-layout { padding: 1.2rem 0 3.5rem; }
  .legal-hero { padding: 2rem 1.25rem 2.5rem; border-radius: 20px; }
  .legal-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .legal-content { margin-top: 1rem; padding: 1.25rem; border-radius: 18px; }
  .legal-content h2 { margin-top: 2rem; padding-top: 1.5rem; }
  .site-footer { grid-template-columns: 1fr; padding: 2rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .header-cta, .card { transition: none; }
}
