:root {
  --bg: #07090f;
  --bg2: #0e1525;
  --card: #111b31;
  --text: #eff6ff;
  --muted: #9eb3d1;
  --line: #22314f;
  --a: #22d3ee;      /* blue-green (blue-dominant teal) */
  --b: #8b5cf6;      /* purple */
  --c: #34d399;
}

[data-theme="light"] {
  --bg: #eef4ff;
  --bg2: #dfe9ff;
  --card: #ffffff;
  --text: #0b1630;
  --muted: #40506e;
  --line: #c7d5f0;
  --a: #0891b2;
  --b: #6d28d9;
  --c: #059669;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at -10% -10%, #1d4ed855, transparent),
    radial-gradient(800px 400px at 110% -10%, #7c3aed44, transparent),
    linear-gradient(180deg, #07090f, #0a1020 45%, #070a12);
}

[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at -10% -10%, #93c5fd66, transparent),
    radial-gradient(800px 400px at 110% -10%, #c4b5fd66, transparent),
    linear-gradient(180deg, #f6f9ff, #ecf2ff 45%, #e6eeff);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 3px 3px;
}

[data-theme="light"] .noise {
  opacity: .03;
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #060b16f0 0%, #060b16d8 100%);
  backdrop-filter: blur(12px);
  padding: 0 24px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

[data-theme="light"] .nav { background: linear-gradient(180deg, #fffffffa 0%, #ffffffd9 100%); border-bottom-color: rgba(139, 92, 246, 0.15); }

.brand {
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand:hover .brand-glow { opacity: 1; transform: scale(1); }
.brand-glow {
  position: absolute;
  width: 100px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.3) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: -1;
}

.brand img { height: 64px; width: auto; transition: transform 0.3s ease; }
.brand:hover img { transform: scale(1.05); }

.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: all 0.25s ease;
  opacity: 0.85;
}

.nav nav a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.nav nav a:hover {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav nav a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav nav a.active {
  opacity: 1;
  color: #22d3ee;
}

.nav nav a.active::before {
  transform: translateX(-50%) scaleX(1);
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.theme-toggle {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  transform: rotate(15deg);
}

.nav-play {
  opacity: 1 !important;
  animation: nav-pulse 2s ease-in-out infinite;
}

.nav-play::before {
  background: linear-gradient(90deg, #22d3ee, #8b5cf6) !important;
}

@keyframes nav-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(34, 211, 238, 0.4); }
}

.nav-play:hover {
  animation: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 52px; }
  .brand img { height: 48px; }
  .nav nav a { padding: 8px 10px; font-size: 13px; }
  .brand-glow { display: none; }
}

.wrap { 
  max-width: 1160px; 
  margin: 0 auto; 
  padding: 24px 16px;
  min-height: calc(100vh - 160px);
}
.section { padding: 48px 0; }

.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.card {
  background: linear-gradient(180deg, #111b31, #0c1427);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px #00000057;
}

[data-theme="light"] .card {
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  box-shadow: 0 8px 22px #6b7da61f;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #030712;
}

.btn.alt {
  background: transparent;
  border: 1px solid #3a4c70;
  color: #cde0ff;
}

/* ────────────────────────────────────────────────
   Form inputs — blend with dark theme
───────────────────────────────────────────────── */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

input:not([type="hidden"]),
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239eb3d1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select option {
  background: var(--card);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

[data-theme="light"] input:not([type="hidden"]),
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.8);
  border-color: #c7d5f0;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* ────────────────────────────────────────────────
   Gradient text for "Wit" + upgraded kicker
───────────────────────────────────────────────── */

.gradient {
  background: linear-gradient(90deg, var(--a), var(--b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(167,139,250,0.08));
  border: 1px solid rgba(167,139,250,0.18);
  color: var(--muted);
  margin-bottom: 1.1rem;
  backdrop-filter: blur(4px);
}

/* Optional: subtle shine / flow effect on hover */
.kicker:hover,
.gradient:hover {
  background: linear-gradient(90deg, var(--b), var(--a));
  background-size: 200% auto;
  animation: textShine 3s linear infinite;
}

@keyframes textShine {
  to   { background-position: 200% center; }
  from { background-position: 0%    center; }
}

/* ────────────────────────────────────────────────
   Project cards & images
───────────────────────────────────────────────── */

.project {
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  background: var(--card);
}

.project img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
  border-radius: 12px 12px 0 0;
  cursor: zoom-in;
  transition: transform 0.28s ease;
}

.project:hover img { transform: scale(1.04); }

.project > *:not(img) {
  padding: 0 18px 18px 18px;
}

@media (max-width: 860px) {
  .project img { max-height: 220px; }
}

/* ────────────────────────────────────────────────
   Shell / Terminal
───────────────────────────────────────────────── */

.shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.shell-output {
  background: rgba(255,255,255,.04);
  padding: 16px;
  min-height: 180px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.shell-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--line);
}

.shell-prompt {
  color: var(--a);
  font-weight: bold;
  user-select: none;
}

.shell-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.shell-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.shell-output .dir  { color: #60a5fa; font-weight: 600; }
.shell-output .file { color: #e0f2fe; }
.shell-output .error { color: #f87171; font-style: italic; }

[data-theme="dark"] .shell-prompt {
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

/* ────────────────────────────────────────────────
   Tabbed playground + unified inputs
───────────────────────────────────────────────── */

.tabbed { padding: 0; overflow: hidden; }

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.tab-btn:hover { background: rgba(255,255,255,.06); }

.tab-btn.active {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #020617;
}

.tab-panel { display: none; padding: 16px; }
.tab-panel.active { display: block; }

/* Unified playground input styling */
.playground-input,
#python-input,
#playground-input,
#html-input {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(20, 25, 40, 0.65);
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.playground-input:focus,
#python-input:focus,
#playground-input:focus,
#html-input:focus {
  outline: none;
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.playground-input::placeholder,
#python-input::placeholder,
#playground-input::placeholder,
#html-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* Run buttons */
#run-python,
#run-playground,
#run-html {
  padding: 10px 18px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

#run-python:hover,
#run-playground:hover,
#run-html:hover {
  opacity: 0.92;
}

/* Output areas */
.playground-output,
#python-output,
#playground-output,
#shell-output {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  min-height: 160px;
  overflow: auto;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

#html-preview {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

/* ────────────────────────────────────────────────
   Lightbox
───────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.lightbox[data-open="true"] { display: flex; }

.lightbox__content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.8);
  object-fit: contain;
  background: rgba(0,0,0,0.3);
}

.lightbox__caption {
  color: #aaa;
  font-size: 14px;
  text-align: center;
  max-width: 90vw;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(0,0,0,0.85); }

.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 38px; height: 38px; font-size: 20px;
  }
}

/* ────────────────────────────────────────────────
   Hero section — two column layout
───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero .card:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero .card:first-child .headline {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  line-height: 1.1;
}

.hero .card:first-child .muted {
  margin: 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tech-focus h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.tech-stack-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tech-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-cat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.7;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-pill {
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tech-pill:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--a);
}

.tech-philosophy {
  font-size: 0.85rem;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Tech stack sidebar */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-stack-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tech-stack-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.tech-stack-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.tech-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-tier-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 2px;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--a);
  transform: translateY(-1px);
}

.tech-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Primary tier items get gradient border on hover */
.tech-item.primary {
  border-color: rgba(34, 211, 238, 0.3);
}

.tech-item.primary:hover {
  border-color: var(--a);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}

/* ────────────────────────────────────────────────
   Playground "Play some more?" link
───────────────────────────────────────────────── */
.playground-footer {
  padding: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.lab-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
}

.lab-link:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12));
  border-color: var(--a);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.1);
}

.lab-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--a), var(--b));
  border-radius: 10px;
  flex-shrink: 0;
}

