:root{
  --bg:#07090f;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --text:#e9eefc;
  --muted: rgba(233,238,252,.65);
  --line: rgba(255,255,255,.10);
  --accent1:#7c3aed;
  --accent2:#22d3ee;
  --accent3:#a3ff12;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Ensure sticky works through the whole page */
html, body { overflow-x: hidden; overflow-y: visible; }
body { position: relative; }
.nav { position: sticky; }

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background: radial-gradient(900px 500px at 70% 10%, rgba(124,58,237,.25), transparent 55%),
              radial-gradient(900px 500px at 30% 30%, rgba(34,211,238,.18), transparent 55%),
              radial-gradient(900px 500px at 50% 85%, rgba(163,255,18,.10), transparent 55%),
              var(--bg);
  overflow-x:hidden;
}

/* subtle grid */
body:before{
  content:"";
  position:fixed; inset:0;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity:.10;
  pointer-events:none;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,1) 0, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 85%);
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }

/* anchor offset for sticky nav */
section { scroll-margin-top: 90px; }

/* NAV */
/* NAV: always transparent + always sticks */
.nav{
  position: sticky;
  top: 0;
  z-index: 9999;

  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;

  /* optional: tiny fade on hover states still works */
  transition: none;
}
/* When user scrolls, add subtle glass effect */
.nav.scrolled{
  background: rgba(7,9,15,.35);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
/* Center the nav contents */
.nav .row{
  display:flex;
  align-items:center;
  justify-content:center;  /* <-- centers the links container */
  padding:14px 0;
  gap:18px;
}

/* Center links as a group */
.links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;  /* <-- keeps wrapped rows centered too */
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.2px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  box-shadow: 0 0 18px rgba(34,211,238,.35);
}
.links{ display:flex; gap:14px; flex-wrap:wrap; }
.links a{
  font-size:13px; color:var(--muted);
  padding:8px 10px; border-radius:999px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.links a:hover{
  background:rgba(255,255,255,.05);
  color:var(--text);
  transform: translateY(-1px);
}

.cta{ display:flex; gap:10px; align-items:center; }

.btn{
  font-size:13px; padding:10px 12px;
  border-radius:999px; border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  display:inline-flex; align-items:center; gap:8px;

  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover{
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.btn:active{ transform: translateY(0px) scale(.99); }

.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(124,58,237,.85), rgba(34,211,238,.75));
  box-shadow: 0 12px 30px rgba(124,58,237,.18);
}

/* Leadership timeline list */
.timeline{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(233,238,252,.92);
}

.timeline > li{
  margin: 14px 0;
}

.t-title{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.t-year{
  color: rgba(233,238,252,.60);
  font-weight: 500;
}

.t-sub{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(233,238,252,.65);
  font-size: 14px;
  line-height: 1.6;
}

.t-sub li{
  margin: 6px 0;
}

/* HERO */
.hero{ padding:70px 0 30px; }
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size:12px; color:var(--muted);
  letter-spacing:.14em;
  text-transform:uppercase;
}
.pulse{
  width:8px; height:8px; border-radius:999px;
  background: var(--accent3);
  box-shadow: 0 0 16px rgba(163,255,18,.35);
}
h1{
  margin:18px 0 10px;
  font-size: clamp(40px, 6vw, 74px);
  line-height:1.02;
  letter-spacing:-.03em;
}
.sub{
  max-width:760px;
  color:var(--muted);
  font-size: 16px;
  line-height:1.6;
}
.small{ font-size:12px; color:var(--muted); }

.tagrow{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: rgba(233,238,252,.78);
  font-family: var(--mono);
}

/* SECTIONS */
.section{
  padding:55px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.kicker{
  color:rgba(233,238,252,.85);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:10px;
}
.h2{
  font-size:28px;
  letter-spacing:-.02em;
  margin:0 0 10px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:18px;
}

/* CARDS */
.card{
  grid-column: span 6;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;

  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(400px 120px at 20% 0%, rgba(34,211,238,.16), transparent 60%),
              radial-gradient(400px 120px at 80% 0%, rgba(124,58,237,.16), transparent 60%);
  opacity:.9;
  pointer-events:none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}
.card > *{ position:relative; }
.card h3{ margin:0 0 6px; font-size:15px; }
.card p{ margin:0; color:var(--muted); font-size:14px; line-height:1.6; }

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  filter: brightness(1.02);
}
.card:link, .card:visited { text-decoration: none; }
.card:focus { outline: 2px solid rgba(255,255,255,.18); outline-offset: 4px; }

.bullets{ margin:10px 0 0; padding-left:18px; color:var(--muted); font-size:14px; line-height:1.6; }
.bullets li{ margin:6px 0; }

/* STATS */
.stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:14px;

  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.stat:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  filter: brightness(1.02);
}
.stat .num{ font-size:22px; font-weight:700; letter-spacing:-.02em; }
.stat .lab{ font-size:12px; color:var(--muted); margin-top:6px; }

/* CODE BLOCK */
pre{
  margin:0;
  white-space:pre;
  overflow:auto;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  border-radius: var(--radius);
  padding:16px;
  font-family: var(--mono);
  font-size:12.5px;
  line-height:1.55;
  color: rgba(233,238,252,.9);

  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
pre:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}

/* SPLIT LAYOUT */
.two{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  margin-top:18px;
  align-items:start;
}

/* FOOTER */
footer{ padding:40px 0 70px; color:var(--muted); }

.site-footer{
  padding: 30px 0 60px;
  color: var(--muted);
}

.footer-line{
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,.10);
  margin-bottom: 18px;
}

.footer-center{
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 880px){
  .card{ grid-column: span 12; }
  .stats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two{ grid-template-columns: 1fr; }
}

@media (min-width: 980px){
  .card{ grid-column: span 4; }
}

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.on{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
  .reveal{ opacity:1; transform:none; }
}