:root {
  --bg: #05070b;
  --panel: rgba(11, 17, 27, 0.84);
  --panel-strong: rgba(14, 22, 33, 0.95);
  --line: rgba(145, 170, 204, 0.17);
  --line-strong: rgba(145, 170, 204, 0.3);
  --text: #eef4ff;
  --muted: #93a1b6;
  --accent: #71e5ff;
  --accent-strong: #43cbff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 15% 18%, rgba(63, 147, 255, 0.15), transparent 26rem),
    radial-gradient(circle at 82% 12%, rgba(120, 90, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(46, 222, 255, 0.08), transparent 42rem),
    linear-gradient(180deg, #030508 0%, #070c13 38%, var(--bg) 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

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

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

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem 1.25rem 1.5rem;
}

.topbar,
.main,
.footer {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 0.9rem 0.72rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 22, 34, 0.96), rgba(10, 15, 24, 0.92)),
    radial-gradient(circle at top left, rgba(113, 229, 255, 0.08), transparent 18rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.topnav {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}

.topnav a,
.status-pill,
.mini-button,
.action-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.topnav a,
.status-pill {
  padding: 0.58rem 0.82rem;
  background: rgba(17, 24, 36, 0.8);
  white-space: nowrap;
}

.topnav a:hover,
.mini-button:hover {
  border-color: rgba(113, 229, 255, 0.42);
  background: rgba(16, 32, 46, 0.92);
  transform: translateY(-1px);
}

.status-pill {
  justify-self: end;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 24, 36, 0.8);
  cursor: pointer;
}

.main {
  flex: 1;
  padding-block: 1.25rem 3.5rem;
}

.hero {
  position: relative;
  min-height: clamp(31rem, 66vh, 48rem);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(2rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-backdrop,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 6, 10, 0.93) 0%, rgba(4, 8, 13, 0.72) 48%, rgba(4, 8, 13, 0.2) 100%),
    linear-gradient(0deg, rgba(3, 6, 10, 0.62), transparent 50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 100px rgba(2, 8, 15, 0.55);
  pointer-events: none;
}

.hero-copy {
  max-width: 47rem;
}

.eyebrow {
  margin: 0 0 0.72rem;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero-body {
  max-width: 36rem;
  color: #d8e5f7;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.action-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  font-weight: 750;
}

.action-button {
  min-width: 10.75rem;
  color: #021018;
  border-color: transparent;
  background: linear-gradient(135deg, #95f0ff 0%, var(--accent) 38%, var(--accent-strong) 100%);
  box-shadow: 0 10px 34px rgba(67, 203, 255, 0.28);
}

.action-button:hover {
  transform: translateY(-2px);
}

.mini-button {
  color: var(--text);
  background: rgba(15, 22, 34, 0.84);
  border-color: var(--line-strong);
}

.section {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
}

.section-note {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.plate-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.plate-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #080c12;
}

.plate-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.plate-card:hover .plate-card-image img {
  transform: scale(1.025);
}

.plate-card-copy {
  padding: 1.15rem 1.2rem 1.3rem;
}

.plate-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.035em;
}

.plate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.plate-page {
  position: relative;
  padding-top: 1.25rem;
}

.plate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  min-height: calc(100vh - 10rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.plate-media {
  display: grid;
  place-items: center;
  min-height: 42rem;
  padding: clamp(1rem, 2vw, 2rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(113, 229, 255, 0.08), transparent 32rem),
    #05080d;
}

.plate-image {
  width: 100%;
  height: min(76vh, 64rem);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.plate-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 4.5rem);
}

.back-link {
  align-self: flex-start;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--accent);
}

.plate-title {
  margin: 2rem 0 0.8rem;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.description {
  max-width: 38rem;
  color: #cdd8e8;
  font-size: 1.13rem;
  line-height: 1.7;
}

.attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
}

.detail-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-badge,
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 24, 36, 0.78);
}

.code-badge {
  margin-left: 0.45rem;
  padding: 0.18rem 0.45rem;
  color: var(--accent);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.72rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-block: 1.2rem;
}

.tag {
  padding: 0.4rem 0.65rem;
  color: #cbd8e9;
  font-size: 0.78rem;
}

.technical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.technical div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 12, 19, 0.55);
}

.technical strong {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.82rem;
}

.plate-copy .action-row {
  margin-top: auto;
  padding-top: 2rem;
}

.footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0.3rem 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer p {
  margin: 0;
}

.footer a:hover {
  color: var(--accent);
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(3rem, 8vw, 6rem);
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .status-pill {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .topnav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    display: none;
    flex-direction: column;
    width: min(18rem, calc(100vw - 2.5rem));
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 15, 24, 0.98);
    box-shadow: var(--shadow);
  }

  .topnav[data-open="true"] {
    display: flex;
  }

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

  .plate-hero {
    grid-template-columns: 1fr;
  }

  .plate-media {
    min-height: auto;
  }

  .plate-image {
    height: auto;
    max-height: 76vh;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: 35rem;
    padding: 2rem 1.4rem;
  }

  .hero-scrim {
    background: rgba(3, 6, 10, 0.7);
  }

  .hero h1 {
    font-size: clamp(3.6rem, 21vw, 5.5rem);
  }

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

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

  .plate-copy {
    padding: 1.5rem;
  }

  .plate-title {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

