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

:root {
  --bg:         #0a0a0a;
  --blue:       #3b82f6;
  --blue-soft:  #60a5fa;
  --blue-dim:   rgba(59, 130, 246, 0.15);
  --white-high: rgba(255, 255, 255, 0.92);
  --white-mid:  rgba(255, 255, 255, 0.48);
  --white-low:  rgba(255, 255, 255, 0.06);
  --white-line: rgba(255, 255, 255, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--white-high);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 999;
}

/* ─── Ambient orbs ─────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.orb-1 {
  width: 700px;
  height: 700px;
  top: -320px;
  right: -180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.13) 0%, transparent 65%);
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.09) 0%, transparent 65%);
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* ─── Nav ──────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid var(--white-line);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--white-mid);
  text-transform: uppercase;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(59, 130, 246, 0.7); }
  50%       { opacity: 0.6; box-shadow: 0 0 14px rgba(59, 130, 246, 0.4); }
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--white-mid);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--white-line);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-github:hover {
  color: var(--white-high);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--white-low);
}

/* ─── Main layout ──────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px 44px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  gap: 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mid);
  padding: 6px 16px;
  border: 1px solid var(--white-line);
  border-radius: 100px;
  background: var(--white-low);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white-high);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

.accent {
  color: var(--blue-soft);
  position: relative;
  display: inline-block;
}

/* Subtle underline on "instantly" */
.accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
  opacity: 0.5;
}

.subheadline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--white-mid);
  max-width: 520px;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.32s;
}

/* ─── Code block ───────────────────────────────────────────── */
.code-block {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--white-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.44s;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.4);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--white-line);
  background: rgba(255, 255, 255, 0.02);
}

.code-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-mid);
}

.code-lines {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  transition: background 0.15s;
}

.code-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.prompt {
  font-family: 'Outfit', monospace;
  font-size: 0.82rem;
  color: rgba(59, 130, 246, 0.6);
  user-select: none;
  flex-shrink: 0;
}

.code-line code {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--white-mid);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s, background 0.15s;
}

.code-line:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  color: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.copy-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
  opacity: 1;
}

.code-block-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--white-line);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.code-inline {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
  font-size: 0.73rem;
  color: var(--blue-soft);
  background: rgba(59, 130, 246, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ─── Feature pills ────────────────────────────────────────── */
.pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white-mid);
  padding: 8px 18px;
  border: 1px solid var(--white-line);
  border-radius: 100px;
  background: var(--white-low);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pill:nth-child(1) { animation-delay: 0.58s; }
.pill:nth-child(2) { animation-delay: 0.68s; }
.pill:nth-child(3) { animation-delay: 0.78s; }

/* ─── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
