/* =============================================================================
   Hamcodes Labs, using The Filter's green card surfaces and floating header.
   The night sky and its assets remain independent of the foreground design.
   ========================================================================== */
:root {
  --bg: #05060d;
  --bg-2: #070812;
  --surface: #151d18;
  --surface-2: #101813;
  --surface-3: #1b2c20;
  --card-fill: radial-gradient(ellipse at 90% 120%, #203025, #151d18 75%);
  --card-hover: radial-gradient(ellipse at 90% 120%, #284331, #17251c 75%);
  --card-border: #34483b;
  --glass-blur: saturate(1.2) blur(14px);
  --line: #34483b;
  --line-soft: #26382c;
  --text: #f5f7f5;
  --read: #b9c5be;
  --muted: #9eafa4;

  --brand: #00ed8a;
  --brand-hi: #5ff2b5;
  --brand-lo: #00c777;
  --on-accent: #06130e;
  --safe: #4ade8a;
  --threat: #ff5a72;
  --amber: #e8b33c;
  --violet: #a98bff;

  --cc: var(--brand);            /* domain accent; content cards share green */

  --radius: 12px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow: 0 16px 40px -30px rgba(0,0,0,.85);
  --shadow-soft: 0 10px 28px -24px rgba(0,0,0,.7);
  --maxw: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 112.5%; }
body {
  margin: 0; background: var(--bg); color: var(--read);
  font-family: var(--sans); font-size: 1.06rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); line-height: 1.14; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hi); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* the night sky, borrowed from thefilter.hamcodes.com (stars.js) */
#bgCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
/* A single opaque green gradient on every content card, as on The Filter. */
.cat-card, .ex, .feature, .panel, .faq-item, .track-row, .disclaimer, .walk-card {
  --cc: var(--brand);
  background: var(--card-fill);
  border-color: var(--card-border);
}
.section { padding: clamp(46px, 7vw, 92px) 0; }
.section-tight { padding: clamp(30px, 5vw, 54px) 0; }
.center { text-align: center; }
.lead { font-size: 1.16rem; color: var(--read); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 0.88rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand);
  font-weight: 500; margin-bottom: 14px;
}
.eyebrow::before { content: "\2726"; flex: none; }
.center .eyebrow { justify-content: center; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; line-height: 1.3;
  padding: 14px 22px; min-height: 48px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-accent); font-weight: 600; box-shadow: 0 4px 0 #087449; }
.btn-primary:hover { background: var(--brand-hi); color: var(--on-accent); box-shadow: 0 3px 0 #087449; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: #4c6153; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 26px; font-size: 1.00rem; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ic svg { width: 100%; height: 100%; }

/* chips, tags, badges */
.tag {
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.82rem; letter-spacing: .03em;
  color: var(--read); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.80rem; font-weight: 500; letter-spacing: .06em; padding: 4px 9px; border-radius: var(--radius-pill); text-transform: uppercase; }
.badge-live { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.badge-new { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.badge-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.level { font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }

/* ------------------------------------------------------------------- header */
.site-header { position: sticky; top: 16px; z-index: 50; width: min(1200px, calc(100% - 40px)); margin: 16px auto 0; }
.site-header .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 18px; max-width: none; min-height: 64px; padding: 10px 22px;
  background: #111614; border: 1px solid #2b342e; border-radius: 16px;
  box-shadow: 0 16px 40px -28px rgba(0,0,0,.85);
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--sans); font-weight: 700; color: var(--text); font-size: 16px; letter-spacing: .04em; }
.brand:hover { color: var(--text); }
.brand b { font-weight: 700; color: var(--brand); }
.brand-logo { width: 27px; height: 27px; flex: none; background: transparent; filter: drop-shadow(0 0 9px rgba(212,44,80,.3)); }
.site-header .brand-logo { animation: brand-breathe 4s ease-in-out infinite; }
@keyframes brand-breathe {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(212,44,80,.2)); opacity: .72; }
  50% { filter: drop-shadow(0 0 18px rgba(212,44,80,.85)); opacity: 1; }
}
@media (hover: hover) {
  .site-header .brand:hover .brand-logo { animation: none; opacity: 1; filter: drop-shadow(0 0 13px rgba(212,44,80,.5)); }
}
.site-header .brand { justify-self: start; min-width: 0; }
.nav { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font: 500 15px/1.3 var(--sans); color: #bec8c1; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible, .nav a.is-active { color: var(--brand); }
.nav a.out::after { content: " \2197"; color: var(--brand); }
.site-header .header-cta { justify-self: end; min-height: 42px; padding: 8px 18px; font-size: 14px; border-radius: 9px; white-space: nowrap; box-shadow: none; }
.nav a:focus-visible { outline-offset: -3px; }

/* the glass button: frosted, lit from the top edge, the sky shows through */
.btn-glass {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--mono); font-size: 0.92rem; font-weight: 500; letter-spacing: .04em; color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 24px -10px color-mix(in srgb, var(--brand) 55%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease);
}
.btn-glass:hover { text-decoration: none; color: var(--text); border-color: color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px -10px color-mix(in srgb, var(--brand) 80%, transparent); transform: translateY(-1px); }
.btn-glass .ic { width: 16px; height: 16px; color: var(--brand); display: inline-flex; }
.btn-glass .bg-short { display: none; }

