:root {
  --accent: #60a5fa;
  --accent-dim: #2563eb;
  --s-bg: #0d1b2a;
  --s-surface: rgba(26, 58, 92, 0.35);
  --s-border: #1e3a5f;
  --s-text: #e2e8f0;
  --s-muted: #94a3b8;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --b-light: #e5e7eb;
  --radius: 8px;
  --max-w: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  background: var(--s-bg);
  border-bottom: 1px solid var(--s-border);
  padding: 72px 2rem 54px;
}

.hero-inner {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0.45rem;
  color: var(--s-text);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

h2 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.hero-copy p {
  max-width: 560px;
  margin-bottom: 1.4rem;
  color: var(--s-muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-actions span,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--s-border);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  background: var(--s-surface);
  color: var(--s-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.hero-actions a {
  color: var(--accent);
  border-color: rgba(96, 165, 250, 0.45);
}

.hero-actions a:hover {
  background: rgba(96, 165, 250, 0.16);
}

.hero-shot {
  margin-bottom: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.hero-shot img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: left top;
}

.tabs-band {
  background: var(--light-bg);
  padding: 48px 2rem 70px;
}

.tabs-shell {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2rem;
  border: 1px solid var(--b-light);
  border-radius: 999px;
  padding: 4px;
  background: var(--white);
}

.tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.tabs button:hover,
.tabs button.active {
  background: #eff6ff;
  color: var(--accent-dim);
}

.tab-content {
  display: none;
  min-height: 360px;
  animation: riseIn 240ms ease both;
}

.tab-content.active {
  display: block;
}

.tab-grid,
.stack-layout,
.process-layout,
.results-layout,
.contribution-layout {
  display: grid;
  gap: 1.6rem;
}

.tab-grid,
.stack-layout,
.contribution-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: start;
}

.process-layout,
.results-layout {
  grid-template-columns: 1fr;
}

.section-copy {
  max-width: 620px;
}

.section-copy.narrow {
  max-width: 660px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.metric,
.overview-panel,
.image-card,
.feature-card,
.screen-card,
.academic-card {
  border: 1px solid var(--b-light);
  border-radius: var(--radius);
  background: var(--white);
}

.metric {
  min-height: 86px;
  padding: 0.85rem 1rem;
}

.metric strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.metric span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.overview-panel,
.image-card,
.feature-card,
.academic-card {
  padding: 1rem;
}

.overview-panel img,
.image-card img,
.screen-card img {
  width: 100%;
  border: 1px solid var(--b-light);
  border-radius: 6px;
  background: var(--white);
}

.overview-panel img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: left top;
}

.caption,
.image-card p,
.feature-card p,
.academic-card p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.process-grid,
.screen-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-card img {
  height: 158px;
  margin-bottom: 0.85rem;
  object-fit: cover;
  object-position: left top;
}

.image-card.wide img {
  object-position: left top;
}

.feature-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  min-height: 152px;
  padding: 1rem;
}

.issue-number {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-card {
  margin-bottom: 0;
  overflow: hidden;
}

.screen-card img {
  height: 220px;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: left top;
}

.screen-card figcaption {
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.academic-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.logo-frame {
  display: grid;
  min-height: 110px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--s-bg);
  padding: 1rem;
}

.logo-frame img {
  width: 100%;
  max-height: 72px;
}

.course-line {
  color: var(--text);
  font-weight: 500;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 56px 1.25rem 42px;
  }

  .hero-inner,
  .tab-grid,
  .stack-layout,
  .contribution-layout,
  .process-grid,
  .screen-grid,
  .feature-grid,
  .academic-card {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    display: none;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .tabs-band {
    padding: 40px 1.25rem 56px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .tabs {
    width: 100%;
  }
}
