:root {
  --bg: #0b1020;
  --surface: #121a31;
  --surface-2: #1a2442;
  --text: #eef2ff;
  --muted: #9ba8d1;
  --primary: #4f7cff;
  --primary-2: #315ee9;
  --border: #2a3660;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #17264f, #0b1020 55%);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 16, 32, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.35rem;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active {
  font-weight: 600;
}

.hero {
  padding: 4rem 0 2rem;
}

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #bfd1ff;
  font-size: 0.85rem;
}

.btn {
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-2);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
}

.btn-small {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.hero-stats > div,
.metric,
.deal-card,
.card {
  background: rgba(18, 26, 49, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.hero-stats > div {
  padding: 0.8rem;
}

.hero-stats h3,
.metric h3 {
  margin: 0;
}

.hero-stats p,
.metric p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card {
  padding: 1.2rem;
}

.snapshot-sub {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

label {
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="range"] {
  width: 100%;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  gap: 0.8rem;
  align-items: flex-start;
}

.row span {
  max-width: 70%;
}

.muted {
  color: var(--muted);
}

.snapshot-footnote {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.section {
  padding: 3rem 0;
}

.alt {
  background: rgba(18, 26, 49, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards.three-col,
.steps,
.dashboard {
  display: grid;
  gap: 1rem;
}

.cards.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deal-card {
  padding: 1rem;
}

.deal-card ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  padding: 1rem;
}

.join {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.join-form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.join-form input {
  background: #0d1530;
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

details {
  background: rgba(18, 26, 49, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-col p {
  margin: 0 0 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.content-block {
  max-width: 720px;
}

.content-block h2 {
  margin-top: 2rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.list-check {
  padding-left: 1.2rem;
  color: var(--muted);
}

.list-check li {
  margin-bottom: 0.5rem;
}

.form-block {
  max-width: 480px;
  background: rgba(18, 26, 49, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.form-block label {
  margin-top: 0;
}

.form-block input,
.form-block textarea,
.form-block select {
  width: 100%;
  background: #0d1530;
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  margin-bottom: 0.9rem;
}

.form-block textarea {
  min-height: 120px;
  resize: vertical;
}

.form-block .field {
  margin-bottom: 0.5rem;
}

.form-success {
  padding: 1rem;
  background: rgba(79, 124, 255, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.inline-links {
  margin-top: 1rem;
}

.inline-links a {
  color: var(--primary);
  text-decoration: none;
}

.inline-links a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-link {
  color: #a8c4ff;
  text-decoration: underline;
}

.text-link:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards.three-col,
  .steps,
  .dashboard {
    grid-template-columns: 1fr;
  }
}
