/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-dark:    #0d1117;
  --bg-mid:     #161b22;
  --bg-light:   #f6f8fa;
  --accent:     #238636;
  --accent-h:   #2ea043;
  --cta:        #1f6feb;
  --cta-h:      #388bfd;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --border:     #30363d;
  --radius:     8px;
  --max-w:      1100px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--cta-h); text-decoration: none; }
a:hover { text-decoration: underline; }
section { padding: 80px 24px; }
.container { max-width: var(--max-w); margin: 0 auto; }

/* ── Sticky nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -.3px; }
nav .logo span { color: var(--accent-h); }
nav .nav-cta {
  display: inline-block;
  background: var(--cta); color: #fff; font-size: .875rem; font-weight: 600;
  padding: 7px 18px; border-radius: var(--radius); transition: background .2s;
}
nav .nav-cta:hover { background: var(--cta-h); text-decoration: none; }

/* ── Hero ── */
#hero {
  background: linear-gradient(135deg, #0d1117 0%, #0f2027 50%, #0d1117 100%);
  padding: 100px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(31,111,235,.12) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 70%, rgba(35,134,54,.10) 0%, transparent 60%);
  pointer-events: none;
}
#hero .container { position: relative; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  background: rgba(35,134,54,.15); border: 1px solid rgba(35,134,54,.4);
  color: var(--accent-h); font-size: .8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .5px; text-transform: uppercase;
}
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.2; color: #fff; max-width: 800px; margin: 0 auto 20px;
}
#hero h1 em { color: var(--accent-h); font-style: normal; }
#hero p.subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-muted);
  max-width: 640px; margin: 0 auto 36px;
}
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.btn-primary {
  display: inline-block;
  background: var(--cta); color: #fff; font-size: 1rem; font-weight: 700;
  padding: 14px 32px; border-radius: var(--radius); transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--cta-h); transform: translateY(-1px); text-decoration: none; }
.microcopy { font-size: .82rem; color: var(--text-muted); }

/* ── Value prop banner ── */
#value-prop {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
#value-prop p {
  font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 600;
  color: var(--text); max-width: 780px; margin: 0 auto;
}
#value-prop p span { color: var(--accent-h); }

/* ── Features ── */
#features { background: var(--bg-dark); }
.section-label {
  display: block; text-align: center; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700;
  margin-bottom: 52px; color: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 26px; transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--cta); transform: translateY(-3px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: .92rem; color: var(--text-muted); }
.features-cta { text-align: center; margin-top: 44px; }
.btn-secondary {
  display: inline-block;
  border: 1px solid var(--cta); color: var(--cta-h); font-size: .95rem; font-weight: 600;
  padding: 11px 28px; border-radius: var(--radius); transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--cta); color: #fff; text-decoration: none; }

