* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f9;
  color: #1a1a2e;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a6b 60%, #2563eb 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(99, 179, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-title {
  flex: 1;
}

.header-title h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.header-title h1 span {
  color: #60a5fa;
}

.header-title .sub {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #bfdbfe;
  font-style: italic;
}

.header-meta {
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #bfdbfe;
}

.header-meta strong {
  color: white;
  display: block;
  font-size: 1rem;
}

/* ── LED colour bar ── */
.led-bar {
  height: 6px;
  background: linear-gradient(90deg,
      #ef4444 0%, #ef4444 25%,
      #eab308 25%, #eab308 50%,
      #3b82f6 50%, #3b82f6 75%,
      #22c55e 75%, #22c55e 100%);
}

/* ── Main layout ── */
main {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  border-bottom: 2px solid #e5e7eb;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e3a5f;
}

.card-body {
  padding: 18px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #374151;
}

/* ── Span full width ── */
.full {
  grid-column: 1 / -1;
}

/* ── Inleiding hero ── */
.intro-hero {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.intro-hero p {
  font-size: 1.0rem;
  line-height: 1.8;
  max-width: 820px;
}

.intro-hero h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #93c5fd;
}

/* ── Photo grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ── LED sides diagram ── */
.sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.side-chip {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.side-chip .range {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}

.red-chip {
  background: #fef2f2;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

.yellow-chip {
  background: #fefce8;
  color: #854d0e;
  border-left: 4px solid #eab308;
}

.blue-chip {
  background: #eff6ff;
  color: #1d4ed8;
  border-left: 4px solid #3b82f6;
}

.green-chip {
  background: #f0fdf4;
  color: #166534;
  border-left: 4px solid #22c55e;
}

/* ── Functions list ── */
.fn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fn-list li {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 7px 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #1e3a5f;
  border-left: 3px solid #2563eb;
}

.fn-list li span {
  font-family: 'Segoe UI', sans-serif;
  color: #6b7280;
  font-size: 0.78rem;
  display: block;
  margin-top: 1px;
}

/* ── Hardware list ── */
.hw-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hw-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}

.hw-list li::before {
  content: '⚙';
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Icon bg colours ── */
.bg-red {
  background: #fef2f2;
  color: #dc2626;
}

.bg-blue {
  background: #eff6ff;
  color: #2563eb;
}

.bg-green {
  background: #f0fdf4;
  color: #16a34a;
}

.bg-yellow {
  background: #fefce8;
  color: #d97706;
}

.bg-purple {
  background: #faf5ff;
  color: #7c3aed;
}

/* ── Future / Besluit highlight ── */
.highlight-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.7;
}

/* ── Planning table ── */
.planning-table-wrap {
  overflow-x: auto;
}

.planning-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.planning-table thead tr {
  background: #1e3a5f;
  color: white;
}

.planning-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.planning-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.planning-table tbody tr:hover {
  background: #eff6ff;
}

.planning-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status.done {
  background: #dcfce7;
  color: #166534;
}

.fase-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  white-space: nowrap;
}

/* ── Card stack (twee kaarten onder elkaar in één kolom) ── */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
}

.card-stack .card {
  flex: 1;
}

/* ── GitHub card ── */
.github-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a1a2e;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  align-self: flex-start;
}

.github-btn:hover {
  background: #2563eb;
}

.github-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Toekomst foto ── */
.toekomst-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 14px;
  font-style: italic;
}

.toekomst-wrap {
  display: flex;
  justify-content: center;
}

.toekomst-img {
  max-width: 100%;
  max-height: 380px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  main {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: 1;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-meta {
    text-align: left;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .sides-grid {
    grid-template-columns: 1fr;
  }
}