/* ══════════════════════════════════════════════════════════════════════
   Neon Sword — synthwave site
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --pink:    #ff2d95;
  --magenta: #ff5ec4;
  --cyan:    #22e0ff;
  --violet:  #7b2ff7;
  --amber:   #ffb03a;

  --deep:    #06010f;
  --night:   #0b0221;
  --panel:   rgba(20, 4, 52, .62);
  --line:    rgba(34, 224, 255, .22);

  --ink:     #efe6ff;
  --ink-dim: #b9a7d8;

  --display: 'Orbitron', system-ui, sans-serif;
  --body:    'Rajdhani', system-ui, sans-serif;

  --wrap:    1180px;
  --nav-h:   68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* height:auto stops the HTML height attribute (a presentational hint) from
   squashing any image whose width is set in CSS. Rules that size images
   explicitly, like .card__media img, still override it. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; }

.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

.wrap--narrow { width: min(680px, 100% - 3rem); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Global CRT scanline overlay ─────────────────────────────────────── */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: .6;
}

/* ══ Nav ═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 1, 15, .35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}

.nav.is-stuck {
  background: rgba(6, 1, 15, .88);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(255, 45, 149, .25);
}

.nav__brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .16em;
  white-space: nowrap;
}

.nav__brand-neon  { color: #fff; text-shadow: 0 0 12px rgba(34, 224, 255, .9); }
.nav__brand-sword { color: var(--pink); text-shadow: 0 0 14px rgba(255, 45, 149, .9); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.7rem);
}

.nav__links a {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: .35rem 0;
  position: relative;
  transition: color .2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transition: transform .25s;
}

.nav__links a:hover,
.nav__links a.is-active { color: #fff; }

.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta {
  color: #fff !important;
  border: 1px solid var(--pink);
  border-radius: 2px;
  padding: .45rem .9rem !important;
  background: rgba(255, 45, 149, .14);
  box-shadow: 0 0 16px rgba(255, 45, 149, .35);
}

.nav__cta::after { display: none; }
.nav__cta:hover  { background: rgba(255, 45, 149, .3); }

/* Burger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: transform .3s, opacity .2s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ Hero ══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  overflow: hidden;
}

/* ── The synthwave scene ─────────────────────────────────────────────── */

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* colour stops track the horizon at 78% from the top */
  background: linear-gradient(180deg,
    #06010f   0%,
    #1a0344  40%,
    #57108a  61%,
    #b4148c  72.5%,
    #ff2d95  77.5%,
    #2a0446  78.5%,
    #0b0221 100%);
}

