/* ArkneyOrbit — site styles
   Palette: deep space + bevelled panels + orange highlights (2009 panel feel, modern polish) */

:root {
  --bg: #070b12;
  --bg-2: #0a1019;
  --panel: #0f1724;
  --panel-2: #131e2e;
  --line: #1e2c42;
  --line-hi: #2d4160;
  --text: #d5deec;
  --muted: #8494ad;
  --accent: #ff8a1f;
  --accent-2: #e56f08;
  --accent-ink: #1a0d00;
  --glow: rgba(255, 138, 31, .32);
  --radius: 6px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Rajdhani", "Segoe UI", Arial Narrow, Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .95rem/1 var(--font-body);
  padding: .8rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #ffa04a 0%, var(--accent) 45%, var(--accent-2) 100%);
  color: var(--accent-ink);
  border-color: #ffb672;
  box-shadow: 0 0 0 1px #a24f05 inset, 0 6px 22px -8px var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px #a24f05 inset, 0 10px 30px -8px var(--glow); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-color: var(--line-hi);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-lg { font-size: 1.05rem; padding: 1rem 1.6rem; }
.btn-sm { font-size: .85rem; padding: .55rem 1rem; }
.btn-ico { width: 20px; height: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 18, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-text { font: 700 1.35rem/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.brand-text b { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav > a:not(.btn):hover { color: #fff; text-decoration: none; }
.lang { display: flex; align-items: center; gap: .35rem; color: var(--line-hi); font-size: .85rem; }
.lang button {
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  padding: .25rem .3rem; cursor: pointer; letter-spacing: .04em;
}
.lang button.is-on { color: var(--accent); }
.lang button:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-hi); border-radius: var(--radius);
  width: 42px; height: 38px; padding: 8px 9px; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .lang { padding: .9rem 0; }
  .nav .btn { margin-top: .75rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  min-height: min(78vh, 820px); display: flex; align-items: center;
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 70% 20%, rgba(255,138,31,.14), transparent 70%),
    radial-gradient(45% 45% at 15% 85%, rgba(47,127,214,.14), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(255,138,31,.35); background: rgba(255,138,31,.08);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); max-width: 640px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .9rem; }
.hero-note { font-size: .85rem; color: var(--muted); }

.stats {
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
}
.stats li { display: flex; flex-direction: column; }
.stats b { font: 700 2rem/1 var(--font-head); color: #fff; }
.stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .2rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin-bottom: .8rem; }
.section-lead { color: var(--muted); max-width: 680px; font-size: 1.05rem; margin-bottom: 2.4rem; }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* Bevelled panel — the 2009 look */
.panel, .card, .co, .faq, .dl-card {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.8);
}
.card { padding: 1.5rem; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.card-ico {
  width: 42px; height: 42px; border-radius: var(--radius); color: var(--accent);
  background: rgba(255,138,31,.09); border: 1px solid rgba(255,138,31,.25);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.3rem; color: #fff; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Companies */
.co { padding: 1.6rem; position: relative; overflow: hidden; }
.co::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--co);
  box-shadow: 0 0 18px var(--co);
}
.co-badge { width: 56px; height: 56px; color: var(--co); margin-bottom: 1rem; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--co) 60%, transparent)); }
.co-tag { font: 700 .8rem/1 var(--font-head); letter-spacing: .2em; color: var(--co); margin-bottom: .35rem; }
.co h3 { font-size: 1.35rem; color: #fff; margin-bottom: .3rem; }
.co-motto { font-style: italic; color: var(--text); font-size: .95rem; margin-bottom: .8rem; opacity: .9; }
.co-desc { color: var(--muted); font-size: .95rem; margin: 0; }

/* Ships table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ships { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.ships th, .ships td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.ships th { background: var(--panel-2); font: 600 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ships tbody tr { background: var(--panel); }
.ships tbody tr:nth-child(even) { background: var(--bg-2); }
.ships tbody tr:hover { background: #172538; }
.ships td:first-child { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; }
.ships td:last-child { white-space: nowrap; }
.ships .free { color: #6fd35b; font-weight: 600; }
.ships .z { color: var(--accent); font-weight: 600; }
.fineprint { color: var(--muted); font-size: .85rem; margin-top: .9rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n {
  position: absolute; left: 1.2rem; top: 1.25rem; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 1.1rem/1 var(--font-head);
  box-shadow: 0 0 16px var(--glow);
}
.steps h3 { font-size: 1.25rem; color: #fff; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* System requirements */
.sysreq-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 820px) { .sysreq-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.sysreq-wrap .section-lead { margin-bottom: 0; }
.sysreq { padding: .4rem 1.4rem; }
.sysreq dl { margin: 0; }
.sysreq dl > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.sysreq dl > div:last-child { border-bottom: 0; }
.sysreq dt { color: var(--muted); font-size: .9rem; }
.sysreq dd { margin: 0; color: #fff; font-weight: 500; font-size: .95rem; }

/* FAQ */
.faq { margin-bottom: .7rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.5rem; font-weight: 300; line-height: 1;
}
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 1.25rem 1.1rem; color: var(--muted); margin: 0; font-size: .95rem; }

/* CTA band */
.cta-band {
  text-align: center; padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(50% 80% at 50% 100%, rgba(255,138,31,.16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: #fff; margin-bottom: .6rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.6rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Discord accent on ghost buttons */
.btn-discord:hover { border-color: #5865f2; color: #fff; background: rgba(88,101,242,.14); }
.btn-discord .btn-ico { color: #7d88f5; }
.btn-discord:hover .btn-ico { color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.5rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.footer-nav a { color: var(--muted); font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { border-top: 1px solid var(--line); padding: 1.2rem 0 1.6rem; }
.footer-legal p { color: var(--muted); font-size: .8rem; margin: 0; }

/* Download page */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin-bottom: .6rem; }
.dl-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { padding: 1.8rem; }
.dl-card h2 { font-size: 1.6rem; color: #fff; margin-bottom: .3rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .85rem; margin: .5rem 0 1.4rem; }
.dl-meta b { color: var(--text); }
.dl-card .btn { width: 100%; }
.dl-alt { margin-top: .9rem; font-size: .88rem; color: var(--muted); text-align: center; }
.notice {
  margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: rgba(255,138,31,.07); border: 1px solid rgba(255,138,31,.3); font-size: .9rem;
}
.notice b { color: var(--accent); }
.notice p { margin: 0; }
.notice p + p { margin-top: .5rem; }
.install ol { padding-left: 1.2rem; margin: 0; color: var(--muted); font-size: .95rem; }
.install li { margin-bottom: .5rem; }
.install li b { color: var(--text); }
.hidden { display: none !important; }

/* Legal pages */
.legal { padding: 2.5rem 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; margin: 2.5rem 0 .3rem; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; color: #fff; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--text); font-size: .97rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
[data-lang-block] { display: none; }
[data-lang-block].is-active { display: block; }
