@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0c10;
  --bg2: #0f1219;
  --bg3: #161b26;
  --border: rgba(255,255,255,0.07);
  --accent: #4af0c4;
  --accent2: #7c6af5;
  --accent3: #f06a4a;
  --text: #e8eaf0;
  --text-muted: #7a8299;
  --text-dim: #4a5068;
  --card-bg: rgba(22,27,38,0.7);
  --radius: 12px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 900;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(74,240,196,0.07);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── SECTION ────────────────────────────────────────────────── */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  color: var(--text);
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: rgba(74,240,196,0.2);
  transform: translateY(-2px);
}

/* ── TAGS ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(74,240,196,0.08);
  border: 1px solid rgba(74,240,196,0.2);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 3px;
}

.tag.purple {
  background: rgba(124,106,245,0.08);
  border-color: rgba(124,106,245,0.2);
  color: var(--accent2);
}

.tag.orange {
  background: rgba(240,106,74,0.08);
  border-color: rgba(240,106,74,0.2);
  color: var(--accent3);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(74,240,196,0.3);
}

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

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

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  max-width: 1100px;
  margin: 0 auto;
}

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

/* ── DIVIDER LINE ───────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 60px 0;
}

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

@keyframes glow {
  0%,100% { text-shadow: 0 0 20px rgba(74,240,196,0.2); }
  50%      { text-shadow: 0 0 40px rgba(74,240,196,0.5); }
}

.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-d1 { animation: fadeUp 0.7s 0.1s ease forwards; opacity:0; }
.fade-up-d2 { animation: fadeUp 0.7s 0.2s ease forwards; opacity:0; }
.fade-up-d3 { animation: fadeUp 0.7s 0.3s ease forwards; opacity:0; }
.fade-up-d4 { animation: fadeUp 0.7s 0.4s ease forwards; opacity:0; }
.fade-up-d5 { animation: fadeUp 0.7s 0.5s ease forwards; opacity:0; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .section { padding: 60px 20px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
