/* orbitalanvil.com */

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #02030b;
  --panel: #050817;
  --raised: #0e0621;
  --cyan: #2eedff;
  --pink: #ff2eab;
  --yellow: #ffdb2e;
  --green: #52ff8f;
  --muted: rgba(255, 255, 255, 0.66);
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--pink); color: #000; }

/* scanlines + vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.14) 3px,
      rgba(0, 0, 0, 0) 4px
    );
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 58%, rgba(0,0,0,0.5) 100%);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

main { position: relative; z-index: 1; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 12px var(--cyan); }

/* type */
h1, h2, h3 { font-weight: 900; text-transform: uppercase; line-height: 1.15; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 15px;
  background: var(--pink);
  flex: none;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 26px;
  border-bottom: 2px solid rgba(46, 237, 255, 0.55);
}

p.lead { color: #fff; }
p.dim, li.dim { color: var(--muted); }

/* panels */
.panel {
  position: relative;
  background: rgba(5, 8, 23, 0.96);
  border: 2px solid rgba(46, 237, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(2, 3, 11, 1);
  padding: 26px 28px;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(46, 237, 255, 0.22);
  pointer-events: none;
}
.panel.raised { background: rgba(14, 6, 33, 0.96); }
.panel.pink { border-color: rgba(255, 46, 171, 0.9); }
.panel.pink::after { border-color: rgba(255, 46, 171, 0.22); }
.panel.yellow { border-color: rgba(255, 219, 46, 0.9); }
.panel.yellow::after { border-color: rgba(255, 219, 46, 0.22); }
.panel.green { border-color: rgba(82, 255, 143, 0.9); }
.panel.green::after { border-color: rgba(82, 255, 143, 0.22); }

/* buttons */
.retro-btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid var(--cyan);
  padding: 12px 26px;
  cursor: default;
}
.retro-btn.pink { color: var(--pink); border-color: var(--pink); }
.retro-btn.solid { color: #000; background: var(--cyan); }
a.retro-btn { cursor: pointer; }
a.retro-btn:hover { color: #000; background: var(--cyan); text-shadow: none; }
a.retro-btn.pink:hover { background: var(--pink); }

/* ============================ hero ============================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/forge-corridor.jpg") center 30% / cover no-repeat;
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(2, 3, 11, 0.55) 0%,
      rgba(2, 3, 11, 0.1) 30%,
      rgba(2, 3, 11, 0.25) 62%,
      rgba(2, 3, 11, 0.94) 88%,
      var(--bg) 100%);
}

.hero-inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 60px 22px 110px;
  text-align: center;
}

.presents {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  margin-bottom: 18px;
}

/* logotype */
.logo-game { user-select: none; }
.logo-game .starforge {
  display: block;
  font-size: clamp(46px, 10vw, 96px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: #64d2ff;
  text-shadow: 0.074em 0.074em 0 #ff375f;
}
.logo-game .drift {
  display: block;
  margin-top: 15px;
  font-size: clamp(21px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.02em;
  text-indent: 1.02em;
  color: #ffd60a;
}

.tagline {
  margin-top: 20px;
  font-size: clamp(14px, 2.2vw, 19px);
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(46, 237, 255, 0.55), 0 2px 8px rgba(0, 0, 0, 0.9);
}
.tagline .f { color: var(--yellow); }
.tagline .g { color: var(--pink); }
.tagline .d { color: var(--cyan); }

.hero-promo {
  max-width: 620px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  font-size: 15px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.chip {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(46, 237, 255, 0.72);
  background: rgba(0, 0, 0, 0.55);
  padding: 7px 14px;
}

.hero-cta { margin-top: 22px; }

.press-fire {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 14px rgba(82, 255, 143, 0.6);
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* ============================ sections ============================ */

section { padding: 84px 0; position: relative; }

/* about grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}
.about-copy p + p { margin-top: 16px; }

.cassette {
  transform: rotate(2.5deg);
  border: 2px solid rgba(255, 219, 46, 0.85);
  box-shadow: 14px 14px 0 rgba(255, 46, 171, 0.28), 0 24px 60px rgba(0, 0, 0, 0.65);
  background: #000;
}
.cassette img { display: block; width: 100%; height: auto; }
.cassette-caption {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  padding: 22px 22px 24px;
}
.feature h3 {
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.feature.c-cyan h3 { color: var(--cyan); }
.feature.c-pink h3 { color: var(--pink); }
.feature.c-yellow h3 { color: var(--yellow); }
.feature.c-green h3 { color: var(--green); }
.feature p { font-size: 13.5px; color: var(--muted); }

/* warden band */
.warden {
  background:
    linear-gradient(to right, rgba(2, 3, 11, 0.96) 30%, rgba(2, 3, 11, 0.55)),
    url("/assets/forge-corridor.jpg") right 20% / cover no-repeat;
  border-top: 2px solid rgba(255, 46, 171, 0.6);
  border-bottom: 2px solid rgba(255, 46, 171, 0.6);
}
.warden .warning {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #000;
  background: var(--pink);
  padding: 5px 12px;
  margin-bottom: 18px;
  animation: blink 1.1s steps(2, jump-none) infinite;
}
.warden h2 { color: var(--pink); border-color: rgba(255, 46, 171, 0.55); max-width: 640px; }
.warden p { max-width: 640px; }

/* offline band */
.offline .panel { text-align: center; padding: 40px 28px; }
.offline h2 {
  color: var(--green);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.offline p { max-width: 560px; margin: 0 auto; color: var(--muted); }
.offline .zeros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.offline .chip { color: var(--green); border-color: rgba(82, 255, 143, 0.72); }

/* ============================ footer ============================ */

footer {
  border-top: 2px solid rgba(46, 237, 255, 0.35);
  padding: 44px 0 60px;
  position: relative;
  z-index: 1;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand {
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 13px;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.foot-legal { width: 100%; margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ============================ doc pages (privacy / support) ============================ */

.doc { padding: 120px 0 90px; }
.doc .panel { padding: 40px 38px; }
.doc h1 { color: var(--cyan); font-size: clamp(24px, 4vw, 32px); letter-spacing: 0.06em; margin-bottom: 6px; }
.doc .date { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.doc h2 {
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: 0.14em;
  margin: 30px 0 10px;
  padding-left: 14px;
  border-left: 5px solid var(--pink);
}
.doc p, .doc li { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0 22px; }
.doc li + li { margin-top: 8px; }
.back-link {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ============================ site nav ============================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(to bottom, rgba(2, 3, 11, 0.92), rgba(2, 3, 11, 0.72));
  border-bottom: 1px solid rgba(46, 237, 255, 0.28);
  backdrop-filter: blur(4px);
}
.site-nav .brand {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
}
.site-nav .brand:hover { color: #fff; text-shadow: 0 0 12px var(--yellow); }
.site-nav .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav .links a {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ============================ publisher home ============================ */

.masthead {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  isolation: isolate;
}
.masthead .hero-inner { padding: 110px 22px 56px; }

.anvil-logo {
  display: block;
  font-size: clamp(34px, 7.2vw, 76px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1.05;
  transform: skewX(-7deg);
  background: linear-gradient(to bottom,
    #fff3c4 0%, #ffdb2e 34%, #d98a12 55%, #8a4d05 76%, #ffd977 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
  user-select: none;
}
.masthead .sub {
  margin-top: 20px;
  font-size: clamp(13px, 1.9vw, 16px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* hangar (games grid) */
.hangar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.game-card {
  display: block;
  color: inherit;
  background: rgba(5, 8, 23, 0.96);
  border: 2px solid rgba(46, 237, 255, 0.9);
  transition: box-shadow 0.15s ease;
}
.game-card:hover {
  color: inherit;
  text-shadow: none;
  box-shadow: 0 0 0 1px var(--cyan), 0 0 30px rgba(46, 237, 255, 0.25);
}
.game-card .cover { display: block; width: 100%; height: auto; border-bottom: 2px solid rgba(46, 237, 255, 0.5); }
.game-card .card-body { padding: 18px 20px 22px; }
.game-card h3 { font-size: 16px; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 8px; }
.game-card .desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.card-meta .chip { font-size: 10px; padding: 5px 10px; }
.chip.status { color: var(--yellow); border-color: rgba(255, 219, 46, 0.72); }

.game-card.placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  padding: 30px;
}
.game-card.placeholder:hover { box-shadow: none; }
.game-card.placeholder .static {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================ forms ============================ */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(46, 237, 255, 0.55);
  border-radius: 0;
  padding: 11px 12px;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(46, 237, 255, 0.25);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
button.retro-btn { cursor: pointer; }
button.retro-btn:hover { color: #000; background: var(--cyan); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* retro details/accordion */
details.retro {
  border: 1px solid rgba(46, 237, 255, 0.4);
  background: rgba(0, 0, 0, 0.42);
  margin-top: 10px;
}
details.retro summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
details.retro summary::before { content: "> "; color: var(--pink); }
details.retro[open] summary::before { content: "v "; }
details.retro summary::-webkit-details-marker { display: none; }
details.retro .answer { padding: 0 16px 16px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
details.retro .answer p + p { margin-top: 10px; }

/* ============================ small screens ============================ */

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .cassette { transform: rotate(1.5deg); margin-top: 8px; }
  section { padding: 62px 0; }
  .doc .panel { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-nav .links { gap: 12px; }
}

/* phones: show the full artwork as a band, content below on the starfield */
@media (max-width: 700px) {
  .hero, .masthead { min-height: auto; display: block; }
  .hero-art {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 2200 / 1042;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .hero-fade { display: none; }
  .hero-inner { padding: 0 18px 60px; }
  .masthead .hero-inner { padding: 0 18px 52px; }

  .warden {
    background:
      linear-gradient(to bottom, rgba(2, 3, 11, 0.94), rgba(2, 3, 11, 0.74)),
      url("/assets/forge-corridor.jpg") 68% center / cover no-repeat;
  }
}

@media (max-width: 540px) {
  .site-nav { padding: 10px 14px; }
  .site-nav .brand { font-size: 11px; letter-spacing: 0.18em; white-space: nowrap; }
  .site-nav .links { gap: 10px; flex-wrap: nowrap; }
  .site-nav .links a { font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .press-fire, .warden .warning { animation: none; }
  html { scroll-behavior: auto; }
}