@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 10px 16px 6px; }
  .nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: flex-start; gap: 22px; padding: 0 2px 4px; }
  .site-header .header-cta { grid-row: 1; grid-column: 2; }
}
@media (max-width: 620px) {
  .site-header { width: calc(100% - 24px); margin-top: 12px; top: 12px; }
  .site-header .wrap { padding: 8px 12px 4px; border-radius: 14px; gap: 4px 8px; }
  .site-header .brand { font-size: 14px; letter-spacing: .025em; }
  .site-header .brand-logo { width: 26px; height: 26px; }
  .site-header .header-cta { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .btn-glass { padding: 9px 13px; font-size: .86rem; }
  .btn-glass .bg-long { display: none; }
  .btn-glass .bg-short { display: inline; }
}

/* --------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden;
  background: radial-gradient(80% 60% at 50% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%); }
.hero .wrap { padding-top: clamp(52px, 9vw, 108px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6rem); line-height: 1.0; letter-spacing: -.03em; margin-bottom: .3em; max-width: 15ch; margin-inline: auto; }
.hero .lead { font-size: 1.32rem; margin-inline: auto; }
/* one word picked out in green (no box), the way thefilter keeps its headings */
.hl { color: var(--brand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.hero-trust { margin-top: 26px; color: var(--muted); font-size: 1.00rem; }
.hero-trust b { color: var(--text); }


/* ---------------------------------------------------------------- features */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; position: relative; }
.feature .num { font-family: var(--mono); font-size: 0.94rem; font-weight: 600; color: var(--on-accent); background: var(--cc, var(--brand)); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { margin-bottom: .35em; color: var(--text); }
.feature p { color: var(--muted); margin: 0; font-size: 1.00rem; }

/* -------------------------------------------------------- category cards */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 24px; color: inherit; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), border-color .2s, background .2s; }
.cat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cc); opacity: .9; }
.cat-card:hover { text-decoration: none; transform: translateY(-3px); border-color: #587360; background: var(--card-hover); }
.cat-card .top { display: flex; align-items: center; gap: 13px; }
.cat-card .cat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.cat-card .cat-ic svg { width: 24px; height: 24px; }
.cat-card .th h3 { margin: 0; font-size: 1.24rem; color: var(--text); }
.cat-card .count { font-family: var(--mono); font-size: 0.86rem; color: var(--cc); }
.cat-card > p { color: var(--muted); margin: 12px 0 0; font-size: 1.00rem; }
.cat-card .peek { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.cat-card .peek .row { display: flex; align-items: center; gap: 10px; font-size: 1.00rem; color: var(--read); }
.cat-card .peek .row::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cc); flex: none; }
.cat-card .more { margin-top: 18px; color: var(--cc); font-family: var(--mono); font-size: 0.96rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.cat-card .more .ar { transition: transform .18s var(--ease); }
.cat-card .more .ar svg { width: 15px; height: 15px; }
.cat-card:hover .more .ar { transform: translateX(3px); }

/* the Developer Track: full-width rows, the way RansomLeak lists them */
.track { display: flex; flex-direction: column; gap: 14px; }
.track-row { display: flex; align-items: center; gap: 18px; background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 20px 24px; position: relative; overflow: hidden; color: inherit;
  transition: transform .16s var(--ease), border-color .2s, background .2s; }
.track-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cc); }
.track-row:hover { text-decoration: none; transform: translateX(3px); border-color: #587360; background: var(--card-hover); }
.track-row .cat-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.track-row .cat-ic svg { width: 26px; height: 26px; }
.track-row .tr-body { flex: 1; min-width: 0; }
.track-row .tr-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.track-row .tr-head h3 { margin: 0; font-size: 1.28rem; color: var(--text); }
.track-row .tr-head .count { font-family: var(--mono); font-size: 0.88rem; color: var(--cc); }
.track-row .tr-sub { color: var(--muted); font-size: 1.00rem; margin: 5px 0 0; }
.track-row .tr-ar { color: var(--cc); flex: none; }
.track-row .tr-ar svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .track-row { gap: 14px; padding: 18px; } .track-row .tr-ar { display: none; } }

