/* ================================================================
   index.css — landing page styles for index.html
   Self-contained; does not depend on labs.css
   ================================================================ */

:root {
  --bg:       #0b1020;
  --panel:    rgba(18, 27, 52, 0.88);
  --panel-2:  rgba(24, 37, 70, 0.72);
  --text:     #e8eefc;
  --muted:    #aebbd7;
  --accent:   #55d6be;
  --accent-2: #7aa2ff;
  --warn:     #ffc857;
  --danger:   #ff6b8a;
  --border:   rgba(255, 255, 255, 0.12);
  --shadow:   rgba(0, 0, 0, 0.38);
  --code:     #111a33;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(85, 214, 190, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(122, 162, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #070b16 0%, var(--bg) 48%, #10162a 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { margin: 0; min-height: 100vh; line-height: 1.55; }
a    { color: inherit; }

.wrap    { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; }
header   { margin-bottom: 2rem; }

/* ── Eyebrow + pulse ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .35rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .02em;
}
.pulse {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

/* ── Hero type ───────────────────────────────────────────────── */
h1 {
  max-width: 920px;
  margin: 1.1rem 0 .8rem;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.06em;
}
.lede {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* ── Intro two-col ───────────────────────────────────────────── */
.intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── Info panels ─────────────────────────────────────────────── */
.panel {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--panel-2);
  color: var(--muted);
}
.panel strong, .panel h2, .panel h3 { color: var(--text); }
.panel h2, .panel h3 { margin: 0 0 .55rem; line-height: 1.15; letter-spacing: -.025em; }
.panel p  { margin: .55rem 0 0; }
.panel ul, .panel ol { margin: .6rem 0 0; padding-left: 1.15rem; }
.panel li + li { margin-top: .35rem; }

/* ── Setup section ───────────────────────────────────────────── */
.setup { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 1rem; }
.setup .panel      { grid-column: span 6; }
.setup .panel.wide { grid-column: 1 / -1; }

.setup-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.setup-kicker svg { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* ── Download panel (visually distinct from the plain setup panels) ── */
.panel.download {
  border-color: rgba(122,162,255,.4);
  background: linear-gradient(180deg, rgba(122,162,255,.10), rgba(255,255,255,.02)), var(--panel-2);
}
.panel.download .setup-kicker { color: var(--accent-2); }
.dl-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.dl-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: .8rem;
  background: var(--accent-2);
  color: #0b1020;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}
.dl-button:hover, .dl-button:focus-visible { background: #93b4ff; transform: translateY(-2px); outline: none; }
.dl-button svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.dl-button.warn { background: var(--warn); color: #241a04; }
.dl-button.warn:hover, .dl-button.warn:focus-visible { background: #ffd873; }

/* ── Card with extra destinations (e.g. a primary lab + variant links) ── */
.card-main { display: contents; }
.card-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }

/* ── Lab credential table ────────────────────────────────────── */
.lab-table {
  width: 100%;
  margin-top: .8rem;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .8rem;
  font-size: .95rem;
}
.lab-table th, .lab-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.lab-table th {
  color: var(--text);
  background: rgba(255,255,255,.06);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lab-table tr:last-child td { border-bottom: 0; }

/* ── Callouts (index variant — full border, no left-only) ────── */
.callout {
  margin-top: .8rem;
  padding: .75rem .85rem;
  border-radius: .8rem;
  border: 1px solid rgba(85, 214, 190, 0.28);
  background: rgba(85, 214, 190, 0.08);
  color: #c8fff6;
}
.callout.warn   { border-color: rgba(255,200,87,.28);  background: rgba(255,200,87,.08);  color: #ffe3a3; }
.callout.danger { border-color: rgba(255,107,138,.35); background: rgba(255,107,138,.08); color: #ffd0da; }

/* ── Lab card grid ───────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 1rem; }

.card {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 304px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)), var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(85,214,190,.62);
  background: linear-gradient(180deg, rgba(85,214,190,.12), rgba(255,255,255,.025)), var(--panel);
  outline: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(85,214,190,.20), transparent 67%);
  pointer-events: none;
}
.card.vm::after      { background: radial-gradient(circle, rgba(122,162,255,.22), transparent 67%); }
.card.caution::after { background: radial-gradient(circle, rgba(255,200,87,.20),  transparent 67%); }
.card.accent::after  { background: radial-gradient(circle, rgba(122,162,255,.22), transparent 67%); }

.topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(85,214,190,.12);
  color: #b9fff3;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .065em;
  white-space: nowrap;
}
.badge.blue { background: rgba(122,162,255,.14); color: #cedaff; }
.badge.warn { background: rgba(255,200,87,.14);  color: #ffe3a3; }

.filetype {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  padding: .25rem .5rem;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: .55rem;
  white-space: nowrap;
}

/* ── Card interior ───────────────────────────────────────────── */
h2.card-title { margin: 0; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.desc { margin: .85rem 0 0; color: var(--muted); }
.note {
  margin: .75rem 0 0;
  padding: .7rem .8rem;
  border: 1px solid rgba(255,200,87,.28);
  border-radius: .8rem;
  background: rgba(255,200,87,.08);
  color: #ffe3a3;
  font-size: .95rem;
}
.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.chip {
  padding: .35rem .55rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-size: .88rem;
}
.cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.15rem; color: var(--accent); font-weight: 800; }

/* ── Instructor links section ────────────────────────────────── */
.links-section { margin-top: 3rem; }

.link-group { margin-top: 1.25rem; }
.link-group-title {
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.links-section .link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.link-list a {
  display: block;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: rgba(255,255,255,.04);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.link-list a:hover, .link-list a:focus-visible {
  border-color: rgba(85,214,190,.62);
  background: rgba(85,214,190,.10);
  outline: none;
}
.link-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .9rem;
}
.link-title { color: var(--text); font-weight: 700; }
.link-meta {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}
.link-time {
  padding: .2rem .45rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: rgba(122,162,255,.12);
  color: #cedaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
}
.link-why { display: block; margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.link-why code {
  padding: .1rem .3rem;
  border-radius: .35rem;
  background: var(--code);
  font-size: .88em;
}

@media (max-width: 640px) {
  .link-head { flex-direction: column; gap: .3rem; }
  .link-meta { margin-left: 0; }
}

/* ── Hash integrity block ────────────────────────────────────── */
.artifact-integrity {
  margin-top: 1rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: rgba(255,255,255,.035);
}
.integrity-label {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hash-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  align-items: stretch;
  margin-top: .45rem;
}
.artifact-integrity code, .hash-value {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
.hash-value { min-width: 0; }

/* ── Copy button (index variant) ─────────────────────────────── */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.3rem;
  padding: .18rem .55rem;
  border: 1px solid rgba(85,214,190,.45);
  border-radius: .6rem;
  background: rgba(85,214,190,.10);
  color: #b9fff3;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover, .copy-btn:focus-visible { background: rgba(85,214,190,.18); outline: none; }
.copy-btn svg { width: .8rem; height: .8rem; flex-shrink: 0; }
.copy-label { display: inline-block; width: 3.5rem; text-align: center; }

/* ── Archive section ─────────────────────────────────────────── */
.archive-section { margin-top: 3rem; }
.archive-toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease;
}
.archive-toggle:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.archive-toggle .chevron { margin-left: auto; transition: transform 200ms ease; }
.archive-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.archive-body {
  display: none;
  margin-top: .75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.archive-body.open { display: block; }

.archive-group { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.archive-group:last-child { border-bottom: none; }
.archive-group-title {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.archive-list li:last-child { border-bottom: none; }
.archive-list a { color: var(--accent-2); font-size: .95rem; text-decoration: none; }
.archive-list a:hover { color: var(--accent); text-decoration: underline; }
/* Delisted release: file no longer hosted, hash retained for verification. */
.archive-list .arch-name { color: var(--muted); font-size: .95rem; }
.archive-list .arch-note {
  color: var(--muted);
  font-size: .85rem;
  word-break: break-all;
}
.archive-list .arch-chip {
  padding: .15rem .4rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-size: .78rem;
  white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer { margin-top: 2rem; color: var(--muted); font-size: .95rem; }

/* ── Inline code ─────────────────────────────────────────────── */
code {
  color: var(--text);
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: .35rem;
  padding: .08rem .28rem;
  font-size: .9em;
}

/* ── Media queries ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .setup .panel { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .wrap { padding: 2rem 0; }
  .card { grid-column: 1 / -1; }
  .topline { flex-direction: column; gap: .55rem; }
  .hash-row { grid-template-columns: 1fr; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  html { background: white; color: black; }
  .card, .panel, .note, .callout, .artifact-integrity { background: white; box-shadow: none; border-color: #bbb; }
  .badge, .chip, .filetype, code, .copy-btn { color: black; background: #f3f3f3; border-color: #ccc; }
  .desc, .lede, footer, .panel, .note, .callout { color: #333; }
}

/* ── Reduced motion ──────────────────────────────────────────────
   Neutralize the only positional/rotational motion on this page: the
   card hover-lift and the archive chevron's rotate. The card's
   focus-visible cue survives because it is carried by border-color and
   background (not the transform), so keyboard focus stays visible. */
@media (prefers-reduced-motion: reduce) {
  .card { transition: border-color 160ms ease, background 160ms ease; }
  .card:hover, .card:focus-visible { transform: none; }
  .archive-toggle .chevron { transition: none; }
}
