:root {
  color-scheme: dark;
  --bg: #10131a;
  --panel: #171b24;
  --panel-2: #202532;
  --text: #f6f7fb;
  --muted: #aab3c4;
  --soft: #d8deea;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --periwinkle: #93a4ff;
  --cyan: #47d1c7;
  --gold: #f5c84c;
  --rose: #ef6b78;
  --green: #5bd69f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(71, 209, 199, 0.12), transparent 28rem),
    linear-gradient(180deg, #10131a 0%, #121721 48%, #0f1219 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 19, 26, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #151a23;
}

.logo-shell img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-shell img.is-missing {
  display: none;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #10131a;
  background: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.logo-shell.logo-missing .logo-fallback {
  display: grid;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--soft);
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111722;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 23, 34, 0.98) 0%, rgba(17, 23, 34, 0.82) 54%, rgba(17, 23, 34, 0.56) 100%),
    url("assets/logo.png") right 8% center / min(42%, 520px) no-repeat;
  opacity: 0.92;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-strong);
}

.hero-inner,
.section-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 84px 0 104px;
}

.hero-art {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(38%, 480px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.96;
  filter: drop-shadow(0 26px 56px rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lead {
  max-width: 640px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.7;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #10131a;
  background: var(--gold);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.band {
  padding: 78px 0;
}

.band.alt {
  background: #151a23;
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head p,
.text-block p,
.legal-main p,
.legal-main li {
  color: var(--soft);
  line-height: 1.75;
}

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

.feature-card,
.policy-card,
.dash-panel,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card,
.policy-card,
.legal-card {
  padding: 22px;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #10131a;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.feature-card:nth-child(2n) .feature-kicker {
  background: var(--gold);
}

.feature-card:nth-child(3n) .feature-kicker {
  color: var(--text);
  background: var(--rose);
}

.dash-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 18px;
  align-items: start;
}

.dash-panel {
  overflow: hidden;
}

.dash-top {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.dot:nth-child(2) {
  background: var(--gold);
}

.dot:nth-child(3) {
  background: var(--green);
}

.dash-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dash-row {
  display: grid;
  grid-template-columns: 120px 1fr 68px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--periwinkle);
}

.dash-row:nth-child(2) .bar span {
  background: var(--cyan);
}

.dash-row:nth-child(3) .bar span {
  background: var(--gold);
}

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

.policy-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 800;
}

.cta-band {
  padding: 72px 0;
  background: #111722;
  border-top: 1px solid var(--line);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

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

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

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

.notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(420px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.legal-hero {
  padding: 64px 0 34px;
  background: #111722;
  border-bottom: 1px solid var(--line);
}

.legal-main {
  padding: 42px 0 80px;
}

.legal-card {
  max-width: 880px;
  margin: 0 auto;
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 24px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card ul {
  padding-left: 20px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--soft);
}

.meta-list div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

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

  .nav-links {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open] {
    display: flex;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(17, 23, 34, 0.96) 0%, rgba(17, 23, 34, 0.84) 100%),
      url("assets/logo.png") center bottom 40px / min(68%, 360px) no-repeat;
    opacity: 0.95;
  }

  .hero-copy {
    padding: 62px 0 160px;
  }

  .hero-art {
    right: 50%;
    top: auto;
    bottom: 22px;
    width: min(58%, 300px);
    transform: translateX(50%);
    opacity: 0.22;
  }

  .hero-stats,
  .feature-grid,
  .policy-grid,
  .dash-layout,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .dash-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 860px) and (min-width: 561px) {
  h1 {
    font-size: 58px;
  }
}

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