/* RansomLeak-style category section header (icon + title + count + blurb) */
.cat-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cat-sec-head .cat-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.cat-sec-head .cat-ic svg { width: 25px; height: 25px; }
.cat-sec-head h2 { margin: 0; font-size: 1.5rem; }
.cat-sec-head h2 a { color: var(--text); }
.cat-sec-head h2 a:hover { color: var(--cc); }
.cat-sec-head .csh-body p { margin: 4px 0 0; color: var(--muted); font-size: 1.00rem; }
/* sub-course groupings on a category page */
.subcourse { margin-bottom: 44px; }
.sc-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sc-head h2 { margin: 0; font-size: 1.16rem; color: var(--text); }
.sc-head .sc-count { font-family: var(--mono); font-size: 0.86rem; color: var(--cc); }
.viewall { color: var(--cc, var(--brand)); font-family: var(--mono); font-size: 0.98rem; display: inline-flex; align-items: center; gap: 7px; }
.viewall:hover { color: var(--brand-hi); }
.viewall svg { width: 15px; height: 15px; }

/* "what is inside": the real game sneak-peek */
.inside-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
.inside-shot { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #05070a; }
.inside-shot img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.inside-shot:hover img { transform: scale(1.025); }
.inside-shot::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(5,6,13,.35), transparent 75%); pointer-events: none; }
.inside-shot .shot-badge { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.80rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: rgba(5,6,13,.72); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.inside-shot .shot-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); animation: blink 1.6s infinite; }
.inside-shot .shot-cta { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.inside-shot .shot-play { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); background: var(--brand); box-shadow: 0 10px 30px -6px rgba(0,0,0,.6); animation: play-blink 1.6s ease-in-out infinite; transition: transform .16s var(--ease); }
.inside-shot .shot-play::before, .inside-shot .shot-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: play-ripple 1.6s ease-out infinite; }
.inside-shot .shot-play::after { animation-delay: .8s; }
.inside-shot .shot-play svg { width: 32px; height: 32px; margin-left: 4px; }
.inside-shot:hover .shot-play { transform: scale(1.08); }
.inside-shot .shot-tap { font-family: var(--mono); font-size: 0.88rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(5,6,13,.7); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); animation: tap-blink 1.6s ease-in-out infinite; }
@keyframes tap-blink { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes play-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent), 0 10px 30px -6px rgba(0,0,0,.6); } 50% { opacity: .72; box-shadow: 0 0 34px 6px color-mix(in srgb, var(--brand) 45%, transparent), 0 10px 30px -6px rgba(0,0,0,.6); } }
@keyframes play-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.inside-list { display: flex; flex-direction: column; gap: 18px; }
.il-row b { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 3px; }
.il-row span { color: var(--muted); font-size: 1.00rem; }

