/* Ancient Orbit website: the launcher's palette (blue accent, gold buttons) on deep space, Eurostile for headings. */
@font-face { font-family: "Eurostile Heavy"; src: url("assets/heavy.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Eurostile"; src: url("assets/regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #05070d;
  --bg-alt: #080c16;
  --card: rgba(13, 19, 33, .78);
  --card-solid: #0d1321;
  --line: rgba(120, 170, 220, .16);
  --line-strong: rgba(120, 170, 220, .32);
  --ink: #e8ecf2;
  --soft: #c3cbd8;
  --muted: #8d98ab;
  --accent: #39b3ff;
  --gold: #f2c14e;
  --gold-dark: #c9821e;
  --online: #4cd964;
  --offline: #ff5a5a;
  --radius: 14px;
  --heading: "Eurostile Heavy", "Eurostile", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
code { font: .9em Consolas, "Cascadia Mono", monospace; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; color: var(--ink); }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; letter-spacing: .02em; line-height: 1.15; margin: 0; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: linear-gradient(rgba(5,7,13,.92), rgba(5,7,13,.72)); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(5,7,13,.94); }
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { color: var(--soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 999px; font-size: 14px; color: var(--soft);
  background: rgba(11,16,27,.8); border: 1px solid var(--line-strong); white-space: nowrap; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(141,152,171,.18); }
.status[data-status="online"] i { background: var(--online); box-shadow: 0 0 0 4px rgba(76,217,100,.2); animation: pulse 2.4s infinite; }
.status[data-status="offline"] i { background: var(--offline); box-shadow: 0 0 0 4px rgba(255,90,90,.2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(76,217,100,0); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; font-family: var(--heading); letter-spacing: .04em;
  color: var(--ink); border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); background: rgba(57,179,255,.12); }
.btn:focus-visible, .shot:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-small { padding: 8px 16px; font-size: 14px; color: #1b1205; background: linear-gradient(var(--gold), var(--gold-dark)); border-color: rgba(255,220,140,.5); }
.btn-small:hover { background: linear-gradient(#ffd36a, #d8902a); border-color: #ffe09a; }
.btn-big { padding: 16px 28px; font-size: 18px; min-height: 64px; }
.btn-gold { color: #1b1205; background: linear-gradient(180deg, #ffd56e 0%, var(--gold) 45%, var(--gold-dark) 100%); border-color: rgba(255,224,150,.65);
  box-shadow: 0 10px 30px -8px rgba(242,193,78,.55), inset 0 1px 0 rgba(255,255,255,.55); }
.btn-gold:hover { background: linear-gradient(180deg, #ffe08a 0%, #f7c95c 45%, #d8902a 100%); border-color: #ffe9b0; box-shadow: 0 14px 38px -8px rgba(242,193,78,.7), inset 0 1px 0 rgba(255,255,255,.6); }
.btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.btn small { font: 600 12.5px/1.3 var(--text); letter-spacing: 0; opacity: .78; margin-top: 3px; }
.btn-ghost { background: rgba(8,12,22,.55); backdrop-filter: blur(6px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px 20px 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -40px; z-index: -3; background: url("assets/space.jpg") center / cover no-repeat; transform: scale(1.06); animation: drift 40s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(5,7,13,.15), rgba(5,7,13,.78) 70%), linear-gradient(180deg, rgba(5,7,13,.55) 0%, rgba(5,7,13,.1) 30%, rgba(5,7,13,.25) 70%, var(--bg) 100%); }
.stars { position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 68% 32%, #cfe8ff, transparent), radial-gradient(1.4px 1.4px at 82% 74%, #fff, transparent),
    radial-gradient(1px 1px at 35% 62%, #fff, transparent), radial-gradient(1.2px 1.2px at 52% 12%, #ffe9b8, transparent), radial-gradient(1px 1px at 90% 20%, #fff, transparent),
    radial-gradient(1px 1px at 22% 84%, #cfe8ff, transparent), radial-gradient(1.3px 1.3px at 6% 46%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate(-14px, 10px); } }
@keyframes twinkle { to { opacity: .35; } }
.hero-inner { width: min(1000px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(560px, 86vw); height: auto; filter: drop-shadow(0 12px 40px rgba(0,0,0,.6)); animation: rise .9s ease-out both; }
.hero-tag { max-width: 620px; margin: 22px 0 34px; font-size: clamp(17px, 2.1vw, 21px); color: var(--soft); text-shadow: 0 2px 12px rgba(0,0,0,.8); animation: rise .9s .12s ease-out both; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; animation: rise .9s .24s ease-out both; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 54px 0 0; width: min(640px, 100%); border-radius: var(--radius); overflow: hidden;
  background: var(--line); border: 1px solid var(--line); backdrop-filter: blur(10px); animation: rise .9s .36s ease-out both; }
.hero-stats div { background: rgba(8,12,22,.72); padding: 16px 12px; }
.hero-stats dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero-stats dd { margin: 4px 0 0; font: 24px/1.2 var(--heading); color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(232,236,242,.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: 110px max(20px, calc((100vw - 1180px) / 2)); position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 12%, var(--bg-alt) 88%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { margin: 0 0 12px; font: 600 13px/1 var(--text); text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.lead { margin: 18px 0 0; color: var(--soft); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(57,179,255,.35); }
.feature:hover::before { opacity: 1; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 20px; background: rgba(57,179,255,.1); border: 1px solid rgba(57,179,255,.28); }
.feature-icon svg { width: 27px; height: 27px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 16px; }
.shot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--card-solid); }
.shot-wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(1.05); }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; text-align: left; font: 15px var(--heading); letter-spacing: .03em; color: var(--ink);
  background: linear-gradient(transparent, rgba(5,7,13,.92)); }
.shot:hover img { transform: scale(1.045); }
.shot:hover { border-color: var(--line-strong); }

.lightbox { padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); max-width: min(1400px, 94vw); max-height: 92vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(2,3,7,.86); backdrop-filter: blur(4px); }
.lightbox img { max-height: 92vh; width: auto; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(5,7,13,.8); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { border-color: var(--accent); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: none; position: relative; }
.steps li { position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-no { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; font: 20px var(--heading); color: #1b1205;
  background: linear-gradient(#ffd56e, var(--gold-dark)); box-shadow: 0 6px 20px -6px rgba(242,193,78,.6); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--soft); font-size: 15.5px; }
.note { display: flex; gap: 16px; align-items: flex-start; margin: 26px auto 0; padding: 18px 22px; border-radius: var(--radius); max-width: 880px;
  background: rgba(57,179,255,.07); border: 1px solid rgba(57,179,255,.25); }
.note svg { width: 24px; height: 24px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.note p { margin: 0; color: var(--soft); font-size: 15.5px; }
.note b { color: var(--ink); }
.note[hidden] { display: none; }
.note-discord { background: rgba(88,101,242,.1); border-color: rgba(88,101,242,.4); margin-top: 16px; }
.note-discord svg { stroke: #8891f7; }
.note-discord a { font-weight: 600; color: #a5acff; white-space: nowrap; margin-left: 4px; }

/* ---------- news ---------- */
.news { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.news-item { padding: 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.news-item:first-child { border-color: rgba(57,179,255,.38); background: linear-gradient(160deg, rgba(20,30,50,.9), rgba(10,15,26,.85)); }
.news-item time { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.news-item h3 { font-size: 21px; margin: 6px 0 8px; }
.news-item p { margin: 0; color: var(--soft); white-space: pre-line; }
.news-empty { text-align: center; color: var(--muted); }

/* ---------- requirements & FAQ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { padding: 30px 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.panel h3 { font-size: 22px; margin-bottom: 18px; }
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs li:last-child { border-bottom: 0; }
.specs span { color: var(--muted); }
.specs b { font-weight: 600; text-align: right; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; list-style: none; padding: 13px 28px 13px 0; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 22px; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 14px; color: var(--soft); font-size: 15.5px; }

/* ---------- call to action & footer ---------- */
.cta { position: relative; padding: 120px 20px; text-align: center; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(5,7,13,.2), var(--bg) 75%), url("assets/space.jpg") center 70% / cover; opacity: .9; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 30px; }
.footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.footer img { opacity: .75; height: auto; }
.footer p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { gap: 14px; }
  .nav-brand { margin-right: auto; }
}
@media (max-width: 640px) {
  .features, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .shot-wide { grid-column: auto; grid-row: span 1; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .status .status-text { display: none; }
  .status { padding: 8px; }
  .hero-stats dd { font-size: 19px; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
