/* ============================================================
   projects.css — Shared stylesheet for all project pages
   Light theme · Alexis Campos portfolio
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg: #e9eef5;
  --page: #ffffff;
  --primary: #123b7a;
  --primary-dark: #0d2e60;
  --text: #182231;
  --muted: #5e6b7c;
  --line: #d8e0ea;
  --soft: #f5f8fc;
  --chip: #edf3ff;
  --success: #1f8f56;
  --shadow: 0 18px 50px rgba(18,59,122,.10);
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Base ---- */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
  line-height: 1.6;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */

/* White-card page wrapper (camping-mqtt, can, hyper-v) */
.page {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--page);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18,59,122,.05);
}

/* Plain max-width wrapper — sections are their own cards */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Accent topbar (inside .page) ---- */
.topbar {
  height: 8px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 18px;
  transition: .18s ease;
}

.back-link:hover {
  background: #f7faff;
  border-color: #bfd0ea;
  transform: translateY(-1px);
}

/* Top actions bar (used in wrap pages) */
.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  transition: .18s ease;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--primary-dark);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18,59,122,.10);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(18,59,122,.16);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: var(--soft);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: #eef5ff; }

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* Hero inside .page (no border-radius — clipped by parent) */
.page .hero {
  padding: 34px 34px 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(18,59,122,.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  position: relative;
}

/* Hero as standalone card (inside .wrap) */
.wrap .hero {
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 38px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at top right, rgba(18,59,122,.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  position: relative;
  overflow: hidden;
}

/* When hero has a topbar strip, remove outer padding (handled by .hero-body) */
.wrap .hero:has(> .hero-topbar) {
  padding: 0;
  background: var(--page);
}

/* Hero topbar strip (ir-game style) */
.hero-topbar {
  height: 10px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

/* Hero body (ir-game layout) */
.hero-body {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  padding: 28px;
  align-items: center;
}

/* Hero grid (2-column layout) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

/* Hero top row (hyper-v back + badges row) */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* ---- Hero typography ---- */
.hero h1, h1 {
  font-size: 42px;
  line-height: 1;
  color: var(--primary-dark);
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.hero-text {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 700px;
}

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-block;
  background: var(--chip);
  color: var(--primary-dark);
  border: 1px solid #cddaf0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}

/* ---- Badge (category pill) ---- */
.badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* Badges container (soft tag list) */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badges .badge {
  background: var(--chip);
  color: var(--primary-dark);
  border: 1px solid #cddaf0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  margin-bottom: 0;
  letter-spacing: normal;
  text-transform: none;
}

/* Hero badge (licences floating label) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid #cddaf0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-dark);
}

/* Hero badges row (hyper-v) */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  margin-bottom: 0;
  letter-spacing: normal;
  text-transform: none;
}

.hero-badges .badge.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* Tags (ir-game) */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* ---- Hero side cards ---- */
.hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Hero card (camping-mqtt right side summary) */
.hero-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.hero-card h2, .hero-card h3 {
  font-size: 13px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 14px;
}

/* Hero stats (ir-game) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 95px;
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* Hero side cards (licences) */
.hero-side-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}

.hero-side-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--primary-dark);
  opacity: .82;
  margin-bottom: 4px;
}

.hero-side-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- Mini cards ---- */
.mini-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.mini-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.mini-card p {
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--muted);
}

/* Mini-label / mini-value (skybot / bot-discord) */
.mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 8px;
}

