:root {
  --ink: #eaf4f8;
  --ink-dim: #a9c1cc;
  --accent: #35d6e8;
  --accent-warm: #f2c14e;
  --glass: rgba(9, 22, 30, 0.62);
  --glass-line: rgba(120, 200, 220, 0.18);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.65 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #061119;
  -webkit-font-smoothing: antialiased;
}

/* Background image, with a scrim that keeps the left side readable
   and leaves the character on the right of the art visible. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(6, 17, 25, 0.35) 0%, rgba(6, 17, 25, 0.8) 55%, #061119 100%),
    linear-gradient(100deg, rgba(6, 17, 25, 0.86) 0%, rgba(6, 17, 25, 0.5) 42%, rgba(6, 17, 25, 0.12) 70%),
    url("bg1.jpg") center 20% / cover no-repeat;
}

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(5, 14, 21, 0.92), rgba(5, 14, 21, 0.35));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #04212a;
  background: linear-gradient(140deg, var(--accent), #7ef0d0);
  box-shadow: 0 0 18px rgba(53, 214, 232, 0.35);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-name em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.18s ease;
}

.nav a:hover { color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 12px; }

.btn-primary {
  color: #04212a;
  background: linear-gradient(140deg, var(--accent), #6fe9cd);
  box-shadow: 0 10px 26px rgba(53, 214, 232, 0.28);
}

.btn-primary:hover { box-shadow: 0 14px 32px rgba(53, 214, 232, 0.42); }

.btn-ghost {
  color: var(--ink);
  border-color: rgba(160, 220, 235, 0.4);
  background: rgba(9, 26, 36, 0.5);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav .btn-sm {
  color: #04212a;
  background: linear-gradient(140deg, var(--accent), #6fe9cd);
}

.nav .btn-sm:hover { color: #04212a; }

/* ---------- hero ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.hero {
  max-width: 640px;
  padding: clamp(56px, 11vh, 120px) 0 clamp(48px, 9vh, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.hero h1 span { color: var(--accent); }

.lede {
  margin: 22px 0 34px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-dim);
  max-width: 54ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px 26px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--glass-line);
}

.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}

.stats span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- panels ---------- */

.panel { padding: clamp(44px, 8vh, 84px) 0; }

.panel h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.panel h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.section-lede {
  margin: 20px 0 0;
  max-width: 64ch;
  color: var(--ink-dim);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  padding: 24px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 214, 232, 0.5);
}

.card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card h3 { font-size: 19px; font-weight: 700; }

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-dim);
}

.badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-on {
  color: #062b1e;
  background: #59e0a8;
}

.badge-idle {
  color: #2f2205;
  background: var(--accent-warm);
}

.card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--glass-line);
}

.card dt {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.card dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 36px;
  margin-top: 34px;
}

.features h3 {
  font-size: 17px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.features p {
  margin: 12px 0 0;
  padding-left: 17px;
  font-size: 15px;
  color: var(--ink-dim);
}

/* ---------- join ---------- */

.join {
  margin: clamp(24px, 5vh, 48px) 0;
  padding: clamp(36px, 6vh, 60px) clamp(24px, 5vw, 56px);
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
}

.join h2::after { margin: 16px auto 0; }

.join .section-lede { margin: 20px auto 30px; }

.join .cta-row { justify-content: center; }

.fineprint {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
}

.fineprint code {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(53, 214, 232, 0.1);
  border: 1px solid rgba(53, 214, 232, 0.24);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 56px) 40px;
  border-top: 1px solid var(--glass-line);
  font-size: 13px;
  color: var(--ink-dim);
}

.site-footer p { margin: 0; }

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer a:hover { color: var(--accent); }

/* ---------- focus + motion ---------- */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

@media (max-width: 640px) {
  .backdrop {
    background:
      linear-gradient(to bottom, rgba(6, 17, 25, 0.6) 0%, rgba(6, 17, 25, 0.88) 55%, #061119 100%),
      url("bg1.jpg") 30% 20% / cover no-repeat;
  }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .card dl { grid-template-columns: repeat(2, 1fr); }
}
