/* ============================================================================
   Delta Executor — main.css
   Concept: "terminal / hacker console" — a dark navy base with an electric azure
   (Delta-blue) accent. Header and footer are full-bleed; a .rail constrains content.
   The token vocabulary (--void/--plate/--pit/--volt/--fore/--edge, .rail/.prompt/
   .seg/.trigger/.token/.dxc/.loader…) is deliberately unique to this site so the
   network cannot be clustered by DOM/CSS fingerprint.
   ========================================================================== */

/* ── Fonts (self-hosted; strong fallbacks so the theme works before the woff2
   files are dropped into assets/fonts/) ─────────────────────────────────── */
@font-face { font-family:'Russo One';  src:url('../fonts/RussoOne-Regular.woff2') format('woff2');  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Rubik';      src:url('../fonts/Rubik-Regular.woff2') format('woff2');     font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Rubik';      src:url('../fonts/Rubik-SemiBold.woff2') format('woff2');    font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Roboto Mono';src:url('../fonts/RobotoMono-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --void:      #0B111C;   /* base background — dark navy */
  --plate:     #141C2B;   /* cards / panels / header / footer */
  --pit:       #070C15;   /* code blocks */
  --volt:      #2E9BF0;   /* electric azure — Delta blue: buttons, accents, active states */
  --volt-lo:   #123452;   /* dark azure — chip/badge backing */
  --volt-hi:   #57B4FF;   /* light-blue hover */
  --amber:     #F2B94B;   /* amber — "being checked" + warnings only */
  --fore:      #EAF1FB;   /* cool near-white with a blue tint */
  --faint:     #8795AB;   /* blue-grey muted text */
  --edge:      #223247;   /* borders */
  --on-volt:   #06121F;   /* text on an azure button */

  --ff-head: 'Russo One', system-ui, 'Segoe UI', Arial, sans-serif;
  --ff-text: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ff-code: 'Roboto Mono', ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;

  --rad-lg: 6px;
  --rad-md: 5px;
  --rad-sm: 4px;
  --span:   1140px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--void);
  color: var(--fore);
  font-family: var(--ff-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  /* Sticky footer: body is a flex column and <main> absorbs the free space, so on
     short pages the footer anchors to the viewport bottom instead of floating. */
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }

/* ── Content container ──────────────────────────────────────────────────── */
.rail { width: 100%; max-width: var(--span); margin: 0 auto; padding: 0 20px; }

/* ── Accessibility helpers ─────────────────────────────────────────────── */
.sr-hide {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.to-content {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--volt); color: var(--on-volt); padding: 10px 16px; font-weight: 600;
}
.to-content:focus { left: 8px; top: 8px; border-radius: var(--rad-md); }

/* ── Header — FULL-BLEED. .topstrip spans 100%; .rail inside constrains the
   content. No margin anywhere on the header → 0px above the bar. ─────────── */
.topstrip {
  width: 100%;
  background: var(--plate);
  border-bottom: 1px solid var(--edge);
  position: sticky; top: 0; z-index: 50;
}
.topstrip__inner {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;               /* spacing on the header is padding only */
}
.topstrip__inner > :first-child { margin-top: 0; }

