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

:root {
  --void:    #05050f;
  --deep:    #09091a;
  --surface: #0e0e22;
  --violet:  #a060ff;
  --green:   #00ffaa;
  --magenta: #cc44ff;
  --text:    #e8e8f8;
  --dim:     rgba(232,232,248,0.45);
  --dimmer:  rgba(232,232,248,0.25);
  --font:    'Outfit', system-ui, sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(5,5,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(160,96,255,0.12);
  transition: background 0.2s;
}

.nav-logo {
  font-family: var(--font);
  font-size: 18px; font-weight: 300; letter-spacing: 5px;
  text-transform: uppercase; color: var(--text);
}
.nav-logo span { color: var(--green); font-weight: 700; }

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dim); transition: color 0.15s; font-weight: 400;
}
.nav-links a:hover { color: var(--text); }

.nav-links a.nav-github {
  padding: 7px 18px;
  border: 1px solid rgba(160,96,255,0.35);
  border-radius: 50px; color: var(--violet);
  transition: background 0.15s;
}
.nav-links a.nav-github:hover { background: rgba(160,96,255,0.1); }

/* ── SHARED SECTION UTILITIES ── */
section { position: relative; overflow: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,96,255,0.18), transparent);
  margin: 0 48px;
}

.section-label {
  display: flex;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--violet); font-weight: 500; margin-bottom: 16px;
}
.section-label.centered { justify-content: center; }

.section-h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 300;
  line-height: 1.2; margin-bottom: 20px; color: #fff;
}
.section-h2 strong { font-weight: 700; }
.section-h2 em { font-style: normal; color: var(--green); }
.section-h2.centered { text-align: center; }

.section-body { font-size: 16px; color: var(--dim); line-height: 1.8; font-weight: 300; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, #7a2fff, #9040ff);
  color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 50px; border: none; cursor: pointer;
  box-shadow: 0 0 30px rgba(120,0,255,0.3), 0 0 80px rgba(120,0,255,0.08);
  transition: box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.3px; font-family: var(--font);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(120,0,255,0.5);
  transform: translateY(-1px); color: #fff;
}

.btn-ghost {
  font-size: 14px; color: var(--dim); background: none; border: none;
  cursor: pointer; letter-spacing: 0.3px; font-family: var(--font);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover { color: var(--text); text-decoration-color: rgba(255,255,255,0.4); }

/* ── FOCUS (keyboard navigation) ── */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn-primary:focus-visible {
  outline-color: var(--green);
}

/* ── STATUS DOTS ── */
.dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.dot-green  { background: var(--green);  box-shadow: 0 0 6px var(--green);  animation: dotpulse 2s ease-in-out infinite; }
.dot-violet { background: var(--violet); box-shadow: 0 0 6px var(--violet); animation: dotpulse 2.5s ease-in-out infinite; }
.dot-dim    { background: rgba(255,255,255,0.2); }

@keyframes dotpulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── AMBIENT ORB (reusable) ── */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}

/* ── FOOTER ── */
footer.site-footer {
  padding: 48px;
  border-top: 1px solid rgba(160,96,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-size: 16px; font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase; color: var(--dimmer);
}
.footer-logo span { color: var(--green); font-weight: 700; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--dimmer); letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.15); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav.site-nav { padding: 14px 24px; }
  .container { padding: 0 24px; }
  .nav-links a:not(.nav-github) { display: none; }
  footer.site-footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .section-divider { margin: 0 24px; }
}