.lab-link-icon svg {
  width: 20px;
  height: 20px;
  color: #030712;
}

.lab-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-link-text strong {
  font-size: 1rem;
  font-weight: 600;
}

.lab-link-text small {
  font-size: 0.8rem;
  color: var(--muted);
}

.lab-link-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--a);
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.lab-link:hover .lab-link-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.lab-card.featured {
  grid-column: span 2;
}

.lab-card.featured .lab-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lab-card.featured .lab-card-visual {
  height: 200px;
  background: #07090f;
  position: relative;
}

.lab-card.featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(34, 211, 238, 0.15);
}

.game-preview-live {
  overflow: hidden;
}

.game-preview-live canvas {
  width: 100%;
  height: 100%;
}

.lab-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lab-badge.featured {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #030712;
  border: none;
}

.play-cta {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--a);
  transition: transform 0.2s;
}

.lab-card.featured:hover .play-cta {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .lab-card.featured {
    grid-column: span 1;
  }
}

.maze-preview {
  background: #07090f;
  overflow: hidden;
}

.maze-preview canvas {
  width: 100%;
  height: 100%;
}

/* ────────────────────────────────────────────────
   Play Lab page
───────────────────────────────────────────────── */
.lab-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.lab-header .kicker {
  margin-bottom: 12px;
}

.lab-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.lab-header .muted {
  font-size: 1.05rem;
  line-height: 1.6;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.lab-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lab-card-visual {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(139, 92, 246, 0.05));
  border-bottom: 1px solid var(--line);
}

.game-preview {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-icon svg {
  width: 36px;
  height: 36px;
  color: var(--a);
  opacity: 0.6;
}

.lab-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lab-card-content h3 {
  margin: 0;
  font-size: 1.1rem;
}

.lab-card-content .muted {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

.lab-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 4px;
}

.lab-cta {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lab-cta p {
  margin: 0 0 8px;
}

.lab-cta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ────────────────────────────────────────────────
   Media queries
───────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero, .project-hero { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .nav nav a { margin-left: 8px; font-size: 14px; }
}

/* ────────────────────────────────────────────────
   Playground footer
───────────────────────────────────────────────── */

.playground-footer {
  padding: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.play-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
}

.play-link:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12));
  border-color: var(--a);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.1);
}

.play-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--a);
  border-radius: 10px;
  flex-shrink: 0;
}

.play-link-icon svg {
  width: 18px;
  height: 18px;
  color: #0a0a0f;
}

.play-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.play-link-text strong {
  font-size: 1rem;
  font-weight: 600;
}

.play-link-text small {
  font-size: 0.85rem;
  color: var(--muted);
}

.play-link-arrow {
  font-size: 1.2rem;
  color: var(--a);
  transition: transform 0.2s ease;
}

.play-link:hover .play-link-arrow {
  transform: translateX(4px);
}