/* compliance mapping band */
.compliance { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.cmp { font-family: var(--mono); font-size: 0.92rem; color: var(--read); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 4px 20px; }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; font-size: 1.00rem; }
@media (max-width: 900px) { .inside-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- exercise tiles */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex { display: flex; flex-direction: column; background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; position: relative;
  transition: transform .16s var(--ease), border-color .2s, background .2s; }
.ex::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: var(--cc); opacity: .55; border-radius: 0 0 2px 2px; }
.ex:hover { transform: translateY(-2px); border-color: #587360; background: var(--card-hover); }
.ex .ex-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 40px; }
.ex .ex-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); flex: none; }
.ex .ex-ic svg { width: 21px; height: 21px; }
.play.muted { color: var(--muted); }
.ex h4 { font-family: var(--display); font-size: 1.04rem; margin: 0 0 .4em; color: var(--text); font-weight: 600; }
.ex .blurb { color: var(--muted); font-size: 1.00rem; margin: 0 0 14px; flex: 1; }
.ex .ex-tags { margin-bottom: 14px; }
.ex .ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ex .play { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-weight: 500; font-size: 0.94rem; color: var(--brand); }
.ex .play .ic { width: 15px; height: 15px; }
.ex .meta { font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }

/* --------------------------------------------------------------- search */
.searchbar { position: relative; max-width: 580px; margin: 0 auto; }
.searchbar .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.searchbar input { width: 100%; font-family: var(--mono); font-size: 1.00rem; padding: 15px 18px 15px 46px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 0.88rem; letter-spacing: .03em; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--read); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); color: var(--on-accent); border-color: var(--brand); font-weight: 600; }
.no-results { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* ------------------------------------------------------------- panels/CTA */
.panel { background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px); position: relative; overflow: hidden; }
.panel h2 { position: relative; }
.panel p { color: var(--read); position: relative; max-width: 56ch; }
.panel .hero-cta { position: relative; justify-content: flex-start; }

