:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --accent: #1493e6;
  --accent-bg: rgba(20, 147, 230, 0.12);
  --shadow: rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
  --sans: system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
  font: 16px/1.5 var(--sans);
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #d7dbe3;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --accent-bg: rgba(20, 147, 230, 0.18);
    --shadow: rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

h1,
h2 {
  font-weight: 650;
  color: var(--text-h);
  letter-spacing: -0.02em;
}

.topnav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
}

.brand-logo {
  display: flex;
  color: var(--text-h);
  text-decoration: none;
}

.brand-logo svg {
  width: 210px;
  height: auto;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.nav-btn:hover {
  background: var(--accent-bg);
}

.nav-btn.active {
  background: var(--accent);
  color: #fff;
}

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  flex: 1;
}

.hero {
  position: relative;
  min-height: 360px;
  margin: 12px 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(20, 147, 230, 0.55), transparent 55%),
    linear-gradient(160deg, #1c2430 0%, #111318 55%, #0c1a28 100%);
  display: flex;
  align-items: flex-end;
}

.hero-caption {
  padding: 48px 40px 40px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  width: 100%;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd4f8;
}

.hero-caption h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.hero-caption p {
  margin: 0;
  max-width: 36rem;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

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

.rail-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.rail-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rail-card p {
  margin: 0;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.lead {
  margin: 0 0 8px;
  max-width: 42rem;
}

.terms-card {
  margin: 16px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.terms-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.terms-card p {
  margin: 0 0 12px;
}

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

.site-footer {
  margin-top: auto;
  background: #14161c;
  color: #d7dbe3;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.site-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 22px;
  border-radius: 16px;
  background: #2a2d36;
}

.site-footer-logo {
  width: min(240px, 46vw);
  height: auto;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111318;
  color: #fff;
}

.site-footer-social svg {
  width: 16px;
  height: 16px;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 36px 8px 12px;
}

.site-footer-cols h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-cols a {
  display: block;
  margin: 0 0 10px;
  color: #c5cad3;
  font-size: 14px;
  text-decoration: none;
}

.site-footer-cols a:hover {
  color: #fff;
}

.site-footer-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #2a2d36;
  color: #8d93a0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 800px) {
  .rails,
  .site-footer-cols {
    grid-template-columns: 1fr;
  }

  .hero-caption {
    padding: 36px 22px 28px;
  }

  .site-footer-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
}