.stars {
  position: absolute;
  inset: 0 0 40% 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 42%, #cfe9ff, transparent),
    radial-gradient(1.6px 1.6px at 44% 12%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 61% 34%, #ffd9f4, transparent),
    radial-gradient(1.5px 1.5px at 74% 20%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 44%, #cfe9ff, transparent),
    radial-gradient(1.3px 1.3px at 8%  56%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 36% 62%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 55% 52%, #ffd9f4, transparent),
    radial-gradient(1.2px 1.2px at 82% 60%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 20% 30%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 68% 8%,  #fff, transparent);
  opacity: .85;
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: .4; }
  to   { opacity: .95; }
}

.sun {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: min(42vw, 430px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 12px,
      rgba(11, 2, 33, .92) 12px 17px),
    linear-gradient(180deg, #fff36b 0%, #ff9d3b 40%, #ff2d95 72%, #b1179a 100%);
  filter: drop-shadow(0 0 70px rgba(255, 45, 149, .5));
}

/* City skyline instead of mountains — this is a cyberpunk city, after all */
.skyline {
  position: absolute;
  left: -2%; right: -2%;
  bottom: 22%;
  height: 26vh;
  background: #0d0122;
  clip-path: polygon(
    0% 100%, 0% 55%, 4% 55%, 4% 34%, 8% 34%, 8% 62%, 12% 62%,
    12% 20%, 15% 20%, 15% 48%, 20% 48%, 20% 8%, 24% 8%, 24% 44%,
    28% 44%, 28% 60%, 32% 60%, 32% 26%, 36% 26%, 36% 52%, 41% 52%,
    41% 14%, 45% 14%, 45% 40%, 49% 40%, 49% 64%, 53% 64%, 53% 22%,
    57% 22%, 57% 46%, 62% 46%, 62% 4%, 66% 4%, 66% 38%, 70% 38%,
    70% 58%, 74% 58%, 74% 30%, 78% 30%, 78% 50%, 83% 50%, 83% 16%,
    87% 16%, 87% 42%, 91% 42%, 91% 62%, 95% 62%, 95% 36%, 100% 36%,
    100% 100%);
}

/* Lit windows + neon rim on the skyline */
.skyline::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background:
    linear-gradient(180deg, rgba(34, 224, 255, .35), transparent 55%),
    repeating-linear-gradient(90deg,
      transparent 0 7px, rgba(34, 224, 255, .16) 7px 9px),
    repeating-linear-gradient(180deg,
      transparent 0 9px, rgba(255, 45, 149, .14) 9px 12px);
}

.horizon-glow {
  position: absolute;
  left: 0; right: 0;
  bottom: 22%;
  height: 3px;
  background: #fff;
  box-shadow:
    0 0 12px 3px rgba(255, 255, 255, .9),
    0 0 40px 10px rgba(255, 45, 149, .7),
    0 0 90px 26px rgba(123, 47, 247, .5);
}

.grid-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  perspective: 260px;
  /* eye level on the horizon, so the floor recedes to exactly the top edge */
  perspective-origin: 50% 0%;
  overflow: hidden;
}

.grid {
  position: absolute;
  /* tall enough that the far edge converges at the horizon, not short of it */
  inset: -600% -60% 0 -60%;
  transform: rotateX(82deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(to right,  rgba(34, 224, 255, .75) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(255, 45, 149, .75) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  animation: drive 1.6s linear infinite;
}

@keyframes drive {
  from { background-position: 0 0; }
  to   { background-position: 0 56px; }
}

/* ── Hero content ────────────────────────────────────────────────────── */

/* soft scrim so copy stays readable where it crosses the sun */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 45%,
    rgba(6, 1, 15, .78) 0%,
    rgba(6, 1, 15, .5) 45%,
    transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 780px;
}

.hero__logo {
  width: min(88vw, 660px);
  height: auto;
  filter:
    drop-shadow(0 0 22px rgba(34, 224, 255, .5))
    drop-shadow(0 0 55px rgba(255, 45, 149, .4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.hero__tagline {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 45, 149, .9),
    0 0 28px rgba(123, 47, 247, .8);
  animation: flicker 7s steps(1) infinite;
}

@keyframes flicker {
  0%, 42%, 44%, 47%, 100% { opacity: 1; }
  43%, 45.5%              { opacity: .55; }
  46%                     { opacity: .82; }
}

.hero__blurb {
  margin: 0;
  max-width: 56ch;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: .3rem;
}

.hero__release {
  margin: .2rem 0 0;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6cff9b;
  box-shadow: 0 0 10px #6cff9b;
  vertical-align: middle;
  margin-right: .3rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.indiedb img {
  opacity: .8;
  transition: opacity .2s;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.indiedb:hover img { opacity: 1; }

.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(34, 224, 255, .6);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ══ Buttons ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .85rem 1.7rem;
  border-radius: 2px;
  border: 1px solid;
  cursor: pointer;
  transition: transform .18s, box-shadow .25s, background .25s;
}

.btn--primary {
  color: #fff;
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255, 45, 149, .9), rgba(123, 47, 247, .85));
  box-shadow: 0 0 22px rgba(255, 45, 149, .5);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(255, 45, 149, .85);
}

.btn--ghost {
  color: var(--cyan);
  border-color: rgba(34, 224, 255, .55);
  background: rgba(34, 224, 255, .06);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(34, 224, 255, .16);
  box-shadow: 0 0 26px rgba(34, 224, 255, .5);
}

/* ══ Sections ══════════════════════════════════════════════════════════ */

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid rgba(123, 47, 247, .22);
}

.section--about   { background: linear-gradient(180deg, #0b0221, #12042e); }
.section--features{ background: linear-gradient(180deg, #12042e, #0d0226); }
.section--lore    { background: linear-gradient(180deg, #0d0226, #150433); }
.section--screens { background: linear-gradient(180deg, #150433, #0b0221); }
.section--news    { background: linear-gradient(180deg, #0b0221, #06010f); }

/* Faint gameplay still behind the About copy */
.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .1;
  filter: saturate(1.5) hue-rotate(-15deg);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.section > .wrap { position: relative; z-index: 1; }

/* Chromatic-aberration heading */
.heading {
  position: relative;
  margin: 0 0 .35em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 24px rgba(123, 47, 247, .7);
}

.heading::before,
.heading::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heading::before { color: var(--cyan); transform: translate(-3px, 1px); opacity: .55; z-index: -1; }
.heading::after  { color: var(--pink); transform: translate( 3px, -1px); opacity: .55; z-index: -1; }

.section__sub {
  margin: 0 auto 2.8rem;
  max-width: 60ch;
  text-align: center;
  color: var(--ink-dim);
}

.heading + .about__grid,
.heading + .features,
.heading + .gallery { margin-top: 2.8rem; }

/* ── About ───────────────────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.lead {
  font-size: 1.22rem;
  color: var(--ink);
}

.pull {
  margin: 1.6rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--pink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 45, 149, .8);
}

.about__lead p:last-child { color: var(--ink-dim); }

.about__panels {
  display: grid;
  gap: 1.1rem;
}

.panel {
  padding: 1.4rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  transition: transform .25s, box-shadow .25s, border-left-color .25s;
}

.panel:hover {
  transform: translateX(5px);
  border-left-color: var(--pink);
  box-shadow: -6px 0 26px rgba(255, 45, 149, .3);
}

.panel h3 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.panel p { margin: 0; color: var(--ink-dim); font-size: .98rem; }

.closer {
  margin: 3rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.glow {
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink), 0 0 34px rgba(255, 45, 149, .8);
}

/* ── Features ────────────────────────────────────────────────────────── */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.features li {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding: 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 1rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.features li:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 149, .6);
  box-shadow: 0 8px 30px rgba(255, 45, 149, .28);
}

.features__no {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 900;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 45, 149, .9);
  flex: none;
}

/* ── Lore ────────────────────────────────────────────────────────────── */

.lore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 149, .65);
  box-shadow: 0 14px 44px rgba(255, 45, 149, .3);
}

.card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.05);
  transition: transform .5s;
}

.card:hover .card__media img { transform: scale(1.05); }

/* neon wash over the faction gifs so they sit in the same palette */
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 224, 255, .1), rgba(123, 47, 247, .28));
  pointer-events: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.tag {
  align-self: flex-start;
  font-family: var(--display);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 2px;
  border: 1px solid currentColor;
  margin-bottom: .7rem;
}

.tag--gang   { color: var(--pink);  background: rgba(255, 45, 149, .12); }
.tag--terror { color: var(--amber); background: rgba(255, 176, 58, .12); }
.tag--world  { color: var(--cyan);  background: rgba(34, 224, 255, .12); }

.card h3 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
}

.card p {
  margin: 0 0 1.2rem;
  color: var(--ink-dim);
  font-size: .96rem;
  flex: 1;
}

.card__link {
  align-self: flex-start;
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(34, 224, 255, .55);
  border-radius: 2px;
  transition: background .25s, box-shadow .25s, color .25s;
}

.card__link:hover {
  color: #fff;
  background: rgba(34, 224, 255, .18);
  box-shadow: 0 0 20px rgba(34, 224, 255, .5);
}

/* ── Screenshots ─────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.shot {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

/* double width at double the aspect keeps every tile the same height */
.shot--wide { grid-column: span 2; aspect-ratio: 32 / 9; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2);
  transition: transform .5s, filter .3s;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(123, 47, 247, .35));
  pointer-events: none;
  transition: opacity .3s;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 224, 255, .7);
  box-shadow: 0 12px 40px rgba(34, 224, 255, .3);
}

.shot:hover img  { transform: scale(1.06); filter: saturate(1.45); }
.shot:hover::after { opacity: .35; }

/* ── Newsletter ──────────────────────────────────────────────────────── */

.signup {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.signup input {
  flex: 1 1 260px;
  padding: .85rem 1.1rem;
  font-family: var(--body);
  font-size: 1rem;
  color: #fff;
  background: rgba(20, 4, 52, .8);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .25s, box-shadow .25s;
}

.signup input::placeholder { color: rgba(185, 167, 216, .6); }

.signup input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 224, 255, .4);
}

