:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #10151c;
  --panel-strong: #151d26;
  --text: #f4f8fb;
  --muted: #a9b8c8;
  --soft: #d8e6ef;
  --line: rgba(255, 255, 255, .14);
  --cyan: #65dcff;
  --magenta: #ff5cd6;
  --green: #69e49b;
  --gold: #ffd166;
  --red: #ff7a7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-shell {
  overflow: clip;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(7, 9, 13, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #f6f8fb;
  color: #07090d;
  font-size: .82rem;
  font-weight: 900;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible,
.button:hover,
.button:focus-visible {
  color: var(--text);
  border-color: var(--line);
  outline: none;
}

.button.primary {
  color: #061014;
  background: var(--cyan);
  border-color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 116px clamp(18px, 5vw, 64px) 56px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .74) 38%, rgba(7, 9, 13, .2) 70%),
    linear-gradient(0deg, rgba(7, 9, 13, 1) 0%, rgba(7, 9, 13, .1) 28%),
    url("../assets/gallery/g3rog-dark/g3rog-dark-angled-chassis-2026-05-08.jpeg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 26px;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 104px;
  padding: 18px;
  background: rgba(10, 14, 20, .84);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.22rem;
}

.stat span {
  color: var(--muted);
  font-size: .86rem;
}

.section {
  padding: 74px clamp(18px, 5vw, 64px);
}

.section.alt {
  background: #0b0f15;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.section-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.machine-grid,
.spec-grid,
.timeline,
.gallery-grid {
  display: grid;
  gap: 14px;
}

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

.machine-card,
.spec-card,
.timeline-item,
.gallery-item {
  border: 1px solid var(--line);
  background: var(--panel);
}

.machine-card {
  min-height: 310px;
  display: grid;
  align-content: end;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.machine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(7, 9, 13, .98), rgba(7, 9, 13, .28));
}

.machine-card > * {
  position: relative;
  z-index: 1;
}

.machine-card.dark {
  background: url("../assets/gallery/g3rog-dark/g3rog-dark-side-panel-front-2026-05-08.jpeg") center / cover no-repeat;
}

.machine-card.actual {
  background: url("../assets/gallery/g3rog-actual_2026-04-16.jpeg") center / cover no-repeat;
}

.machine-card.pending {
  background: linear-gradient(135deg, #111821, #1c1520 55%, #251d10);
}

.status {
  width: max-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.machine-card h3,
.spec-card h3,
.timeline-item h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.machine-card p,
.spec-card p,
.timeline-item p {
  color: var(--muted);
}

.machine-card p:last-child,
.spec-card p:last-child,
.timeline-item p:last-child {
  margin-bottom: 0;
}

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

.spec-card {
  min-height: 176px;
  padding: 20px;
}

.spec-card.accent-cyan {
  border-top: 3px solid var(--cyan);
}

.spec-card.accent-magenta {
  border-top: 3px solid var(--magenta);
}

.spec-card.accent-green {
  border-top: 3px solid var(--green);
}

.spec-card.accent-gold {
  border-top: 3px solid var(--gold);
}

.gallery-grid {
  grid-template-columns: 1.2fr .8fr;
}

.gallery-item {
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: rgba(7, 9, 13, .76);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--soft);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.timeline-item {
  min-height: 190px;
  padding: 20px;
}

.timeline-date {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
}

.deep-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deep-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--soft);
  font-weight: 800;
}

.deep-link span {
  color: var(--cyan);
}

.footer {
  padding: 34px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #05070a;
}

@media (max-width: 980px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-stats,
  .machine-grid,
  .spec-grid,
  .timeline,
  .gallery-grid,
  .deep-links {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.large {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 820px;
    padding-top: 104px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(7, 9, 13, .98) 0%, rgba(7, 9, 13, .68) 54%, rgba(7, 9, 13, .28) 100%),
      url("../assets/gallery/g3rog-dark/g3rog-dark-angled-chassis-2026-05-08.jpeg") center / cover no-repeat;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-stats,
  .machine-grid,
  .spec-grid,
  .timeline,
  .gallery-grid,
  .deep-links {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .gallery-item {
    min-height: 270px;
  }
}
