:root {
  /* Layout */
  --max: 980px;
  --radius: 14px;

  /* Text */
  --text: #e6edf7;
  --muted: #c8d4ee;          /* was #aab4d4 — lifted for better contrast */

  /* Borders & shadows */
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);

  /* Background palette */
  --bg-deep: #0b1020;
  --bg-indigo: #1b2a6b;
  --bg-cyan: #4fd1ff;
  /* Removed --bg-violet / purple — replaced throughout */

  /* Grayscale system */
  --black: #000000;
  --dark-gray: #222222;
  --mid-gray: #666666;
  --light-gray: #e0e0e0;
  --border-gray: #cccccc;
  --white: #ffffff;
}

/* ─── Reset ─────────────────────────────────── */
* { box-sizing: border-box; }

/* ─── Body ───────────────────────────────────── */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 40%, rgba(217, 74, 166, 0.28), transparent 45%),
    radial-gradient(circle at 30% 20%, rgba(79, 209, 255, 0.22), transparent 40%),
    linear-gradient(135deg, var(--bg-deep), var(--bg-indigo));
  min-height: 100vh;
}

/* ─── Layout helpers ─────────────────────────── */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
}

.section {
  padding: 2rem 0;
}

/* ─── Header & Nav ───────────────────────────── */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;          /* was potentially purple — now white */
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ── Hamburger toggle ── */
.nav-toggle {
  display: none;           /* hidden on desktop */
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.25rem;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
  transition: background 140ms ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Nav list ── */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: #ffffff;          /* always white — never purple */
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 120ms ease;
}

.nav-list a:hover {
  color: var(--bg-cyan);
}

.nav-list a.is-active {
  border-bottom: 2px solid var(--bg-cyan);
  padding-bottom: 2px;
  color: #ffffff;
}

/* ── Mobile nav ── */
@media (max-width: 680px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    display: none;         /* hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 16, 32, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    backdrop-filter: blur(12px);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-bottom: none !important;  /* remove underline indicator on mobile */
  }

  .nav-list a.is-active {
    background: rgba(79, 209, 255, 0.12);
    color: var(--bg-cyan);
  }
}

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  color: #ffffff;          /* headings always white */
}

p {
  color: var(--text);
  line-height: 1.65;
}

.muted {
  color: var(--muted);    /* lifted gray-blue — no purple */
}

/* ─── Media Grid ─────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* Dark glass card — matches overall theme */
.media-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(79, 209, 255, 0.3);
}

.media-thumb {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PDF thumbnail placeholder */
.media-thumb .pdf-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-cyan);
  font-size: 2.5rem;
  gap: 6px;
  background: rgba(79, 209, 255, 0.06);
}

.media-thumb .pdf-preview span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caption {
  padding: 10px 12px;
  font-weight: 700;
  color: #ffffff;          /* white — not purple */
}

.media-sub {
  padding: 0 12px 12px;
  color: var(--muted);     /* neutral blue-gray — no purple */
  font-size: 0.88rem;
}

/* ── Upload row (2nd + 3rd rows) ── */
.media-upload-card {
  border: 2px dashed rgba(79, 209, 255, 0.35);
  border-radius: 14px;
  background: rgba(79, 209, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
  position: relative;
  overflow: hidden;
}

.media-upload-card:hover {
  background: rgba(79, 209, 255, 0.09);
  border-color: rgba(79, 209, 255, 0.6);
}

.media-upload-card input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.media-upload-card .upload-icon {
  font-size: 2rem;
  color: var(--bg-cyan);
  pointer-events: none;
}

.media-upload-card .upload-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  text-align: center;
  padding: 0 12px;
}

.media-upload-card .upload-types {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}

/* Filled upload card (after file chosen) */
.media-upload-card.has-file {
  border-style: solid;
  border-color: rgba(79, 209, 255, 0.4);
  background: rgba(15, 23, 42, 0.82);
}

.media-upload-card.has-file img,
.media-upload-card.has-file video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-upload-card.has-file .upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 32, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.media-upload-card.has-file:hover .upload-overlay {
  opacity: 1;
}

/* ─── Filter Chips ───────────────────────────── */
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;          /* white text — not purple */
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 120ms ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
}

.chip.is-active {
  background: var(--bg-cyan);
  border-color: var(--bg-cyan);
  color: #000000;          /* black on cyan — maximum contrast */
}

/* ─── Lightbox ───────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.lightbox.is-open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-dialog {
  position: relative;
  width: min(980px, calc(100% - 2rem));
  margin: 5vh auto;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
  transition: background 120ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-content {
  background: #060a14;
  display: grid;
  place-items: center;
  max-height: 70vh;
}

.lightbox-content img,
.lightbox-content video {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
}

/* PDF embed in lightbox */
.lightbox-content iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  font-weight: 800;
  color: #ffffff;          /* white — not purple */
}

.lightbox-desc {
  margin-top: 4px;
  color: var(--muted);
}

.link {
  color: var(--bg-cyan);   /* cyan link — not purple */
  text-decoration: none;
  font-weight: 700;
}

.link:hover {
  text-decoration: underline;
}

/* ─── Demo / Info cards ──────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  padding: 14px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #ffffff;          /* white heading */
}

.info-card p,
.info-card li {
  color: var(--text);
}

/* ─── Embed wrapper ──────────────────────────── */
.embed-wrap {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
}

.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.88);
}

.embed-title {
  font-weight: 800;
  color: #ffffff;          /* white — not purple */
}

.embed-frame {
  width: 100%;
  height: 860px;
  border: 0;
  display: block;
}

.steps, .bullets {
  margin: 0;
  padding-left: 18px;
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-gray);
  transition: all 140ms ease;
  user-select: none;
}

.btn-primary {
  background-color: var(--bg-cyan);
  color: #000000;          /* black on cyan — high contrast */
  border-color: var(--bg-cyan);
}

.btn-primary:hover {
  background-color: #38bfef;
  border-color: #38bfef;
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Focus (Accessibility) ──────────────────── */
.btn:focus,
.icon-btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--bg-cyan);
  outline-offset: 2px;
}

/* ─── Icon Buttons ───────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: all 140ms ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.icon svg {
  fill: currentColor;
}

/* ─── Form Fields ────────────────────────────── */
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--bg-cyan);
}

/* ─── Panel ──────────────────────────────────── */
.panel {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .media-grid  { grid-template-columns: repeat(2, 1fr); }
  .info-grid   { grid-template-columns: 1fr; }
  .embed-frame { height: 980px; }
}

@media (max-width: 560px) {
  .media-grid  { grid-template-columns: 1fr; }
}