/* ── Socials ─────────────────────────────────────────────────────────── */

.socials {
  list-style: none;
  display: flex;
  gap: .6rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  font-family: var(--display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: color .2s, border-color .2s, box-shadow .25s, transform .2s;
}

.socials a:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: 0 0 18px rgba(255, 45, 149, .6);
}

.socials--hero { margin-top: .4rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer {
  padding: 3rem 0 2.5rem;
  background: #06010f;
  border-top: 1px solid rgba(123, 47, 247, .3);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer__logo img {
  width: 210px;
  /* required: the width/height HTML attributes are presentational hints, so
     without this the height attribute wins and squashes the aspect ratio */
  height: auto;
  filter: drop-shadow(0 0 18px rgba(34, 224, 255, .4));
  transition: transform .3s;
}

.footer__logo:hover img { transform: scale(1.04); }

.footer__copy {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(185, 167, 216, .55);
}

/* ── Back to top ─────────────────────────────────────────────────────── */

.totop {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  color: var(--cyan);
  background: rgba(11, 2, 33, .85);
  border: 1px solid var(--line);
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, box-shadow .3s;
}

.totop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover      { box-shadow: 0 0 22px rgba(34, 224, 255, .6); }

/* ── Lightbox ────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(4, 0, 12, .93);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border: 1px solid rgba(34, 224, 255, .5);
  border-radius: 3px;
  box-shadow: 0 0 70px rgba(255, 45, 149, .4);
}

.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--cyan);
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}

.lightbox__close:hover { box-shadow: 0 0 20px rgba(34, 224, 255, .6); }

/* ── Scroll-reveal ───────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* ══ Responsive ════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .shot--wide  { grid-column: auto; aspect-ratio: 16 / 9; }
}

/* the full nav needs ~1000px before it starts crowding the brand */
@media (max-width: 1000px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.5rem 1.5rem;
    background: rgba(6, 1, 15, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    transform: translateY(-130%);
    transition: transform .35s ease;
  }

  .nav__links.is-open { transform: translateY(0); }

  .nav__links a {
    padding: .9rem 0;
    font-size: .8rem;
    border-bottom: 1px solid rgba(123, 47, 247, .2);
  }

  .nav__links a::after { display: none; }

  .nav__cta {
    margin-top: .9rem;
    text-align: center;
    border-bottom: 1px solid var(--pink) !important;
  }
}

@media (max-width: 520px) {
  body        { font-size: 17px; }
  .sun        { width: 62vw; }
  .skyline    { height: 17vh; }
  .hero__logo { width: 92vw; }
  .wrap       { width: min(var(--wrap), 100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid, .hero__logo, .hero__tagline, .stars, .dot, .hero__scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
