/* Skyline Override — site styles. Layout after elitedangerous.com (Lee, 28 Nov), in the game's
   amber/cyan neon. Fonts: Rajdhani (headings) and Exo 2 (body), SIL Open Font Licence, self-hosted. */

@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url(fonts/rajdhani-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url(fonts/rajdhani-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url(fonts/rajdhani-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 400; font-display: swap; src: url(fonts/exo-2-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 500; font-display: swap; src: url(fonts/exo-2-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 600; font-display: swap; src: url(fonts/exo-2-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #04050d;
  --panel: #0d0f2a;
  --amber: #ffb13d;
  --amber-deep: #e8891a;
  --cyan: #3fd0ff;
  --ink: #f2f4ff;
  --dim: rgba(242, 244, 255, .68);
  --line: rgba(63, 208, 255, .35);
  --head: "Rajdhani", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Exo 2", -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  /* faint starfield behind every section */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 34%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 66%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 8%, rgba(255,255,255,.4) 50%, transparent 51%);
  background-size: 520px 520px;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.05; margin: 0; }
.slashes { color: var(--amber); font-style: italic; margin-right: .35em; }

/* ---------- Buttons: one solid (amber) button per view, the rest outlined ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 30px;
  font: 700 18px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); border: 2px solid rgba(242,244,255,.85); background: rgba(4,5,13,.35);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: rgba(242,244,255,.12); }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #160c00; border-color: var(--amber);
  background: linear-gradient(180deg, #ffc565, var(--amber) 55%, var(--amber-deep));
  box-shadow: 0 0 24px rgba(255,177,61,.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffd488, #ffbf55 55%, var(--amber)); }
.btn-primary svg { width: 20px; height: 20px; fill: currentColor; }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(2,3,8,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav::after { /* the cyan line under the bar, with a light running along it (as in the game's Settings) */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.nav::before {
  content: ""; position: absolute; bottom: -1px; left: -20%; width: 18%; height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent); filter: drop-shadow(0 0 6px var(--cyan));
  animation: sweep 6s linear infinite;
}
@keyframes sweep { 0% { left: -20%; } 45%, 100% { left: 110%; } }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font: 600 17px var(--head); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.nav-links a:hover { color: var(--cyan); opacity: 1; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 40px; font-size: 20px; }

/* ---------- Social rail (right edge, desktop) ---------- */
.rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column;
  background: rgba(2,3,8,.8); border: 1px solid var(--line); border-right: 0; }
.rail a, .socials a { display: grid; place-items: center; width: 46px; height: 46px; color: var(--ink); }
.rail a:hover, .socials a:hover { color: var(--amber); }
.rail svg, .socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: calc(var(--nav-h) + 30px) 20px 60px; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(4,5,13,.25), rgba(4,5,13,.75) 75%), linear-gradient(180deg, rgba(4,5,13,.6), transparent 30%, transparent 60%, var(--bg)); }
.hero-inner { position: relative; z-index: 1; max-width: 980px; }
.hero-logo { width: min(760px, 88vw); margin: 0 auto; filter: drop-shadow(0 0 30px rgba(63,208,255,.35)); animation: logoGlow 5s ease-in-out infinite; }
@keyframes logoGlow { 50% { filter: drop-shadow(0 0 46px rgba(255,177,61,.45)); } }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-tag { margin-top: 26px; font: 700 clamp(22px, 3.4vw, 34px) var(--head); letter-spacing: .32em; text-transform: uppercase; }
.hero-tag span { color: var(--amber); }
.hero-small { margin-top: 6px; color: var(--dim); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; z-index: 1; width: 22px; height: 36px; margin-left: -11px; border: 2px solid rgba(242,244,255,.6); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--amber); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(10px); opacity: .3; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(13,15,42,.9), rgba(4,5,13,.9)); }
.ticker-track { display: flex; width: max-content; animation: tick 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { padding: 12px 26px; white-space: nowrap; font: 600 17px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.ticker span::before { content: "✦"; color: var(--amber); margin-right: 26px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- What's new: two big picture tiles ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; }
.news-tile { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; text-decoration: none; color: var(--ink); }
.news-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.news-tile:hover img { transform: scale(1.05); }
.news-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4,5,13,.95)); }
.news-body { position: relative; z-index: 1; padding: 36px 44px; max-width: 620px; }
.news-head { position: absolute; z-index: 1; top: 30px; left: 44px; right: 44px; display: flex; justify-content: space-between;
  padding: 10px 18px; background: rgba(4,5,13,.6); font: 600 16px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.tag { display: inline-block; padding: 3px 10px; margin-bottom: 12px; background: var(--cyan); color: #02121a; font: 700 14px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.tag.amber { background: var(--amber); color: #160c00; }
.news-body h3 { font-size: clamp(28px, 3vw, 40px); }
.news-body p { margin: 10px 0 0; color: var(--dim); }

/* ---------- Statement: emblem, headline, story, planet horizon ---------- */
.statement { position: relative; text-align: center; padding: 120px 24px 230px; overflow: hidden; }
.statement .horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: url(assets/orbit.webp) center bottom / cover no-repeat; opacity: .95; }
.statement .horizon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: radial-gradient(ellipse at 50% 100%, rgba(170,90,255,.55), transparent 70%); animation: horizon 6s ease-in-out infinite; }
@keyframes horizon { 50% { opacity: .45; } }
.statement-inner { position: relative; max-width: 900px; margin: 0 auto; }
.emblem { font: italic 700 64px/1 var(--head); color: var(--amber); letter-spacing: -.05em; text-shadow: 0 0 24px rgba(255,177,61,.6); }
.statement h2 { margin-top: 18px; font-size: clamp(40px, 6.4vw, 78px); text-shadow: 0 0 30px rgba(63,208,255,.25); }
.rule { width: 120px; height: 2px; margin: 26px auto; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.statement p { color: var(--dim); max-width: 760px; margin: 0 auto 14px; }

/* ---------- Section heading ---------- */
.section { padding: 100px 24px; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--dim); margin: 0; }

