/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #0b0b12;
  --bg-card:   rgba(255,255,255,.04);
  --border:    rgba(255,255,255,.08);
  --teal:      #00d4aa;
  --orange:    #ff6b35;
  --text:      #e8e8f0;
  --muted:     #7a7a9a;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --radius:    12px;
  --transition: 200ms ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ─── Background grid pattern ───────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(11,11,18,.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: .75rem;
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: #0b0b12;
}
.btn-primary:hover { background: #00bfa0; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: rgba(0,212,170,.3);
  transform: translateY(-2px);
}

.card-tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.card p { color: var(--muted); font-size: .9rem; }

/* ─── Grid ───────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ─── Section ────────────────────────────────────────────── */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: .5rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: .95rem;
}

/* ─── Blog list ──────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 1rem; }

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.post-item:hover { border-color: rgba(0,212,170,.4); }

.post-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #0b0b12;
}

.post-item-body { flex: 1 1 auto; min-width: 0; }

.post-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.post-item p { color: var(--muted); font-size: .85rem; }

.post-date {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: .2rem;
}

/* ─── Blog post hero + video ─────────────────────────────── */
.post-hero {
  max-width: 960px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0b12;
}

.post-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
}

.post-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.post-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Prose (blog post body) ─────────────────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h1, .prose h2, .prose h3 {
  font-weight: 700;
  margin: 2rem 0 .75rem;
  letter-spacing: -.3px;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.4rem; color: var(--teal); }
.prose h3 { font-size: 1.1rem; }

.prose p { margin-bottom: 1.25rem; color: var(--muted); }
.prose a { color: var(--teal); }

.prose code {
  font-family: var(--mono);
  background: rgba(255,255,255,.06);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .85em;
}

.prose pre {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose pre code { background: none; padding: 0; }

.prose blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}

input:focus, textarea:focus { border-color: var(--teal); }

textarea { min-height: 120px; resize: vertical; }

/* ─── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .5px;
}

.badge-teal { background: rgba(0,212,170,.15); color: var(--teal); }
.badge-orange { background: rgba(255,107,53,.15); color: var(--orange); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--mono);
}

.footer a { color: var(--teal); text-decoration: none; }

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ─── Utilities ──────────────────────────────────────────── */
.text-teal   { color: var(--teal); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--muted); }
.mono        { font-family: var(--mono); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 1rem; }
  .nav-links { gap: 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .post-item { flex-direction: column; align-items: flex-start; }
  .post-thumb { width: 100%; height: 140px; }
  .post-hero img { aspect-ratio: 16 / 9; }
}
