:root {
  color-scheme: dark;
  --bg: #050a0f;
  --bg2: #0b1520;
  --bg3: #0f1e2e;
  --surface: #0b1520;
  --surface-soft: #0f1e2e;
  --ink: #e8f0f8;
  --muted: #8a9bb0;
  --quiet: #4a5e72;
  --line: rgba(255, 255, 255, 0.07);
  --brand: #00c896;
  --brand-dark: #00c896;
  --accent: #0084ff;
  --accent-warm: #ff5c38;
  --warning: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --font-head: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 200, 150, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 150, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 10, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--brand);
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(230px, 52vw);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.nav-dropdown summary:hover {
  color: var(--brand);
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
}

.nav-dropdown-menu a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.hero,
.page-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 54px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 200, 150, 0.24);
  border-radius: 999px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  background: rgba(0, 200, 150, 0.08);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  font-family: var(--font-head);
  letter-spacing: -0.5px;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 300;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: #00140f;
  background: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.button:hover {
  opacity: 0.86;
  text-decoration: none;
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.button.secondary:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::before,
.card::before,
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.metric strong {
  display: block;
  color: var(--brand-dark);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: 24px;
}

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

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 200, 150, 0.36);
  background: var(--bg3);
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.content {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.content section + section {
  margin-top: 34px;
}

.content p,
.content li {
  color: var(--muted);
}

.content ul,
.content ol {
  padding-left: 22px;
}

.notice {
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 12px;
  color: var(--warning);
  background: rgba(255, 209, 102, 0.08);
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    height: 42px;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero,
  .page-hero,
  .section,
  .legal-layout,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

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

  .content {
    padding: 22px;
  }
}
