/* ============== GLOBAL RESET ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0d0f12; /* pure dark modern */
  color: #e5e7eb;      /* clean light grey */
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

/* ============== LAYOUT HELPERS ============== */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

/* ============== HEADER ============== */
.site-header {
  background: #13161a; /* slightly lighter than body */
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid #1f242a;
  color: #f9fafb;
}

.header-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.9rem);
}

.subtitle {
  margin: 0;
  opacity: 0.9;
}

.tagline {
  margin-top: 0.6rem;
  max-width: 34rem;
  opacity: 0.8;
}

.header-badge {
  padding: 1rem 1.4rem;
  background: #1b1f24;
  border: 1px solid #2a3038;
  border-radius: 14px;
  text-align: center;
}

.header-badge span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-badge p {
  margin: 0.35rem 0 0;
  opacity: 0.9;
}

/* ============== BUTTON ============== */
.primary-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #14b8a6; /* TEAL ACCENT */
  color: #0f1113;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.primary-btn:hover {
  background: #2dd4bf;
  transform: translateY(-2px);
}

/* ============== LAB GRID ============== */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.lab-card {
  padding: 1rem 1.2rem;
  background: #161a1f;
  border: 1px solid #242a30;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.lab-card:hover {
  border-color: #14b8a6;
  background: #1a1f25;
  transform: translateY(-3px);
}

.lab-number {
  color: #14b8a6;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.lab-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.07rem;
}

.lab-tag {
  margin: 0;
  color: #9ca3af;
  font-size: 0.86rem;
}

/* ============== LAB SECTIONS ============== */
.lab-section {
  background: #161a1f;
  border-radius: 18px;
  border: 1px solid #242a30;
  margin: 1.6rem auto;
  padding: 2.3rem 1.6rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}

.lab-label {
  color: #14b8a6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

.lab-tools {
  color: #9ca3af;
  margin-top: -2px;
  font-size: 0.9rem;
}

.lab-learned {
  margin-top: 0.9rem;
  color: #d1d5db;
}

/* PREVIEW BOX */
.preview-placeholder {
  border: 1px dashed #2d3239;
  background: #1b1f24;
  padding: 1rem;
  margin-top: 1.3rem;
  border-radius: 14px;
  color: #cbd5e1;
}

/* MULTI-IMAGE GRID */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: #94a3b8;
  border-top: 1px solid #1f242a;
}

.footer-content {
  padding-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-section {
    padding-inline: 1.25rem;
  }
}