/* ============================================
   Zentrak Design Tokens — Indigo Pop
   ============================================ */

:root {
  --bg: #111118;
  --bg-raised: #16161e;
  --bg-deep: #0c0c12;
  --border: #222230;
  --border-hover: #32323e;
  --text: #dcdce4;
  --text-dim: #7e7e92;
  --text-faint: #55556a;

  --indigo: #6366f1;
  --indigo-bright: #a5b4fc;
  --indigo-soft: #818cf8;
  --indigo-dim: rgba(99, 102, 241, 0.07);
  --indigo-glow: rgba(99, 102, 241, 0.14);
  --indigo-border: rgba(99, 102, 241, 0.22);

  --green: #00e639;
  --green-bright: #22f055;
  --green-soft: #00d634;
  --green-dim: rgba(0, 230, 57, 0.07);
  --green-glow: rgba(0, 230, 57, 0.14);
  --green-border: rgba(0, 230, 57, 0.2);
}

.accent-green {
  --accent: var(--green);
  --accent-bright: var(--green-bright);
  --accent-soft: var(--green-soft);
  --accent-dim: var(--green-dim);
  --accent-glow: var(--green-glow);
  --accent-border: var(--green-border);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text);
}

/* ============================================
   Texture & Ambient
   ============================================ */

body::before {
  content: '';
  position: fixed; inset: 0;
  opacity: 0.02;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none; z-index: 1;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.glow-top {
  position: fixed; top: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ============================================
   Layout
   ============================================ */

.page {
  position: relative; z-index: 2;
  max-width: 960px; margin: 0 auto; padding: 0 48px;
}

/* ============================================
   Navigation
   ============================================ */

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
  opacity: 0; animation: fadeIn 0.6s ease forwards 0.1s;
}

.nav-brand-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.nav-brand-link:hover .nav-mark {
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.3)) drop-shadow(0 0 20px rgba(99,102,241,0.12));
}
.nav-brand-link:hover .nav-brand {
  text-shadow: 0 0 28px rgba(99,102,241,0.14);
}
.nav-mark { transition: filter 0.4s ease; }
.nav-brand {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: 0.06em; color: var(--text);
  transition: text-shadow 0.4s ease;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; color: var(--text-faint); text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav-links a:hover {
  color: var(--text-dim);
  text-shadow: 0 0 18px rgba(99,102,241,0.1);
}

.nav-back {
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-back:hover {
  color: var(--text);
  text-shadow: 0 0 18px rgba(99,102,241,0.1);
}

/* ============================================
   Section Utilities
   ============================================ */

.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 64px 0;
  opacity: 0; animation: fadeIn 0.6s ease forwards 0.7s;
}

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.6s ease forwards 0.75s;
}
.section-title {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--indigo-soft); opacity: 0.65;
}
.section-count { font-size: 12px; color: var(--text-faint); letter-spacing: 0.05em; }

/* ============================================
   Footer
   ============================================ */

footer {
  padding: 28px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; animation: fadeIn 0.5s ease forwards 1.1s;
}
.footer-left { font-size: 12px; color: var(--text-faint); letter-spacing: 0.03em; }
.footer-right { display: flex; gap: 24px; }
.footer-right a {
  font-size: 12px; color: var(--text-faint); text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-right a:hover {
  color: var(--text-dim);
  text-shadow: 0 0 14px rgba(99,102,241,0.1);
}

/* ============================================
   Tags / Pills
   ============================================ */

.tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.03em;
  padding: 4px 11px; border-radius: 100px;
  background: rgba(255,255,255,0.025); color: var(--text-dim);
  border: 1px solid var(--border);
}
.tag-accent {
  color: var(--accent-bright);
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,57,0.3); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0,230,57,0); }
}
@keyframes pulse-move {
  0%, 100% { left: 15%; }
  50% { left: 85%; }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 700px) {
  .page { padding: 0 24px; }
  .section-line { margin: 48px 0; }
  .nav-links { gap: 20px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