.mini-value {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

/* Mini list (camping-mqtt / can) */
.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.mini-item strong {
  display: block;
  font-size: 12px;
  color: var(--primary-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mini-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Hero image (can) */
.hero-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(18,59,122,.06);
}

.hero-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */

.content {
  padding: 28px 34px 34px;
  display: grid;
  gap: 22px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

/* Standalone section card (ir-game, wrap pages) */
.section {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

/* Section inside .content = plain layout container, not a card */
.content .section {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  display: grid;
  gap: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* Inside .content .section, the grid gap handles spacing */
.content .section > .section-title {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.section h2, .section > h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: .3px;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
}

/* Notice block (licences) */
.notice {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(18,59,122,.04);
}

/* When .card directly wraps a .card-body, remove outer padding */
.card:has(> .card-body) {
  padding: 0;
}

.card-body { padding: 24px; }

.card-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 14px;
}

.title {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* Inline text highlight */
span.highlight {
  color: var(--text);
  font-weight: 700;
}

/* Block highlight box (ir-game) */
div.highlight {
  background: linear-gradient(180deg, #f7fbff 0%, #eff5fe 100%);
  border: 1px solid #d8e4f4;
  border-radius: 18px;
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

div.highlight strong {
  color: var(--primary-dark);
}

.muted { color: var(--muted); }

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--soft);
}

/* Quote box (licences) */
.quote-box {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.quote-box p {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.65;
}

/* ============================================================
   GRID SYSTEMS
   ============================================================ */

/* 12-column CSS grid (skybot / bot-discord) */
.grid {
  display: grid;
  gap: 18px;
}

/* Only plain .grid (not .grid-2/.grid-3) = 12-column layout */
.grid:not(.grid-2):not(.grid-3) {
  grid-template-columns: repeat(12, 1fr);
}

.grid:not(.grid-2):not(.grid-3) > .card { grid-column: span 12; }

.cols-4  { grid-column: span 4; }
.cols-5  { grid-column: span 5; }
.cols-6  { grid-column: span 6; }
.cols-7  { grid-column: span 7; }
.cols-8  { grid-column: span 8; }
.cols-12 { grid-column: span 12; }

/* 2/3-column simple grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Licences page grid combos */
.grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Split (licences) */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

/* Mini grid (hyper-v) */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ============================================================
   STEPS
   ============================================================ */

.steps {
  display: grid;
  gap: 12px;
}

/* Default step (camping-mqtt style — vertical, inside .content) */
.step {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 18px;
  padding: 18px;
}

/* 4-column steps grid inside .content */
.content .steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Step number (round, camping-mqtt) */
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

/* Step num (square, skybot / bot-discord) */
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  flex-shrink: 0;
}

/* Horizontal step layout when .step-num is present */
.step:has(.step-num) {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.step h3 {
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================
   CHIPS & PILLS
   ============================================================ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--chip);
  color: var(--primary-dark);
  border: 1px solid #cddaf0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Pills (licences) */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--chip);
  border: 1px solid #cddaf0;
}

/* ============================================================
   LISTS
   ============================================================ */

.list {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.list li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.list li::marker { color: var(--primary); }

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.feature-list strong { color: var(--text); }

/* ============================================================
   GALLERIES
   ============================================================ */

/* 5-column gallery (camping-mqtt) */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(18,59,122,.04);
}

.gallery-card .img-wrap {
  height: 160px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-card .caption {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.gallery-card h4 {
  font-size: 13px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.gallery-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* 3-column shot gallery (licences / bot-discord) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

/* Bot-discord gallery uses .gallery class with 3 cols */
.grid .gallery {
  grid-template-columns: repeat(3, 1fr);
}

.shot {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18,59,122,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: #bfd0ea;
  box-shadow: 0 18px 40px rgba(18,59,122,.12);
}

.shot-btn {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  padding: 0;
}

.shot-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}

.shot:hover img { transform: scale(1.02); }

.shot-zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(13,46,96,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-4px);
  transition: .18s ease;
  pointer-events: none;
}

.shot:hover .shot-zoom { opacity: 1; transform: translateY(0); }

.shot .caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.shot-body { padding: 14px 16px; }
.shot-title { font-size: 14px; font-weight: 900; color: var(--primary-dark); margin-bottom: 6px; }
.shot-text { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   PAGE-SPECIFIC COMPONENTS
   ============================================================ */

/* ---- Architecture (camping-mqtt) ---- */
.architecture {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.arch-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arch-card::after {
  content: "";
  position: absolute;
  inset: auto -8px 50% auto;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: translateY(50%);
}

.arch-card:last-child::after { display: none; }

.arch-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.arch-card h3 { font-size: 13px; color: var(--primary-dark); margin-bottom: 8px; }
.arch-card p  { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ---- Task pro grid (can) ---- */
.tpro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tpro-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 18px;
}

.tpro-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tpro-num {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.tpro-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
}

.tpro-card p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* Stage list (can) */
.stage-list { display: grid; gap: 14px; }

.stage-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  padding: 16px 18px;
}

.stage-item h3 { font-size: 14px; color: var(--primary-dark); margin-bottom: 8px; }
.stage-item p  { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Result cards (can / licences) */
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.result-card h3 { font-size: 14px; color: var(--primary-dark); margin-bottom: 10px; }
.result-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; }
.result-card .value { font-size: 24px; font-weight: 900; color: var(--primary-dark); margin-bottom: 6px; }
.result-card .label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Result grid (licences) */
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

/* Grid 3 (can / result) */
.grid-3 .result-card { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }

/* ---- Media grid (can / ir-game) ---- */
.media-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

.media-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(18,59,122,.04);
}

.media-box .media-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
}

.media-box .media-body { padding: 14px; }

.media-box img,
.media-box video {
  width: 100%;
  display: block;
  background: #f0f4fb;
}

.media-caption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---- Role grid (ir-game) ---- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.role-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--primary-dark);
  font-size: 20px;
  margin-bottom: 12px;
  border: 1px solid #d3def1;
}

.role-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--text); }
.role-card p  { font-size: 14px; color: var(--muted); }

/* Tech grid (licences / ir-game) */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.tech-item {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
}

.tech-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
  border-radius: 16px;
  padding: 15px;
}

