/* ============================================================
   NinjaOne Packaging Engineer — Study Site
   Goth Frutiger Aero × iOS 26 Liquid Glass
   Pure HTML/CSS, no JavaScript
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg-0: #04050a;
  --bg-1: #070912;
  --bg-2: #0b0f1e;

  --ink:   #eaf0ff;
  --ink-2: #aeb8d6;
  --ink-3: #76819f;

  --aqua:        #6fe6ff;
  --aqua-dim:    #4fb8d8;
  --violet:      #b08bff;
  --violet-dim:  #8a63e0;
  --teal:        #46e0b0;
  --rose:        #ff8fb0;

  --glass-bg:    rgba(150, 175, 255, 0.055);
  --glass-bg-2:  rgba(150, 175, 255, 0.04);
  --glass-edge:  rgba(190, 215, 255, 0.14);
  --rim:         rgba(255, 255, 255, 0.26);
  --rim-low:     rgba(255, 255, 255, 0.05);

  --radius: 26px;
  --radius-sm: 16px;

  --shadow-depth: 0 26px 70px -28px rgba(0, 0, 0, 0.85), 0 4px 14px -6px rgba(0, 0, 0, 0.6);
  --glow-aqua: 0 0 50px -12px rgba(111, 230, 255, 0.30);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.6;
  font-size: 16.5px;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--aqua); text-decoration: none; }
a:hover { color: #b9f3ff; }

::selection { background: rgba(111, 230, 255, 0.28); color: #fff; }

/* ============================================================
   ATMOSPHERE — goth frutiger aero sky
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -12%, rgba(80, 70, 170, 0.40), transparent 60%),
    radial-gradient(900px 700px at 85% 8%, rgba(40, 120, 200, 0.22), transparent 55%),
    radial-gradient(700px 600px at 10% 20%, rgba(120, 60, 170, 0.20), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #020308 100%);
}

/* moon */
.moon {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 40%, rgba(255, 255, 255, 0.36) 0%, rgba(208, 218, 255, 0.24) 16%, rgba(160, 180, 255, 0.12) 40%, rgba(120, 150, 230, 0.04) 62%, transparent 74%);
  filter: blur(3px);
}

/* starfield (two layered sheets for parallax twinkle) */
.stars, .stars::after {
  position: absolute;
  inset: -50%;
  content: "";
  background-repeat: repeat;
  background-image:
    radial-gradient(1.2px 1.2px at 13% 22%, #fff, transparent),
    radial-gradient(1px 1px at 47% 8%, #dfeaff, transparent),
    radial-gradient(1.4px 1.4px at 78% 33%, #fff, transparent),
    radial-gradient(1px 1px at 22% 64%, #cfe0ff, transparent),
    radial-gradient(1.2px 1.2px at 63% 77%, #fff, transparent),
    radial-gradient(1px 1px at 90% 12%, #e9f0ff, transparent),
    radial-gradient(0.8px 0.8px at 5% 88%, #fff, transparent),
    radial-gradient(1px 1px at 38% 48%, #b9c8ff, transparent);
  background-size: 340px 340px;
  opacity: 0.55;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars::after {
  background-size: 210px 210px;
  background-position: 120px 80px;
  opacity: 0.4;
  animation-duration: 11s;
  animation-delay: -3s;
}

/* water at the horizon */
.water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32vh;
  background:
    linear-gradient(180deg, transparent 0%, rgba(20, 50, 110, 0.18) 40%, rgba(10, 25, 60, 0.55) 100%);
  border-top: 1px solid rgba(120, 180, 255, 0.10);
  box-shadow: inset 0 30px 60px -20px rgba(80, 140, 230, 0.10);
}
.water::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(150, 200, 255, 0.025) 7px 8px);
  animation: ripple 14s linear infinite;
}

/* bubbles */
.bubbles { position: absolute; inset: 0; }
.bubble {
  position: absolute;
  bottom: -160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.20) 6%,
      rgba(140, 205, 255, 0.07) 38%,
      rgba(120, 170, 255, 0.02) 68%,
      transparent 78%);
  box-shadow:
    inset -5px -7px 14px rgba(0, 0, 0, 0.28),
    inset 4px 5px 9px rgba(255, 255, 255, 0.18),
    0 0 22px -4px rgba(120, 200, 255, 0.18);
  opacity: 0;
  animation-name: rise;
  animation-timing-function: cubic-bezier(.4, .05, .6, 1);
  animation-iteration-count: infinite;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px 120px;
}
.stack > * + * { margin-top: 22px; }

section { scroll-margin-top: 92px; padding-top: 18px; }

/* ============================================================
   GLASS — liquid glass panes
   ============================================================ */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--rim),        /* top specular — the rim light */
    inset 0 -1px 0 var(--rim-low),
    inset 1px 0 0 rgba(255,255,255,0.05),
    inset -1px 0 0 rgba(255,255,255,0.05),
    var(--shadow-depth);
}
/* faint inner sheen sweeping down the pane */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(168deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 18%, transparent 42%);
  pointer-events: none;
}

.card { padding: 30px 32px; }
.card-tight { padding: 24px 26px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
}
.nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 6px 12px 6px 10px;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav a {
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: 30px;
  padding: 54px 46px 46px;
  overflow: hidden;
}
.hero .eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero h1 .glow {
  background: linear-gradient(92deg, var(--aqua) 0%, #c9f6ff 30%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.thesis {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.12rem;
  color: var(--ink-2);
}
.hero .meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.hero .meta div { display: flex; flex-direction: column; gap: 2px; }
.hero .meta .k {
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero .meta .v { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.hero .meta .v.accent { color: var(--aqua); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 46px 4px 18px;
}
.kicker .num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--aqua-dim);
  letter-spacing: 0.1em;
}
.kicker h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.01em;
}
.kicker .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-edge), transparent);
}
.lead-in {
  color: var(--ink-2);
  max-width: 70ch;
  margin: 0 4px 20px;
}

