/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050506;
  --surface: #111113;
  --border: #1e1e21;
  --text: #fafafa;
  --text-muted: #71717a;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.08);
  --accent-glow-strong: rgba(34, 197, 94, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.85; }

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

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent) !important;
  background: var(--accent-glow);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  transition: all 0.15s;
}

.nav-link-code:hover {
  background: var(--accent-glow-strong);
  border-color: rgba(34, 197, 94, 0.25);
  opacity: 1;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
}

.btn-sm:hover { background: var(--accent-dim); opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  opacity: 1;
}

.btn-icon {
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 0.7;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.15s;
}

.btn-outline:hover .btn-arrow {
  transform: translateX(2px);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 56px 24px 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.logo-mark {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 20px;
  margin-bottom: 32px;
}

.logo-mark img {
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.3));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fafafa 40%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

/* ── Feature Pills ────────────────────────────────────── */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  max-width: 600px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
}

.pill-icon {
  font-size: 0.875rem;
  line-height: 1;
}

/* ── Hero Actions ─────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Built-on footer ──────────────────────────────────── */
.built-on {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.built-on-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────── */
.hide-mobile { display: inline; }

@media (max-width: 640px) {
  .hide-mobile { display: none; }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }

  .features {
    gap: 8px;
    margin-bottom: 32px;
  }

  .feature-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 11px 24px;
    font-size: 0.875rem;
  }

  .logo-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
  }

  .logo-mark img {
    width: 48px;
    height: 48px;
  }

  .built-on {
    font-size: 0.6875rem;
    bottom: 20px;
  }

  .nav-inner {
    padding: 0 16px;
  }
}