/* breadcrumb + category hero */
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.92rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.cat-hero { padding: 30px 0 8px; position: relative; }
.cat-hero .kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.88rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cc); margin-bottom: 14px; }
.cat-hero .kicker::before { content: "\2726"; flex: none; }
.cat-hero h1 { margin: 0; }
.cat-hero .count { font-family: var(--mono); color: var(--muted); font-size: 0.94rem; margin-top: 10px; display: block; }
.cat-hero .lead { margin-top: 16px; }
.cat-frameworks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.disclaimer { background: var(--card-fill); border: 1px solid var(--card-border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 18px 20px; font-size: 1.00rem; color: var(--read); }
.disclaimer b { color: var(--text); }

/* --------------------------------------------------------------- footer */
.site-footer { background: color-mix(in srgb, var(--bg-2) 55%, transparent); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-top: 1px solid var(--line); margin-top: 20px; }
.site-footer a { color: var(--read); }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 54px 0 30px; }
.footer-brand .brand { color: var(--text); }
.footer-brand p { margin-top: 14px; font-size: 1.00rem; max-width: 34ch; color: var(--muted); }
.footer-col h4 { color: var(--text); font-size: 0.88rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 1.00rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--mono); font-size: 0.92rem; color: var(--muted); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--read); }
.footer-social a:hover { border-color: var(--brand); color: var(--brand); }
.footer-social svg { width: 17px; height: 17px; }
.note { font-family: var(--mono); font-size: 0.92rem; color: var(--muted); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .grid-3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .grid-3, .grid-2, .cat-grid, .ex-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .panel .hero-cta { justify-content: stretch; }
}
/* ------------------------------------------- walkthrough before the sim opens */
.walk { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(3,4,9,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: walk-in .2s ease; }
.walk[hidden] { display: none; }
html.walk-open { overflow: hidden; }
.walk-card { position: relative; width: min(880px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.walk-x { position: absolute; z-index: 2; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(5,6,13,.75); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.walk-shot { position: relative; background: #05070a; border-bottom: 1px solid var(--line); }
.walk-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.walk-count { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 0.86rem; letter-spacing: .1em; color: var(--brand); background: rgba(5,6,13,.78); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.walk-body { padding: 22px 26px 18px; }
.walk-body .eyebrow { margin-bottom: 8px; }
.walk-body h3 { font-size: 1.45rem; margin: 0 0 8px; }
.walk-text { color: var(--read); margin: 0; min-height: 4.8em; }
.walk-dots { display: flex; gap: 6px; margin: 16px 0 14px; }
.walk-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s, width .2s; }
.walk-dots i.on { width: 34px; background: var(--brand); }
.walk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.walk-keep { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.90rem; color: var(--muted); cursor: pointer; }
.walk-keep input { accent-color: var(--brand); width: 16px; height: 16px; }
.walk-btns { display: flex; gap: 10px; }
.walk-btns .btn { padding: 12px 20px; }
.walk-back:disabled { opacity: .35; cursor: default; transform: none; }
.walk-skip { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 0.90rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.walk-skip:hover { color: var(--text); }
@keyframes walk-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .walk-body { padding: 18px 18px 14px; }
  .walk-body h3 { font-size: 1.2rem; }
  .walk-text { font-size: 1.00rem; min-height: 0; }
  .walk-btns { width: 100%; }
  .walk-btns .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; } .btn, .cat-card, .ex { transition: none; }
  .inside-shot .shot-play, .inside-shot .shot-play::before, .inside-shot .shot-play::after, .inside-shot .shot-tap, .walk { animation: none; }
}


/* -------------------------------------------- blinking stars before labels */
/* A small star in place of the old line. nav.js gives every one its own colour
   (--star) and start time (--sd), so they twinkle out of step in different
   colours. With reduced motion they hold still in that colour. */
.eyebrow::before, .cat-hero .kicker::before {
  display: inline-block; font-size: 1.25em; line-height: 1; letter-spacing: 0;
  color: var(--star, #3ddba3); text-shadow: 0 0 10px currentColor;
  animation: star-blink 1.9s ease-in-out infinite, star-hue 8s linear infinite;
  animation-delay: var(--sd, 0s), var(--sd, 0s);
}
@keyframes star-blink { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: .2; transform: scale(.6) rotate(35deg); } }
@keyframes star-hue { 0% { color: #3ddba3; } 20% { color: #5fa8ff; } 40% { color: #b58cff; } 60% { color: #ff86c8; } 80% { color: #ffc857; } 100% { color: #3ddba3; } }
@media (prefers-reduced-motion: reduce) { .eyebrow::before, .cat-hero .kicker::before { animation: none; } }


/* ------------------------------------------------------------ phone polish */
/* On a phone the 18px root that suits a desk is too much: it made the page very
   long and broke buttons across lines. A 16.5px base keeps every label at 13px
   or more, with tighter spacing and calmer headings. */
@media (max-width: 640px) {
  html { font-size: 103%; }
  body { font-size: 1rem; line-height: 1.6; }
  h1 { font-size: clamp(1.95rem, 8.4vw, 2.5rem); line-height: 1.1; }
  h2 { font-size: clamp(1.5rem, 6.4vw, 1.85rem); line-height: 1.16; }
  h3 { font-size: 1.12rem; }
  .lead { font-size: 1.04rem; line-height: 1.6; }
  .eyebrow { letter-spacing: .14em; font-size: .8rem; }
  .btn, .btn-lg { font-size: .92rem; padding: 14px 18px; letter-spacing: .01em; line-height: 1.3; text-align: center; }
  .btn-lg { padding: 15px 20px; }
  .section, .section-tight { padding-top: 44px; padding-bottom: 44px; }
  .feature, .cat-card, .ex, .panel { padding: 18px; }
  .ex h4 { font-size: 1.06rem; }
  .ex .blurb, .cat-card p { font-size: .96rem; line-height: 1.55; }
  .badge, .tag, .level, .note, .cat-frameworks span { font-size: .8rem; }
  .footer-brand p { font-size: .95rem; }
}

/* Homepage composition follows The Filter: open grid hero, route rail,
   bounded product preview and aligned groups of cards. */
.home-main section[id], .cat-group, .subcourse { scroll-margin-top: 145px; }
.home-main h2 { max-width: 24ch; margin-inline: auto; font-size: clamp(2rem, 4.5vw, 3.15rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.home-main .lead { margin-inline: auto; max-width: 65ch; font-size: 1.08rem; line-height: 1.7; }
.home-main .section { padding-block: clamp(58px, 7.5vw, 100px); }
.home-main .eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; margin-bottom: 18px; }
.home-main .eyebrow::before { display: none; }
.home-main .hero { isolation: isolate; overflow: visible; background: none; }
.home-main .hero::before {
  content: ""; position: absolute; inset: -7rem 0 -3rem; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(115,157,130,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(115,157,130,.15) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 64% 70% at 50% 32%, #000 18%, transparent 100%);
  mask-image: radial-gradient(ellipse 64% 70% at 50% 32%, #000 18%, transparent 100%);
}
.home-main .hero .wrap { padding-top: clamp(64px, 8vw, 108px); padding-bottom: 46px; }
.home-main .hero .eyebrow { padding: .36rem .8rem; border: 1px solid #356147; border-radius: 999px; background: rgba(17,35,23,.65); color: #a7e8bd; font-size: .78rem; font-weight: 500; letter-spacing: .015em; text-transform: none; margin-bottom: 26px; }
.home-main .hero h1 { max-width: 21ch; font-size: clamp(2.8rem, 6.7vw, 5.1rem); line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.home-main .hero .hl { text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .12em; text-decoration-color: rgba(0,237,138,.65); }
.home-main .hero .lead { max-width: 62ch; margin-top: 30px; font-size: 1.05rem; }
.home-main .hero-cta { gap: 14px; margin-top: 32px; }
.home-main .btn-lg { font-size: .97rem; padding: 1rem 1.55rem; min-height: 56px; }
.home-start { padding: 0 0 32px; }
.home-start .hero-trust { margin: 0 0 24px; text-align: center; font-size: .84rem; }
.start-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card-fill); border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.start-paths a { display: flex; align-items: center; gap: 14px; padding: 20px 18px; color: var(--text); }
.start-paths a + a { border-left: 1px solid var(--card-border); }
.start-paths a:hover { background: var(--card-hover); }
.start-paths a:focus-visible { outline-offset: -4px; }
.path-number { color: var(--brand); font: 600 1rem/1.3 var(--mono); }
.start-paths b, .start-paths small { display: block; }
.start-paths b { font-size: .85rem; }
.start-paths small { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.home-demo { display: grid; grid-template-columns: .9fr 1.3fr; margin-top: 42px; border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; background: var(--card-fill); }
.demo-copy { min-width: 0; padding: clamp(24px, 3.5vw, 42px); }
.demo-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; margin: 0 0 24px; letter-spacing: -.025em; }
.demo-copy .inside-list { gap: 20px; }
.demo-copy .il-row b { font-size: .96rem; }
.demo-copy .il-row span { font-size: .88rem; line-height: 1.65; color: var(--read); }
.demo-copy .btn { margin-top: 28px; }
.home-demo .inside-shot { border: 0; border-left: 1px solid var(--card-border); border-radius: 0; height: 100%; }
.home-demo .inside-shot img { height: 100%; object-fit: cover; object-position: 44% center; }
.home-demo .shot-cta { left: 50%; }
.home-demo .shot-badge { top: auto; bottom: 16px; font-size: .74rem; }
.role-grid { margin-top: 40px; }
.role-card { display: flex; flex-direction: column; min-width: 0; padding: 30px; }
.role-label { display: block; color: var(--brand); font: 600 .72rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.role-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.role-card p { color: var(--read); line-height: 1.7; }
.role-time { color: var(--muted); font-size: .8rem; margin-top: 24px; }
.role-card > a { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .88rem; font-weight: 600; }
.home-main .cat-grid { gap: 20px; }
.home-main .cat-card { padding: 30px; }
.home-main .cat-card .peek { gap: 8px; }
.home-main .cat-card .peek .row { font-size: .86rem; line-height: 1.5; }
.home-main .cat-card .more { margin-top: auto; padding-top: 24px; font: 600 .88rem/1.5 var(--sans); }
.home-main .feature p { line-height: 1.7; }
.home-main .panel h2 { margin-left: 0; }
@media (max-width: 900px) {
  .home-main .hero .wrap { padding-top: 64px; }
  .home-main .hero h1 { font-size: clamp(2.6rem, 7.4vw, 4.2rem); }
  .start-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-paths a:nth-child(3) { border-left: 0; }
  .start-paths a:nth-child(n+3) { border-top: 1px solid var(--card-border); }
  .home-demo { grid-template-columns: 1fr; }
  .home-demo .inside-shot { border-left: 0; border-top: 1px solid var(--card-border); }
  .home-demo .inside-shot img { height: auto; object-fit: contain; }
  .home-demo .shot-cta { left: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .home-main .hero::before { inset: -9rem 0 -2rem; background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 95% 65% at 50% 30%, #000 10%, transparent 100%); mask-image: radial-gradient(ellipse 95% 65% at 50% 30%, #000 10%, transparent 100%); }
  .home-main .hero .wrap { padding-top: 50px; padding-bottom: 34px; }
  .home-main .hero h1 { font-size: clamp(2.35rem, 9.1vw, 3.25rem); line-height: 1.08; letter-spacing: -.05em; }
  .home-main .hero .lead { font-size: .98rem; margin-top: 24px; }
  .home-main h2 { font-size: clamp(1.8rem, 6.8vw, 2.3rem); }
  .home-main .lead { font-size: 1rem; }
  .home-main .hero-cta .btn { width: 100%; }
  .start-paths a { padding: 16px 12px; gap: 9px; }
  .start-paths b { font-size: .78rem; }
  .start-paths small { font-size: .74rem; }
  .home-demo { margin-top: 28px; }
  .home-demo .shot-cta { gap: 8px; padding-bottom: 20px; }
  .home-demo .shot-play { width: 56px; height: 56px; }
  .home-demo .shot-play svg { width: 24px; height: 24px; }
  .home-demo .shot-tap { font-size: .62rem; letter-spacing: .06em; white-space: nowrap; padding: 5px 10px; }
  .home-demo .shot-badge { left: 8px; bottom: 8px; font-size: .62rem; padding: 4px 8px; }
  .demo-copy { padding: 24px; }
  .home-main .role-card, .home-main .cat-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand-logo { animation: none; opacity: 1; }
  .cat-card, .ex, .track-row, .btn { transition: none; }
  .cat-card:hover, .ex:hover, .track-row:hover, .btn:hover { transform: none; }
}

/* The counting statement, always visible, above the footer counter. */
.footer-privacy {
  margin: 18px 0 0;
  max-width: 68ch;
  font-size: .84rem;
  color: var(--muted);
}