/* ---------- Modes: four portrait cards ---------- */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1360px; margin: 0 auto; }
.mode { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.mode::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4,5,13,.96) 88%); }
.mode:hover img { transform: scale(1.07); }
.mode:hover { box-shadow: 0 0 30px rgba(63,208,255,.35); }
.mode-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px; }
.mode h3 { font-size: 38px; }
.mode p { margin: 8px 0 0; color: var(--dim); font-size: 15px; line-height: 1.5; }

/* ---------- Hangar: one big ship, four small ---------- */
.hangar { position: relative; overflow: hidden; }
.hangar::before { content: ""; position: absolute; inset: 0; background: url(assets/hangar.webp) center / cover no-repeat; opacity: .28; filter: blur(3px); }
.hangar .section-head, .ships { position: relative; }
.ships { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; max-width: 1200px; margin: 0 auto; }
.ship { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(13,15,42,.92), rgba(4,5,13,.92)); border: 1px solid var(--line); min-height: 250px; }
.ship.big { grid-row: span 2; }
.ship-art { flex: 1; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 60%, rgba(63,208,255,.18), transparent 65%); }
.ship-art img { width: 100%; max-width: 420px; animation: bob 5s ease-in-out infinite; }
.ship.big .ship-art img { max-width: 640px; }
.ship:nth-child(2) img { animation-delay: -1.2s; } .ship:nth-child(3) img { animation-delay: -2.4s; }
.ship:nth-child(4) img { animation-delay: -3.1s; } .ship:nth-child(5) img { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.2deg); } }
.ship-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 18px; background: rgba(63,208,255,.14); border-top: 1px solid var(--line); }
.ship-name strong { font: 700 20px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.ship.big .ship-name strong { font-size: 28px; }
.ship-name span { font: 600 14px var(--head); letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; }

/* ---------- Final call to action ---------- */
.cta { text-align: center; padding: 110px 24px; background: linear-gradient(180deg, transparent, rgba(255,177,61,.07) 50%, transparent); }
.cta h2 { font-size: clamp(34px, 5vw, 58px); }
.cta p { color: var(--dim); margin: 14px 0 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #020309; padding: 50px 24px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.footer-logo { width: 220px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 0 0 16px; }
.footer-links a { color: var(--ink); text-decoration: none; font: 600 17px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.footer-links a:hover { color: var(--amber); }
.socials { display: flex; flex-wrap: wrap; margin: 0 0 16px -12px; }
.legal { color: rgba(242,244,255,.45); font-size: 13px; line-height: 1.7; margin: 0; }

/* ---------- Plain pages (support, privacy) ---------- */
.page { max-width: 860px; margin: 0 auto; padding: calc(var(--nav-h) + 70px) 24px 90px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); }
.page .lede { color: var(--dim); margin: 14px 0 40px; }
.panel { position: relative; padding: 26px 30px; margin: 0 0 20px; background: linear-gradient(180deg, rgba(13,15,42,.9), rgba(4,5,13,.9)); border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.panel h2 { font-size: 26px; margin-bottom: 10px; }
.panel h3 { font-size: 20px; margin: 18px 0 6px; color: var(--cyan); }
.panel p, .panel li { color: var(--dim); }
.panel p { margin: 0 0 10px; }
.panel ul { margin: 0 0 10px; padding-left: 20px; }
.panel strong { color: var(--ink); }
details.panel summary { cursor: pointer; list-style: none; font: 700 22px var(--head); letter-spacing: .06em; text-transform: uppercase; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: "+"; float: right; color: var(--amber); }
details.panel[open] summary::after { content: "–"; }
details.panel[open] summary { margin-bottom: 12px; }
.updated { color: rgba(242,244,255,.45); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.modes .reveal:nth-child(2), .ships .reveal:nth-child(2) { transition-delay: .1s; }
.modes .reveal:nth-child(3), .ships .reveal:nth-child(3) { transition-delay: .2s; }
.modes .reveal:nth-child(4), .ships .reveal:nth-child(4) { transition-delay: .3s; }
.ships .reveal:nth-child(5) { transition-delay: .4s; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 980px) {
  .modes { grid-template-columns: 1fr 1fr; }
  .ships { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ship.big { grid-column: span 2; grid-row: auto; }
  .rail { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 12px; padding: 0 16px; }
  .nav-logo img { height: 28px; }
  .nav-toggle { display: block; }
  .nav .btn { display: none; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(2,3,8,.97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 16px 22px; border-top: 1px solid rgba(63,208,255,.12); }
  .news { grid-template-columns: 1fr; }
  .news-tile { min-height: 440px; }
  .news-head { left: 20px; right: 20px; top: 20px; }
  .news-body { padding: 26px 22px; }
  .section { padding: 70px 16px; }
  .statement { padding: 80px 20px 170px; }
  .modes { gap: 12px; }
  .mode h3 { font-size: 28px; }
  .mode-body { padding: 16px; }
  .mode p { font-size: 13px; }
  .ships { grid-template-columns: 1fr; }
  .ship.big { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
  .panel { padding: 22px 20px; }
}
@media (max-width: 420px) { .modes { grid-template-columns: 1fr; } .mode { aspect-ratio: 4 / 5; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
