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

:root {
  --bg-primary:   #0a0f1e;
  --bg-surface:   #0f1528;
  --bg-card:      #111827;
  --bg-code:      #070b14;
  --accent:       #10b981;
  --accent-light: #34d399;
  --accent-dim:   rgba(16, 185, 129, 0.12);
  --green:        #10b981;
  --border:       #1e2640;
  --border-focus: #10b981;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:   #475569;
  --radius:       8px;
  --radius-lg:    14px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ──────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--accent-light); }

.nav-back {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-back:hover { color: var(--text-primary); text-decoration: none; }

/* ── Main ─────────────────────────────────────────── */
main { flex: 1; padding: 3rem 0 5rem; }

section + section { margin-top: 3rem; }

/* ── Hero 2-col ───────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Left visual panel ───────────────────────────── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visual-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Right text panel ────────────────────────────── */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  width: fit-content;
}

.hero h1,
.hero-text h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Value prop ──────────────────────────────────── */
.value-prop {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.value-prop-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', 'Fira Code', monospace;
}

.value-prop p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ── Capabilities ────────────────────────────────── */
.section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.tools-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.tool-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tool-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tool-icon {
  color: var(--green);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-family: monospace;
}

/* ── Code block ──────────────────────────────────── */
.code-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
}

.code-dots { display: flex; gap: 0.4rem; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-lang {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: monospace;
}

.code-block {
  background: var(--bg-code);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #c4c4d4;
  tab-size: 2;
}

.code-block .c-comment { color: #3d4a68; }
.code-block .c-key     { color: #81a1f0; }
.code-block .c-str     { color: #a8ff78; }
.code-block .c-num     { color: #22d3a0; }
.code-block .c-punct   { color: #475569; }

/* ── Waitlist ─────────────────────────────────────── */
.waitlist-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.waitlist-section h2 { margin-bottom: 0.5rem; }

.waitlist-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.waitlist-form { display: flex; gap: 0.6rem; }

.waitlist-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s;
  min-width: 0;
}

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

.waitlist-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.waitlist-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.waitlist-btn:hover { background: var(--accent-light); }
.waitlist-btn:active { transform: scale(0.98); }

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

/* ── Waitlist modal ──────────────────────────────── */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  animation: modalFadeIn 0.3s ease;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.modal-box p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.modal-email {
  font-weight: 600;
  color: var(--accent-light);
}

.modal-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.modal-close {
  margin-top: 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-close:hover { background: var(--accent-light); }

/* ── Responsive (shared) ─────────────────────────── */
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  main { padding: 2rem 0 3rem; }
  .tools-list { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