/* ============================================================
   TAGS — text only, no fill, no line
   ============================================================ */
.tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua-dim);
  display: inline-block;
}
.tag.violet { color: var(--violet); }
.tag.teal   { color: var(--teal); }
.tag.rose   { color: var(--rose); }
.tag.ink    { color: var(--ink-3); }

/* ============================================================
   GRID OF CARDS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
/* let grid children shrink so wide <pre> content scrolls inside the pane
   instead of blowing the column past its track (fixes unequal code cards) */
.grid > * { min-width: 0; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 14px 0 4px;
  letter-spacing: -0.01em;
}
.card .sub { color: var(--ink-3); font-size: 0.86rem; margin-bottom: 14px; }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.card .talk {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-edge);
  font-style: italic;
  color: var(--ink);
  font-size: 0.92rem;
}
.card .talk::before { content: "“"; color: var(--aqua); font-size: 1.4rem; line-height: 0; margin-right: 2px; }
.card .talk::after  { content: "”"; color: var(--aqua); }

/* ============================================================
   PIPELINE (the detection flow)
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 8px 0 20px;
}
.flow .step {
  padding: 18px 16px;
}
.flow .step .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--aqua);
  letter-spacing: 0.1em;
}
.flow .step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 6px 0 6px;
}
.flow .step p { font-size: 0.85rem; color: var(--ink-2); }

/* ============================================================
   CODE
   ============================================================ */
.code {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.55;
  color: #d6e4ff;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(120, 150, 220, 0.16);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  white-space: pre;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.code .c-key { color: var(--violet); }
.code .c-str { color: var(--teal); }
.code .c-com { color: var(--ink-3); font-style: italic; }
.code .c-fn  { color: var(--aqua); }
.code .c-num { color: var(--rose); }
.code .lbl {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  color: var(--ink-3);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ============================================================
   TABLES — reference
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-dim);
  text-align: left;
  padding: 14px 18px;
}
tbody td {
  padding: 13px 18px;
  color: var(--ink-2);
  border-top: 1px solid var(--glass-edge);
  vertical-align: top;
}
tbody td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
tbody td code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal);
  background: rgba(70, 224, 176, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ============================================================
   DETAILS — self-test probes (native, no JS)
   ============================================================ */
details {
  padding: 20px 24px;
}
details + details { border-top: 1px solid var(--glass-edge); }
summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
summary::-webkit-details-marker { display: none; }
summary .q-mark {
  flex: 0 0 auto;
  color: var(--aqua);
  font-weight: 700;
}
summary .chev {
  margin-left: auto;
  color: var(--ink-3);
  transition: transform .25s ease;
  font-size: 0.8rem;
}
details[open] summary .chev { transform: rotate(90deg); color: var(--aqua); }
details .answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-edge);
  color: var(--ink-2);
}
details .answer .model {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(111, 230, 255, 0.06);
  border-left: 2px solid var(--aqua);
  color: var(--ink);
  font-size: 0.92rem;
}
details .answer .model .lbl {
  display: block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 6px;
}

/* ============================================================
   CALLOUTS
   ============================================================ */
.callout {
  padding: 26px 30px;
}
.callout .tag { margin-bottom: 10px; }
.callout p { color: var(--ink-2); }
.callout.warn { box-shadow: inset 4px 0 0 var(--rose), var(--shadow-depth); }
.callout.win  { box-shadow: inset 4px 0 0 var(--teal), var(--shadow-depth); }

.script-line {
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 500;
  margin: 8px 0 4px;
}
.script-line em { color: var(--aqua); font-style: normal; }

/* ============================================================
   LIST STYLES
   ============================================================ */
.bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, var(--aqua) 55%, var(--violet-dim));
  box-shadow: 0 0 10px rgba(111,230,255,0.5);
}
.bullets li b, .bullets li strong { color: var(--ink); font-weight: 600; }

.checks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-2);
}
.checks li .q {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  display: block;
  margin-bottom: 3px;
}
.checks li::before {
  content: "?";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--aqua);
  background: rgba(111,230,255,0.08);
  border: 1px solid rgba(111,230,255,0.22);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.foot {
  margin-top: 46px;
  padding: 40px 38px;
  text-align: center;
}
footer.foot .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  background: linear-gradient(92deg, var(--aqua), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}
footer.foot p { color: var(--ink-3); margin-top: 10px; font-size: 0.9rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes twinkle {
  0%   { opacity: 0.35; }
  100% { opacity: 0.75; }
}
@keyframes ripple {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(.8); opacity: 0; }
  12%  { opacity: 0.55; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-118vh) translateX(40px) scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding: 38px 24px 34px; }
  .card, .callout { padding: 22px 20px; }
  .nav { border-radius: 22px; }
  .nav a { font-size: 0.7rem; padding: 7px 8px; }
  .moon { width: 320px; height: 320px; }
}

/* ============================================================
   HUB (Alexis Interview Prep landing)
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease;
}
.hub-card:hover { transform: translateY(-5px); }
.hub-card .role-meta {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-edge);
}
.hub-card .role-meta div { display: flex; flex-direction: column; gap: 2px; }
.hub-card .role-meta .k {
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
}
.hub-card .role-meta .v { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.hub-card .role-meta .v.accent { color: var(--aqua); }
.hub-card .open {
  margin-top: 20px;
  color: var(--aqua);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hub-card:hover .open { color: #b9f3ff; }
