/* ── Reset & root ─────────────────────────────────────────── */

:root {
  --bg-0: #0d1619;
  --bg-1: #182329;
  --ink: #dce8ec;
  --muted: #9cb0b8;
  --accent: #4fc4b3;
  --accent-2: #8be6d8;
  --line: rgba(173, 206, 215, 0.18);
  --nav-bg: linear-gradient(180deg, #0a2126, #0f2c33 70%, #133b43);
  --dot-color: #84f0df;
  --dot-halo: rgba(132, 240, 223, 0.18);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Dot canvas ───────────────────────────────────────────── */

#dot-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Background gradient ──────────────────────────────────── */

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 75% -5%, #1d3941 0%, transparent 65%),
    radial-gradient(600px 450px at -5% 85%, #21303d 0%, transparent 65%),
    linear-gradient(150deg, #0b1418, #121d23);
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 2;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Pulsing dot ──────────────────────────────────────────── */

.dot-pulse {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 0 0 var(--dot-halo);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(132, 240, 223, 0.4); }
  60%  { box-shadow: 0 0 0 10px rgba(132, 240, 223, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(132, 240, 223, 0);   }
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 64px 24px 80px;
}

.hero-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.eyebrow {
  margin-bottom: 24px;
}

.badge-pill {
  display: inline-block;
  background: rgba(79, 196, 179, 0.12);
  border: 1px solid rgba(79, 196, 179, 0.3);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
}

.br-desktop {
  display: none;
}

@media (min-width: 600px) {
  .br-desktop { display: block; }
}

/* ── Code preview ─────────────────────────────────────────── */

.code-preview {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(14, 25, 29, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
}

.code-comment {
  color: #4a6d74;
}

.code-line {
  color: var(--ink);
}

.code-kw {
  color: var(--accent-2);
}

.code-str {
  color: #c9e8e4;
}

.code-var {
  color: var(--accent);
  font-style: italic;
}

/* ── Signup form ──────────────────────────────────────────── */

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.input-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.input-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(18, 30, 35, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font: 500 0.95rem "Space Grotesk", sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease;
}

.input-row input[type="email"]::placeholder {
  color: #4a6d74;
}

.input-row input[type="email"]:focus {
  border-color: rgba(79, 196, 179, 0.5);
}

.input-row button {
  background: linear-gradient(120deg, #137b6e, #28a093);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  font: 600 0.95rem "Space Grotesk", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.input-row button:hover {
  opacity: 0.88;
}

.input-row button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-note {
  font-size: 0.82rem;
  color: #4a6d74;
}

.form-note.success {
  color: var(--accent);
}

.form-note.error {
  color: #ffb5b0;
}

/* ── Features ─────────────────────────────────────────────── */

.features {
  position: relative;
  z-index: 2;
  padding: 0 24px 80px;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(18, 30, 35, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: border-color 200ms ease;
}

.feature-card:hover {
  border-color: rgba(79, 196, 179, 0.3);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  color: #4a6d74;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dot-sm {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color);
  opacity: 0.5;
  flex-shrink: 0;
}

.llms-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #4a6d74;
  text-decoration: none;
}

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

/* ── Mobile adjustments ───────────────────────────────────── */

@media (max-width: 520px) {
  .site-header {
    padding: 20px 20px;
  }

  .hero {
    padding: 40px 20px 60px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }

  .code-preview {
    font-size: 0.78rem;
  }
}
