:root {
  --ink: #101114;
  --muted: #687080;
  --line: #e7e8eb;
  --surface: #ffffff;
  --soft: #f6f7f9;
  --gold: #ffb300;
  --gold-dark: #c57b00;
  --green: #0f9f61;
  --blue: #2867d9;
  --shadow: 0 18px 50px rgba(18, 22, 31, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  min-width: 0;
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(100% - 40px, var(--container));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #16120a;
  background: var(--gold);
  border-radius: 8px;
  font-weight: 950;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(360px, 1.32fr);
  align-items: center;
  gap: clamp(30px, 6vw, 78px);
}

.hero-copy {
  max-width: 580px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text,
.section-head p,
.split-section p,
.doc-panel p,
.feature-card p,
.role-card p,
.requirement-list p,
.tech-card span,
.muted {
  color: var(--muted);
}

.hero-text {
  margin: 22px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 850;
  border: 1px solid var(--line);
}

.button.primary {
  color: #16120a;
  background: var(--gold);
  border-color: var(--gold);
}

.button.secondary {
  background: #fff;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.tech-strip li {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-frame {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.preview-frame img {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
}

.overview,
.roles,
.requirements {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: 30px;
  align-items: start;
}

.hero-grid > *,
.split-section > * {
  min-width: 0;
}

.overview-card,
.doc-panel,
.requirement-list > div,
.feature-card,
.role-card,
.tech-card,
.shot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.overview-card {
  padding: 24px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

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

.role-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.role-card {
  min-height: 166px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.role-card:hover,
.tech-card:hover,
.shot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 0, 0.62);
  box-shadow: 0 18px 46px rgba(18, 22, 31, 0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: #16120a;
  background: var(--gold);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.role-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.screenshot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 22px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: #16120a;
  border-color: var(--gold);
  background: var(--gold);
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  display: flex;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  cursor: zoom-in;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.shot-card[hidden] {
  display: none;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.shot-card .shot-category {
  display: block;
  padding: 14px 16px 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.shot-card strong {
  display: block;
  padding: 6px 16px 0;
  font-size: 18px;
  line-height: 1.2;
}

.shot-card small {
  display: block;
  padding: 8px 16px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tech-card {
  min-height: 122px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tech-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.requirement-list {
  display: grid;
  gap: 14px;
}

.requirement-list > div,
.doc-panel {
  padding: 22px;
}

.doc-panel {
  max-width: 920px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(7, 18, 38, 0.86);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  width: min(1120px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}

.lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
  font-weight: 850;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-section,
  .feature-grid,
  .role-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-wrap {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 66px 0;
  }

  h1 {
    font-size: 58px;
  }

  .screenshot-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .shot-card {
    min-width: 86%;
    scroll-snap-align: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .preview-frame {
    padding: 8px;
    border-radius: 20px;
  }

  .preview-frame img {
    border-radius: 14px;
  }

  .feature-card,
  .role-card,
  .tech-card,
  .requirement-list > div,
  .overview-card,
  .doc-panel {
    padding: 18px;
  }
}