.tech-card h3 { font-size: 14px; color: var(--primary-dark); margin-bottom: 8px; }
.tech-card p  { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---- Table-like rows (skybot / bot-discord) ---- */
.table-like { display: grid; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.row strong { color: var(--text); font-size: 14px; }
.row span   { color: var(--muted); font-size: 14px; }

/* Two-column text (skybot) */
.two-col-text {
  columns: 2;
  column-gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.two-col-text p { margin-bottom: 14px; }

/* Placeholder (skybot) */
.ph {
  min-height: 210px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Infra grid (hyper-v) ---- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.infra-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px;
  background: #fff;
}

.infra-box.windows  { background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%); }
.infra-box.linux    { background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%); }
.infra-box.network  { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.infra-box.security { background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%); }

.infra-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.infra-box h3 { font-size: 14px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.infra-box p  { font-size: 12.8px; line-height: 1.6; color: var(--muted); }

/* Diagram (hyper-v) */
.diagram-card {
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(18,59,122,.05), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
}

.diagram-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
}

svg { display: block; width: 100%; min-width: 980px; height: auto; }

/* Legend (hyper-v) */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
}

.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-network  { background: #2f6ec9; }
.dot-windows  { background: #1f8f56; }
.dot-linux    { background: #8d5bd1; }
.dot-security { background: #d4891d; }

/* List grid / card (hyper-v) */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.list-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.list-card h3 { font-size: 14px; font-weight: 900; color: var(--primary-dark); margin-bottom: 10px; }

/* Footer (hyper-v) */
.footer {
  margin-top: 20px;
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-text { font-size: 13px; color: var(--muted); line-height: 1.6; }

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(18,59,122,.16);
}

.footer-btn:hover { transform: translateY(-1px); }

/* ---- Timeline (licences) ---- */
.timeline { display: grid; gap: 12px; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(18,59,122,.12));
}

.timeline-item { position: relative; padding-left: 36px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px #eef4fb;
}

.timeline-item h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.timeline-item p  { font-size: 14px; color: var(--muted); }

/* ---- Flow grid (licences) ---- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.flow-step {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.flow-step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #3d8dff);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.flow-step h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; }
.flow-step p  { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(13,46,96,.70);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .2s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 80px rgba(18,59,122,.20);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: var(--soft);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.modal-close:hover { background: #eef5ff; }

.modal-media {
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 260px;
}

.modal-media img {
  max-width: 100%;
  max-height: 72vh;
  display: block;
  border-radius: 18px;
}

.modal-caption {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.modal-title {
  color: var(--text);
  font-weight: 900;
  margin-bottom: 6px;
  font-size: 15px;
}

/* ============================================================
   FOOTER COMPONENTS
   ============================================================ */

.footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
}

footer {
  margin-top: 22px;
  padding: 20px 8px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer strong { color: var(--primary-dark); }

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .hero-grid,
  .hero-body,
  .architecture,
  .gallery,
  .gallery-grid,
  .grid-2,
  .grid-3,
  .split,
  .tpro-grid,
  .flow-grid,
  .tech-grid,
  .result-grid,
  .role-grid,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .infra-grid,
  .list-grid,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content .steps { grid-template-columns: 1fr 1fr; }

  .cols-4, .cols-5, .cols-6, .cols-7, .cols-8 { grid-column: span 12; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding: 12px; }

  .page .hero,
  .wrap .hero { padding: 20px; }

  .hero-body { padding: 20px; }
  .content { padding: 20px; }

  .hero h1, h1 { font-size: 30px; }

  .hero-grid,
  .hero-body,
  .architecture,
  .gallery,
  .gallery-grid,
  .grid-2,
  .grid-3,
  .split,
  .tpro-grid,
  .flow-grid,
  .tech-grid,
  .result-grid,
  .role-grid,
  .media-grid,
  .infra-grid,
  .list-grid,
  .mini-grid,
  .row,
  .two-col-text {
    grid-template-columns: 1fr;
    columns: 1;
  }

  .arch-card::after { display: none; }

  .content .steps { grid-template-columns: 1fr; }

  .top-actions { flex-direction: column; }
  .btn { width: 100%; }

  .modal { padding: 12px; }
  .modal-dialog { border-radius: 18px; }
  .modal-close { top: 10px; right: 10px; width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
}