.logo { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.logo__caret { font-family: var(--ff-code); font-weight: 500; font-size: 20px; color: var(--volt); line-height: 1; }
.logo__word { font-family: var(--ff-head); font-size: 19px; letter-spacing: .5px; color: var(--fore); }

.linkset { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.linkset__link {
  padding: 8px 12px; border-radius: var(--rad-md); color: var(--faint); font-weight: 500; font-size: 15px;
  transition: color .15s, background .15s;
}
.linkset__link:hover { color: var(--fore); background: rgba(46,155,240,.06); }
.linkset__link.is-on { color: var(--volt); }

.topstrip__cta { padding: 9px 18px; }

.langset { display: inline-flex; border: 1px solid var(--edge); border-radius: var(--rad-md); overflow: hidden; }
.langset__opt { padding: 6px 10px; font-weight: 600; font-size: 13px; color: var(--faint); }
.langset__opt + .langset__opt { border-left: 1px solid var(--edge); }
.langset__opt.is-on { color: var(--on-volt); background: var(--volt); }

/* mobile menu (CSS-only checkbox toggle) */
.navtoggle__box { display: none; }
.navtoggle { display: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; margin-left: auto; }
.navtoggle__line { width: 22px; height: 2px; background: var(--fore); border-radius: 2px; }

@media (max-width: 760px) {
  .topstrip__inner { flex-wrap: wrap; gap: 12px; }
  .navtoggle { display: flex; order: 2; }
  .linkset {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    margin-left: 0; max-height: 0; overflow: hidden; transition: max-height .2s ease;
  }
  .navtoggle__box:checked ~ .linkset { max-height: 340px; }
  .linkset__link { padding: 12px; }
  .topstrip__cta { order: 3; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.trigger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: var(--rad-md); font-weight: 600; font-size: 15px;
  font-family: var(--ff-text); cursor: pointer; border: 1px solid transparent;
  background: var(--volt); color: var(--on-volt);
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.trigger:hover { transform: translateY(-1px); background: var(--volt-hi); }
.trigger--lg { padding: 15px 30px; font-size: 17px; }
.trigger--xl { padding: 18px 46px; font-size: 20px; border-radius: 8px; }
@media (max-width: 480px) { .trigger--xl { width: 100%; padding: 16px 24px; } }
.trigger--ghost { background: transparent; color: var(--faint); border-color: var(--edge); }
.trigger--ghost:hover { background: transparent; color: var(--volt); border-color: var(--volt); transform: none; }

/* ── Hero / prompt — FULL-BLEED band with its own background. ───────────── */
.prompt {
  width: 100%;
  background:
    radial-gradient(900px 360px at 82% -12%, rgba(46,155,240,.13), transparent 62%),
    var(--void);
  border-bottom: 1px solid var(--edge);
  padding: 60px 0 52px;
}
.prompt__h1 { font-size: clamp(30px, 6vw, 52px); max-width: 20ch; text-transform: uppercase; }
.prompt__lead { color: var(--faint); font-size: clamp(16px, 2.3vw, 20px); max-width: 62ch; }
.prompt__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.prompt__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.prompt__meta { color: var(--faint); font-size: 13px; margin: 18px 0 0; font-family: var(--ff-code); }

/* ── Page scaffolding ─────────────────────────────────────────────────── */
.canvas { padding-top: 36px; padding-bottom: 24px; }
.pagetop { margin-bottom: 26px; }
.pagetop__cta { margin-top: 20px; }
.pagetop__title { font-size: clamp(26px, 5vw, 40px); text-transform: uppercase; }
.subtext { color: var(--faint); font-size: 18px; max-width: 66ch; }
.subtext a { color: var(--volt); }
.subtext a:hover { text-decoration: underline; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.seg { padding: 20px 0 12px; }
.seg--sunk { background: var(--plate); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.seg__title { font-size: clamp(21px, 3.4vw, 27px); text-transform: uppercase; margin: 0 0 14px; }
.seg__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.seg__head .seg__title { margin: 0; }
.seg__more { color: var(--volt); font-weight: 600; font-size: 15px; white-space: nowrap; }
.seg__more:hover { text-decoration: underline; }
.seg p a { color: var(--volt); }
.seg p a:hover { text-decoration: underline; }

/* honest "not available on this platform" / info notice */
.notice {
  background: var(--plate); border: 1px solid var(--edge); border-left: 3px solid var(--amber);
  border-radius: var(--rad-lg); padding: 18px 22px; margin: 4px 0 20px;
}
.notice p { margin: 0; color: var(--fore); }
.notice a { color: var(--volt); }
.notice a:hover { text-decoration: underline; }

/* empty state */
.nodata {
  background: var(--plate); border: 1px dashed var(--edge); border-radius: var(--rad-lg);
  padding: 30px; text-align: center; color: var(--faint);
}
.nodata a { color: var(--volt); }
.nodata a:hover { text-decoration: underline; }

/* generic long-form content (index.php) */
.doc { max-width: 72ch; }
.doc a { color: var(--volt); text-decoration: underline; }

/* ── Footer — FULL-BLEED like the header ───────────────────────────────── */
.endstrip {
  width: 100%;
  background: var(--plate);
  border-top: 1px solid var(--edge);
  margin-top: 64px;
}
.endstrip__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 40px 20px;
}
.endstrip__brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.logo--foot { align-items: baseline; }
.endstrip__tag { color: var(--faint); max-width: 44ch; margin: 0; font-size: 14px; }
.endstrip__discord { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--edge); border-radius: var(--rad-md); color: var(--fore); font-weight: 600; font-size: 14px; transition: border-color .15s, color .15s; }
.endstrip__discord:hover { border-color: var(--volt); color: var(--volt); }
.endstrip__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.endstrip__h { font-family: var(--ff-code); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 4px; }
.endstrip__col a { color: var(--fore); font-weight: 500; font-size: 15px; }
.endstrip__col a:hover { color: var(--volt); }
.endstrip__legal { grid-column: 1 / -1; border-top: 1px solid var(--edge); padding-top: 18px; }
.endstrip__trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; }
.endstrip__trust a { color: var(--faint); font-size: 13px; }
.endstrip__trust a:hover { color: var(--volt); }
.endstrip__disclaimer, .endstrip__copy { color: var(--faint); font-size: 13px; margin: 0 0 6px; }

@media (max-width: 720px) {
  .endstrip__inner { grid-template-columns: 1fr 1fr; }
  .endstrip__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .endstrip__inner { grid-template-columns: 1fr; }
}