/* ── Benefits ── */
#benefits { background: var(--bg-mid); border-top: 1px solid var(--border); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 0;
}
.benefit-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.benefit-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px;
  background: rgba(31,111,235,.15); border: 1px solid rgba(31,111,235,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.benefit-item h4 { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.benefit-item p { font-size: .88rem; color: var(--text-muted); }

/* ── Design partner / signup CTA ── */
#request-access {
  background: linear-gradient(135deg, #0f2027 0%, #0d1117 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  padding-top: 96px;
}
#request-access h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
#request-access p.sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.perks-list {
  list-style: none; display: inline-flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: center; margin-bottom: 36px;
}
.perks-list li { font-size: .92rem; color: var(--text); }
.perks-list li::before { content: "✓ "; color: var(--accent-h); font-weight: 700; }
.btn-accent {
  display: inline-block; white-space: nowrap; cursor: pointer;
  border: 0; font-family: inherit; line-height: 1.2;
  background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 700;
  padding: 15px 36px; border-radius: var(--radius); transition: background .2s, transform .15s;
}
.btn-accent:hover { background: var(--accent-h); transform: translateY(-1px); text-decoration: none; }

/* ── Beta signup form ── */
.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;
}
.signup-form { max-width: 520px; margin: 0 auto; }
.signup-fields { display: flex; flex-wrap: nowrap; gap: 12px; justify-content: center; }
.signup-input {
  flex: 1 1 auto; min-width: 0;
  background: var(--bg-dark); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 18px; font-size: 1rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.signup-input::placeholder { color: var(--text-muted); }
.signup-input:focus {
  outline: none; border-color: var(--accent-h);
  box-shadow: 0 0 0 3px rgba(35, 134, 54, .25);
}
.signup-hp { position: absolute; left: -5000px; }
.signup-error { color: #f85149; font-size: .9rem; margin-top: 10px; text-align: left; }
.signup-success { color: var(--accent-h); font-size: .9rem; margin-top: 10px; text-align: left; }

/* ── Footer ── */
footer {
  background: var(--bg-mid); border-top: 1px solid var(--border);
  padding: 32px 24px; text-align: center;
  font-size: .82rem; color: var(--text-muted);
}
footer .footer-links { margin-bottom: 10px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
footer .footer-links a { color: var(--text-muted); }
footer .footer-links a:hover { color: var(--text); }

/* ── Inline code ── */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: rgba(110,118,129,.2); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }

/* ── Utilities ── */
.mt-14 { margin-top: 14px; }
.mb-40 { margin-bottom: 40px; }

/* ── Hero secondary link ── */
.btn-link { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.btn-link:hover { color: var(--text); }

/* ── How it works ── */
#how-it-works { background: var(--bg-dark); border-top: 1px solid var(--border); }
.steps {
  list-style: none; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.steps li { position: relative; padding-left: 52px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(35,134,54,.15); border: 1px solid rgba(35,134,54,.4);
  color: var(--accent-h); font-weight: 700;
}
.steps h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.steps p { font-size: .92rem; color: var(--text-muted); }

/* ── Who it's for ── */
#audience { background: var(--bg-dark); border-top: 1px solid var(--border); }

/* ── Signup form (extended) ── */
.signup-form { max-width: 620px; text-align: left; }
.signup-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.signup-form label, .signup-form legend { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.signup-form .optional { font-weight: 400; color: var(--text-muted); }
.signup-select, .signup-textarea {
  width: 100%; background: var(--bg-dark); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 12px; font-size: .95rem; font-family: inherit;
}
.signup-textarea { min-height: 76px; resize: vertical; }
.signup-select:focus, .signup-textarea:focus { outline: none; border-color: var(--accent-h); box-shadow: 0 0 0 3px rgba(35,134,54,.25); }
.signup-form fieldset { border: 0; margin-top: 18px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.signup-form .choice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0;
  font-size: .9rem; font-weight: 400; color: var(--text-muted); cursor: pointer;
  background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; transition: border-color .15s, color .15s, background-color .15s;
}
.signup-form .choice:hover { border-color: var(--text-muted); }
.signup-form .choice:has(input:checked) { border-color: var(--accent-h); color: var(--text); background: rgba(35,134,54,.08); }

/* Custom select + checkbox, modelled on @tailwindcss/forms */
.signup-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right .6rem center; background-repeat: no-repeat; background-size: 1.4em 1.4em;
  transition: border-color .15s, box-shadow .15s;
}
.signup-select:hover { border-color: var(--text-muted); }
.signup-select option { background: var(--bg-mid); color: var(--text); }
.choice input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 1.05rem; height: 1.05rem; margin-top: .2rem;
  border: 1px solid var(--text-muted); border-radius: 4px;
  background-color: var(--bg-mid); background-position: center; background-repeat: no-repeat; background-size: 100% 100%;
  cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.choice input[type="checkbox"]:checked {
  border-color: transparent; background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
.choice input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent-h); }
.signup-actions { margin-top: 20px; }
.consent { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

/* ── Simple content pages (privacy, 404, thanks) ── */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff; margin-bottom: 8px; }
.page h2 { font-size: 1.15rem; color: #fff; margin: 32px 0 10px; }
.page p, .page li { color: var(--text-muted); margin-bottom: 10px; }
.page ul { padding-left: 20px; }
.page .updated { font-size: .85rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  section { padding: 60px 16px; }
  .btn-primary, .btn-accent { width: 100%; text-align: center; display: block; }
  .cta-group { flex-direction: column; }
  .signup-fields { flex-direction: column; }
}
  
