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

/* ── Variables ─────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-raised: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #f5f5f5;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  --sky: #0ea5e9;
  --emerald: #10b981;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: transparent;
  transition: background 0.3s;
}

.nav-logo {
  font-family: 'Goldman', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sky);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 5;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 0.75rem;
  min-height: 1.4em;
}

.cursor {
  display: inline-block;
  color: var(--sky);
}

.hero-title {
  font-family: 'Goldman', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  /* Gradient text — isolated from backdrop-filter via will-change */
  background: linear-gradient(135deg, var(--sky), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  will-change: transform;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* ── Resources ─────────────────────────────────────── */
.resources-page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.resources-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
}

.resource-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  font-family: 'JetBrains Mono', monospace;
}

.resource-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.resource-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  z-index: 5;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-content {
    bottom: 5.5rem;
    left: 1.5rem;
    right: 1.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .footer {
    padding: 0.75rem 1.5rem;
    font-size: 0.65rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .resources-page {
    padding: 6rem 1.5rem 3rem;
  }
}
