*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #7ddfb0;
  --green-mid: #5cc992;
  --green-dim: #4aad7a;
  --green-dark: #1f5c3f;
  --green-subtle: #0f2e20;
  --green-glow: rgba(125, 223, 176, 0.1);
  --bg: #0c0c0c;
  --bg-feat: #050505;
  --bg-raised: #0a0a0a;
  --bg-hover: #0e0e0e;
  --border: #161616;
  --text: #c8c8c8;
  --text-mid: #9a9a9a;
  --text-dim: #7d7d7d;
  --white: rgba(255, 255, 255, 0.85);
  --item-title-size: 0.95rem;
  --item-desc-size: 0.88rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 3px;
}

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.8rem 0;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.logo span {
  color: var(--text-dim);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

/* ─── Layout ─── */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Shared section ─── */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-dim);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.25;
}

.section-header h2 span {
  color: var(--text-mid);
  font-weight: 400;
}

/* ─── Shared grid & cards ─── */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

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

.card {
  padding: 2rem;
  background: var(--bg-feat);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-size: var(--item-title-size);
  font-weight: 700;
  color: var(--white);
}

.card-desc {
  font-size: var(--item-desc-size);
  color: var(--text-mid);
  line-height: 1.8;
}

/* ─── Hero ─── */
.hero {
  padding: 10rem 0 6rem;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dim);
  border: 1px solid var(--green-dark);
  background: var(--green-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 .g {
  color: var(--green);
}

.hero h1 .b {
  color: var(--green-dark);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

/* ─── Waitlist ─── */
.waitlist-form {
  display: flex;
  max-width: 440px;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.waitlist-form:focus-within {
  border-color: var(--green-dim);
  box-shadow: 0 0 16px var(--green-glow);
}

.waitlist-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.94rem;
}

.waitlist-form input::placeholder {
  color: var(--text-dim);
}

.waitlist-form button {
  padding: 0.75rem 1.4rem;
  background: var(--green);
  color: var(--bg);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s;
}

.waitlist-form button:hover:not(:disabled) {
  background: var(--green-mid);
}

.waitlist-form button:disabled {
  cursor: not-allowed;
}

.waitlist-scarcity {
  font-size: 0.7rem;
  color: var(--green-dim);
  margin-top: 0.8rem;
  letter-spacing: 0.3px;
}

.waitlist-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  cursor: pointer;
  width: fit-content;
}

.waitlist-consent input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--text-dim);
  border-radius: 2px;
  background: var(--bg-raised);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.waitlist-consent input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}

.waitlist-consent input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 1.5px;
  font-size: 0.6rem;
  color: var(--bg);
  font-weight: 700;
}

/* ─── How it works ─── */
.how-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  flex-shrink: 0;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.step-title {
  font-size: var(--item-title-size);
  font-weight: 700;
  color: var(--white);
}

.step-desc {
  font-size: var(--item-desc-size);
  color: var(--text-mid);
  line-height: 1.7;
}

.how-code {
  padding: 1.5rem 1.6rem;
  background: var(--bg-feat);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 2.1;
  overflow-x: auto;
  position: sticky;
  top: 5rem;
}

.how-code .dim {
  color: var(--text-dim);
}

.how-code .gr {
  color: var(--green);
}

.how-code .wh {
  color: var(--white);
}

.how-code-label {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: block;
}

/* ─── CTA ─── */
.cta h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.cta h2 .g {
  color: var(--green);
}

.cta-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 420px;
}

/* ─── Footer ─── */
footer {
  padding: 2.5rem 0;
}

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

.footer-left {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-trademark {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.58rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .how-content {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }

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

  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .section {
    padding: 3rem 0;
  }

  .waitlist-form {
    max-width: 100%;
  }
}
