:root {
  --bg: #0c0c0e;
  --bg-soft: #141416;
  --fg: #e8e4dc;
  --fg-dim: #8a8579;
  --accent: #e8b04b;
  --accent-soft: rgba(232, 176, 75, 0.12);
  --line: rgba(232, 228, 220, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.nav-logo {
  color: var(--accent);
  font-weight: 600;
}

.nav-tag {
  color: var(--fg-dim);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 48px 80px;
  min-height: 72vh;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.headline {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.headline .accent {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.subhead {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 420px;
  margin-bottom: 40px;
}

/* CTA */
.cta-row {
  display: flex;
  gap: 16px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--fg);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Code card */
.code-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.code-dot.red { background: #e8635b; }
.code-dot.yellow { background: #e8b04b; }
.code-dot.green { background: #5bbd72; }

.code-filename {
  margin-left: auto;
  font-size: 13px;
  color: var(--fg-dim);
}

.code-body {
  padding: 24px 26px;
  overflow-x: auto;
}

.kw { color: #c792ea; }
.fn { color: #82aaff; }
.str { color: var(--accent); }

/* Strip */
.strip {
  border-top: 1px solid var(--line);
  padding: 64px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strip-item {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.strip-item:nth-child(2) { animation-delay: 0.1s; }
.strip-item:nth-child(3) { animation-delay: 0.2s; }

.strip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.strip-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg-dim);
}

.strip-text em {
  color: var(--fg);
  font-style: italic;
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 32px 48px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-sep { opacity: 0.4; }

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav { padding: 20px 24px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 24px 64px;
    gap: 48px;
  }

  .strip { padding: 48px 24px; }
  .strip-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 24px; flex-direction: column; gap: 6px; }
}
