/* Hyperion Engine site. Black theme, system sans, no framework. */

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --border: #1e1e1e;
  --text: #e8e8e8;
  --muted: #a1a1a1;
  --accent: #7aa2ff;
  --max: 880px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.92);
  /* border-bottom: 1px solid var(--border); */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 8px; }

.breadcrumbs { padding-top: 28px; }

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.nav a.button-small {
  color: #000;
  background: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}

.nav a.button-small:hover { color: #000; border-color: #666; }

/* Hero */

.hero { padding: 64px 20px 8px; }

.hero-centered {
  text-align: center;
  padding: 28px 20px 72px;
  background: #000;
}

.hero-centered .wrap-wide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  min-height: 600px;
  padding: 170px 24px 140px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 75% 85% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.84)),
    url("assets/lightmap-editor.webp") center 35% / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 56px, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 56px, #000 100%);
  mask-composite: intersect;
}

.hero-centered h1 {
  text-transform:lowercase;
  font-size:52px;
  letter-spacing:0.02em;
  margin-bottom: 20px;
}

.hero-centered .lede {
  text-transform:lowercase;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  margin-bottom: 36px;
}

.hero-centered .actions {
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-centered .proof {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
}

.hero-centered .button {
  padding: 12px 28px;
  font-size: 15px;
}

.kicker {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.button:hover { border-color: #666; }

/* Sections */

.section {
  padding: 96px 20px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 30px;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform:lowercase;
}

.section h3 {
  font-size: 15px;
  margin: 0 0 4px;
  font-weight: 600;
  text-transform:lowercase;
}

.section p { margin: 0 0 16px; max-width: 700px; }
.section p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); font-size: 14px; }

.wrap-wide { max-width: 1120px; }

/* Full-bleed band behind one section */

.band {
  background: #060606;
  border-bottom: 1px solid var(--border);
}

.band + .section { border-top: none; }

/* Split layout (Editor) */

.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.split h2 { margin: 0; font-size: 24px; }

.split p { font-size: 19px; max-width: 560px; }

/* Numbered steps (Building) */

.steps {
  list-style: none;
  margin: 8px 0 24px;
  padding: 0;
  display: grid;
  gap: 36px;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  counter-increment: step;
}

.steps > li::before {
  content: "0" counter(step);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--muted);
  padding-top: 3px;
}

.steps h3 { font-size: 17px; margin: 0 0 6px; }

.steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }

.steps .code-grid { margin: 16px 0 0; }

/* Callout panel (License) */

.callout {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 36px;
}

.callout h2 { font-size: 24px; margin-bottom: 12px; }

.callout p { color: var(--muted); font-size: 15px; }

/* Closing call to action */

.cta {
  text-align: center;
  padding: 110px 20px;
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-transform:lowercase;
}

.cta p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
}

.cta .actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Intro (About) — editorial lead, no divider */

.section-intro { border-top: none; }

#about { padding-top: 0px; }

.section-intro p {
  font-size: 21px;
  line-height: 1.65;
  max-width: 680px;
}

.section-intro p + p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Features */

.feature-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin: 0;
}

.feature-list h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-list p + p { margin-top: 10px; }

/* Media */

figure { margin: 0; }

.hero-figure img,
.media-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #050505;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.hero-figure { margin: 0 0 24px; }

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 8px 0 32px;
}

/* Click-to-enlarge */

.media-grid a.zoom {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Specs */

.specs { margin: 0; }

.specs div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.specs dt {
  color: var(--muted);
  font-size: 14px;
}

.specs dd { margin: 0; font-size: 14px; }

/* Table */

.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 12px;
}

.platform-table th,
.platform-table td {
  text-align: left;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid var(--border);
}

.platform-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.platform-table td:first-child { font-weight: 600; }

.platform-table td:last-child,
.platform-table th:last-child { text-align: right; color: var(--muted); }

.platform-table tbody tr:last-child td { border-bottom: none; }

/* Code */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}

pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner a { color: var(--muted); }

.footer-inner nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--text); }

a { color: var(--accent); }

/* Small screens */

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .hero-centered { padding: 16px 12px 40px; }
  .hero-centered .wrap-wide {
    min-height: 0;
    padding: 120px 20px 96px;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 36px, #000 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 36px, #000 100%);
  }
  .hero-centered h1 { font-size: 44px; }
  .section { padding: 64px 20px; }
  .section h2 { font-size: 24px; }
  .split { grid-template-columns: 1fr; gap: 8px; }
  .callout { padding: 24px; }
  .section-intro p { font-size: 18px; }
  .feature-list li { padding: 22px; }
  #features { padding-left: 8px; padding-right: 8px; }
  #features > .wrap { padding-left: 8px; padding-right: 8px; }
  .feature-list,
  .media-grid,
  .code-grid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .header-inner { padding: 12px 20px; }
  .nav { justify-content: flex-end; gap: 14px; }
}
