/* Shared styles for the Starforge legal/support pages.
   Plain CSS, no build step. Copied by link tag from each page. */

:root {
  --bg: #070b12;
  --panel: #111925;
  --fg: #e8eef5;
  --fg-dim: #93a6b8;
  --accent: #66f4e3;
  --accent-hot: #ff985f;
  --border: #2b3a49;
  --warn-bg: #201b12;
  --warn-border: #645027;
  --content-width: 72rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 46rem; margin: 0 auto; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .35rem; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1rem; margin: 1.6rem 0 .4rem; }

p, li { color: var(--fg); }
a { color: var(--accent); }
a:hover { color: #b7fff6; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.meta { color: var(--fg-dim); font-size: .9rem; margin: 0 0 2rem; }
.lede { font-size: 1.05rem; color: var(--fg-dim); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--fg-dim); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1rem .35rem;
  font-size: .9em;
}

ul, ol { padding-left: 1.4rem; }
li { margin: .35rem 0; }

footer {
  max-width: 46rem;
  margin: 4rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: .88rem;
}
footer a { margin-right: 1.1rem; }

.landing-page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 72% 38%, #173750aa 0, #0a172888 23rem, transparent 43rem),
    linear-gradient(145deg, #070b12 0%, #0a111c 56%, #080c12 100%);
}

.starfield {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url('/assets/stars-bg.png') center / 34rem repeat;
  opacity: .38;
  mix-blend-mode: screen;
}

.site-header,
.launch-shell,
.landing-footer { position: relative; z-index: 1; width: 100%; max-width: var(--content-width); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  gap: 1.5rem;
  border-bottom: 1px solid #91aabd24;
}

.wordmark { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--fg); font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.wordmark-starforge { font-size: 1.05rem; }
.wordmark-horizons { color: var(--accent); font-size: .72rem; letter-spacing: .2em; }
.transmission { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg-dim); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.signal-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1rem var(--accent); }
.primary-nav { display: flex; align-items: center; gap: .65rem; }
.header-link, .login-button, .primary-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid var(--border); border-radius: 2px; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.header-link { color: var(--fg); background: #111a29cc; }
.header-link:hover { border-color: var(--accent); color: var(--accent); }
.login-button { color: #74869a; background: #0b111b99; cursor: not-allowed; opacity: .7; }

.launch-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
  max-width: var(--content-width);
  padding-block: clamp(3rem, 9vh, 7rem);
}

.hero-copy { max-width: 39rem; }
.eyebrow { margin: 0 0 .85rem; color: var(--accent-hot); font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero-copy h1 { max-width: 9ch; font-size: clamp(3.5rem, 7.5vw, 6.8rem); line-height: .87; letter-spacing: -.065em; text-transform: uppercase; }
.catchphrase { margin: 1.35rem 0 .75rem; color: var(--accent); font-size: clamp(1.4rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.hero-summary { max-width: 34rem; margin: 0; color: #b7c4d1; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; margin-top: 2rem; }
.primary-cta { border-color: #66f4e37a; background: var(--accent); color: #061014; box-shadow: 0 .8rem 2rem #00000042, 0 0 1.5rem #66f4e31c; }
.primary-cta:hover { border-color: #b7fff6; background: #b7fff6; color: #061014; }

.launch-status {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin-top: 0;
  padding: .75rem .9rem;
  border: 1px solid #66f4e34d;
  border-radius: 3px;
  background: #0e1a24cc;
  box-shadow: 0 1rem 3rem #00000038;
}
.launch-status-label { color: var(--accent); font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.launch-status-detail { padding-left: .85rem; border-left: 1px solid var(--border); color: var(--fg-dim); font-size: .78rem; }

.support-links { display: flex; flex-wrap: wrap; gap: .75rem 1.35rem; margin-top: 2.25rem; }
.support-links a { min-height: 2.75rem; display: inline-flex; align-items: center; color: #cdd7e1; font-size: .82rem; font-weight: 750; letter-spacing: .04em; text-decoration-color: #66f4e366; text-transform: uppercase; }
.operator { margin: 1.1rem 0 0; color: #778b9e; font-size: .78rem; }
.operator strong { color: #a9b8c7; }

.hero-art { position: relative; width: min(100%, 34rem); margin: 0 auto; }
.hero-art::before { content: ''; position: absolute; inset: 12% -8%; z-index: -1; border-radius: 50%; background: #4cebd52b; filter: blur(4rem); }
.ship-frame { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid #a6efff42; border-radius: 3px; background: #0b121d; box-shadow: 0 2rem 5rem #00000066, inset 0 0 0 1px #ffffff0d; transform: rotate(1.25deg); }
.ship-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, #ffffff12, transparent 34%, #4cf1df12); }
.ship-frame img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hero-art figcaption { margin-top: .8rem; color: #6f8294; font: 700 .66rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-align: right; text-transform: uppercase; }

.landing-footer { display: flex; justify-content: space-between; gap: 1.5rem; max-width: var(--content-width); margin-top: 0; padding: 1.35rem 0 1.5rem; border-top: 1px solid #91aabd24; color: #66798b; font-size: .72rem; letter-spacing: .04em; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1.2rem; }
.footer-nav a { color: #91a4b7; text-decoration-color: #66f4e34d; }

@media (max-width: 760px) {
  .site-header { min-height: 4.5rem; }
  .primary-nav { gap: .4rem; }
  .header-link, .login-button { min-height: 2.6rem; padding-inline: .75rem; }
  .launch-shell { grid-template-columns: 1fr; gap: 3rem; padding-block: 3.5rem; }
  .hero-copy h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .hero-art { width: min(90vw, 27rem); }
  .launch-status { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .launch-status-detail { padding-left: 0; border-left: 0; }
  .landing-footer { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 390px) {
  .wordmark { align-items: flex-start; flex-direction: column; gap: 0; line-height: 1.2; }
  .support-links { gap: .4rem 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .signal-dot { animation: signal-pulse 2.4s ease-in-out infinite; }
  @keyframes signal-pulse { 50% { opacity: .4; box-shadow: 0 0 .35rem var(--accent); } }
}
