@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --p:      #3E96F4;
  --p2:     #7DBEFF;
  --pdim:   rgba(62,150,244,.12);
  --pglow:  rgba(62,150,244,.25);
  --dark:   #080810;
  --mid:    #0F0F1A;
  --card:   rgba(255,255,255,.04);
  --glass:  rgba(8,8,24,.55);
  --border: rgba(62,150,244,.22);
  --text:   #F0F0F8;
  --muted:  #8888AA;
  --sans:   'Space Grotesk', sans-serif;
  --mono:   'JetBrains Mono', monospace;
  --radius: 14px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--p); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--p); border-radius: 2px; }

/* ── AI Banner ────────────────────────────────── */
.ai-banner {
  position: relative; z-index: 200;
  background: linear-gradient(90deg, rgba(62,150,244,.15) 0%, rgba(62,150,244,.08) 50%, rgba(62,150,244,.15) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 7px 2rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ai-banner i { color: var(--p); font-size: 14px; }
.ai-banner span { color: var(--p2); font-weight: 700; }

/* ── Particles Canvas ─────────────────────────── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .55;
}

/* ── Scanline overlay ─────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,.03) 3px, rgba(0,0,0,.03) 4px
  );
  pointer-events: none;
}

/* ── NAV ──────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(8,8,16,.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 17px; font-weight: 700; color: var(--p);
  display: flex; align-items: center; gap: 6px;
  letter-spacing: .5px;
}
.nav-logo .bracket { color: rgba(62,150,244,.4); font-weight: 400; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted);
  position: relative; padding-bottom: 3px;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--p);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-icons { display: flex; gap: 8px; align-items: center; }
.nav-icons a {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--muted); font-size: 17px;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.nav-icons a:hover { border-color: var(--p); color: var(--p); background: var(--pdim); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-size: 20px; cursor: pointer;
  width: 36px; height: 36px; align-items: center; justify-content: center;
}
.mobile-menu {
  display: none; flex-direction: column;
  position: sticky; top: 62px; z-index: 99;
  background: rgba(8,8,16,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.mobile-menu a {
  padding: 15px 2rem; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.04);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--p); }
.mobile-menu.open { display: flex; }

/* ── PAGE HERO (subpages) ─────────────────────── */
.page-hero {
  position: relative; z-index: 2;
  padding: 5rem 2rem 3.5rem;
  text-align: center; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 0%, rgba(62,150,244,.16) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 700; letter-spacing: -2px; line-height: 1.05;
  margin-bottom: .75rem;
}
.page-hero h1 span { color: var(--p); }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 480px; margin: 0 auto; }

/* ── SECTION HELPERS ──────────────────────────── */
.wrap { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; padding: 5rem 2rem; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--p); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: '//'; color: rgba(62,150,244,.4); }
.section-title {
  font-size: clamp(26px, 5vw, 40px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 1.25rem;
}
.section-title span { color: var(--p); }
.section-sub { color: var(--muted); font-size: 16px; max-width: 540px; line-height: 1.7; }

/* ── BUTTONS ──────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--p); color: #fff;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: #1A78D6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,150,244,.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); color: var(--text);
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid var(--border); font-weight: 600; font-size: 15px;
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, transform .15s;
}
.btn-outline:hover { border-color: var(--p); background: var(--pdim); transform: translateY(-2px); }

/* ── GLASS CARD ───────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.glass-card:hover {
  border-color: rgba(62,150,244,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(62,150,244,.1);
}

/* ── SCROLL REVEAL ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── PLACEHOLDER HINT ────────────────────────── */
.ph {
  background: rgba(62,150,244,.07);
  border: 1px dashed rgba(62,150,244,.35);
  border-radius: 8px; padding: .65rem 1rem;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 8px;
}
.ph i { color: var(--p); flex-shrink: 0; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: .5px;
}
footer a { color: var(--muted); transition: color .2s; }
footer a:hover { color: var(--p); }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-sep { color: var(--border); }

/* ── MOBILE ───────────────────────────────────── */
@media(max-width: 768px) {
  .nav-links, .nav-icons { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 3.5rem 1.25rem 2rem; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
