/* ============================================================================
   fcceve.win — Frontier Collective Corporation

   Built to read as the EVE client: translucent HUD windows on a nebula, square
   corners, hairline cool-grey borders, amber selection highlights, and dense
   uppercase micro-labels. Titillium Web stands in for the client's Klavika /
   Shentox; IBM Plex Sans carries running copy at comfortable web sizes.
   Fonts are self-hosted so the CSP never has to admit a third-party host.
   ========================================================================= */

@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/titillium-web-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/titillium-web-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/titillium-web-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap;
}

:root {
  /* Space, sampled off the client: neutrals carry a blue bias, never flat grey. */
  --void:      #04070b;
  --hull:      #080d13;
  --hull-2:    #0c141d;
  --panel:     rgba(11, 18, 26, .88);
  --panel-sol: #0b121a;

  --line:      #1b2836;
  --line-hi:   #2f4a63;

  --ink:       #d3dde6;
  --ink-dim:   #7f95a8;
  --ink-faint: #6b8093;

  /* The one bold spend. EVE's selection amber; everything else stays quiet. */
  --amber:     #ff9e1b;
  --amber-dim: rgba(255, 158, 27, .14);
  --teal:      #45c8d4;
  --rust:      #9a4a26;

  --ui:   "Titillium Web", "Segoe UI", Tahoma, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut:  24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffb84d; text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ui);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .55em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: #05080c; padding: 10px 18px;
  font-family: var(--ui); font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* --- the client's micro-label: uppercase, tracked out, tiny ------------- */
.label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- target brackets: the four corner L's the client draws on a lock ---- */
.brackets { position: relative; }
.brackets::before,
.brackets::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid var(--line-hi);
  pointer-events: none;
  transition: border-color .2s ease;
}
.brackets::before { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.brackets::after  { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }
.brackets:hover::before,
.brackets:hover::after { border-color: var(--amber); }

/* ========================= top bar ====================================== */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 7, 11, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { border: 1px solid var(--line-hi); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b {
  font-family: var(--ui); font-size: 16px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.brand-txt i {
  font-style: normal; font-family: var(--ui); font-weight: 600;
  font-size: 11px; letter-spacing: .2em; color: var(--amber);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--ui); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); padding: 10px 15px;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.on { color: var(--ink); background: rgba(255, 158, 27, .06); border-bottom-color: var(--amber); text-decoration: none; }
.nav .nav-auth {
  color: var(--amber); border: 1px solid var(--line-hi);
  border-bottom-width: 1px; margin-left: 12px; padding: 9px 16px;
}
.nav .nav-auth:hover { border-color: var(--amber); background: var(--amber-dim); color: #ffb84d; }

.navtoggle, .burger { display: none; }

/* ========================= hero ========================================= */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;

  /* The scene photograph carries the hero. Two scrims sit over it: a
     horizontal one that darkens the text side to keep copy legible (and quiets
     the freighter already in the shot), and a vertical one that seats the
     image into the black page above and below. */
  background-color: var(--void);
  background-image:
    linear-gradient(96deg,
      rgba(4, 7, 11, .96) 0%, rgba(4, 7, 11, .93) 32%, rgba(4, 7, 11, .74) 50%,
      rgba(4, 7, 11, .38) 61%, rgba(4, 7, 11, .18) 73%, rgba(4, 7, 11, .26) 100%),
    linear-gradient(180deg,
      rgba(4, 7, 11, .58) 0%, rgba(4, 7, 11, .05) 26%,
      rgba(4, 7, 11, .16) 62%, rgba(4, 7, 11, .82) 100%),
    url("/assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center, center, 58% 46%;
  background-repeat: no-repeat;
}

/* The client's faint horizontal texture. Hero only — never behind body copy. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}

/* Maelstrom, bleeding off the right edge the way the client frames a hull. */
.hero-in { position: relative; z-index: 3; padding: 88px var(--gut) 72px; }

.hero .label { display: block; margin-bottom: 22px; color: var(--amber); }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hero h1 .h1-sub {
  display: block;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: .1em;
  font-size: clamp(20px, 2.6vw, 30px);
  margin-top: 6px;
}

.hero-rule {
  width: 92px; height: 2px; background: var(--amber);
  margin: 26px 0 24px;
}

.lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0 0 34px;
}
.lede b { color: var(--ink); font-weight: 600; }
.lede .o7 { font-family: var(--ui); font-weight: 700; color: var(--amber); letter-spacing: .06em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

/* --- buttons: rectangular, tracked, the client's own control language --- */
.btn {
  display: inline-block;
  font-family: var(--ui); font-weight: 600; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: #05080c; border-color: var(--amber); }
.btn-primary:hover { background: #ffb84d; border-color: #ffb84d; color: #05080c; }
.btn-ghost { border-color: var(--line-hi); color: var(--ink); background: rgba(11, 18, 26, .6); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.btn-lg { padding: 17px 36px; font-size: 13.5px; }

/* --- hero readout: the overview's tabular numbers ---------------------- */
.hero-stats {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0;
}
.hero-stats li { padding: 0 30px; border-left: 1px solid var(--line); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats b {
  display: block;
  font-family: var(--ui); font-weight: 700; font-size: 30px;
  font-variant-numeric: tabular-nums;
  color: var(--ink); line-height: 1.15;
}
.hero-stats span {
  font-family: var(--ui); font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
}

/* ========================= window sections ============================== */

.band { padding: 76px 0; border-bottom: 1px solid var(--line); background: var(--void); }
.band-alt { background: var(--hull); }

/* Section head styled as a client window's caption bar. */
.winhead {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 26px;
}
.winhead h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0;
}
.winhead .label { margin-left: auto; white-space: nowrap; }

.sec-lede { color: var(--ink-dim); max-width: 64ch; margin: 0 0 40px; }

/* ========================= pillars ====================================== */

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); gap: 18px; }

.pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, background .2s ease;
}
.pillar:hover { border-color: var(--line-hi); background: rgba(15, 24, 34, .92); }

.pillar-ship {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 55%, #12202e 0%, #060a10 74%);
}
/* CCP's render endpoint bakes a magenta nebula behind the hull. Left alone it
   reads as a stock photo strip pasted onto the panel, so it gets pulled back
   toward the site's blues and vignetted into the panel edges. */
.pillar-ship img {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1.02);
  /* Square source, letterbox target: cover so there is never a seam at the
     card edges, and let the crop take the empty top and bottom of the render. */
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.52) contrast(1.05) brightness(.98);
  transition: transform .5s ease;
}
.pillar:hover .pillar-ship img { transform: translate(-50%, -50%) scale(1.09); }
.pillar-ship::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 92% at 50% 44%, transparent 56%, rgba(6, 10, 16, .55) 100%),
    linear-gradient(180deg, rgba(6, 10, 16, .30) 0%, rgba(6, 10, 16, 0) 26%,
                            rgba(6, 10, 16, .48) 66%, rgba(11, 18, 26, .96) 100%);
}
.pillar-ship .hull {
  position: absolute; left: 14px; bottom: 9px; z-index: 2;
  font-family: var(--ui); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
}

.pillar-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.pillar h3 {
  font-size: 19px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px;
}
.pillar-lede {
  font-family: var(--ui); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
.pillar-body > p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.62; margin: 0 0 18px; }

.tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tags li {
  font-family: var(--ui); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line); padding: 4px 8px;
}

/* ========================= corp ========================================= */

.corp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.corp-copy p { color: var(--ink-dim); max-width: 66ch; }
.corp-copy b { color: var(--ink); font-weight: 600; }
.corp-copy .beer {
  border-left: 2px solid var(--amber);
  background: var(--amber-dim);
  padding: 14px 20px;
  color: var(--ink); font-style: italic;
  margin: 26px 0 0;
}

/* The Show Info window. */
.corp-card { background: var(--panel-sol); border: 1px solid var(--line); position: sticky; top: 92px; }
.corp-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #101a25 0%, #0b121a 100%);
}
.corp-card-head img { border: 1px solid var(--line-hi); flex: none; }
.corp-card-head h3 {
  font-size: 13.5px; margin: 0; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1.25;
}
.corp-card-head .tick {
  display: block; font-family: var(--ui); font-weight: 600;
  font-size: 11px; letter-spacing: .2em; color: var(--amber);
}

.facts { margin: 0; padding: 6px 16px 14px; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt {
  font-family: var(--ui); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.facts dd {
  margin: 0; font-family: var(--ui); font-size: 14px; color: var(--ink);
  text-align: right; font-variant-numeric: tabular-nums;
}

.corp-links { display: flex; margin: 0; border-top: 1px solid var(--line); }
.corp-links a {
  flex: 1; text-align: center; padding: 12px 8px;
  font-family: var(--ui); font-weight: 600; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  border-right: 1px solid var(--line); color: var(--ink-dim);
}
.corp-links a:last-child { border-right: 0; }
.corp-links a:hover { background: var(--amber-dim); color: var(--amber); text-decoration: none; }

/* ========================= join ========================================= */

/* Numbered because joining genuinely is a sequence — you cannot apply before
   you have talked to someone, and the portal comes after you are accepted. */
.steps { list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 18px; }
.steps li { background: var(--panel); border: 1px solid var(--line); padding: 22px 20px 20px; }
.step-n {
  display: block;
  font-family: var(--ui); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; color: var(--amber); margin-bottom: 12px;
}
.steps h3 { font-size: 15.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.steps p { color: var(--ink-dim); font-size: 14px; line-height: 1.6; margin: 0; }

.join-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.join-cta h3 {
  font-size: 15px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink); margin-bottom: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  color: var(--ink-dim); font-size: 14.5px; line-height: 1.55;
  padding: 9px 0 9px 24px; position: relative;
}
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 7px; height: 7px; border: 1px solid var(--amber); background: var(--amber-dim);
}

.final-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  border: 1px solid var(--line-hi); background: var(--panel);
  padding: 26px 28px; margin: 0;
}
.final-cta span { color: var(--ink-dim); font-size: 14.5px; }
.final-cta b { color: var(--ink); font-weight: 600; }

/* ========================= footer ======================================= */

.foot { background: var(--hull); border-top: 1px solid var(--line); padding: 40px 0 0; }
.foot-in {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border: 1px solid var(--line); }
.foot-brand b {
  display: block; font-family: var(--ui); font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .05em;
}
.foot-brand span {
  display: block; font-family: var(--ui); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-links a {
  font-family: var(--ui); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
}
.foot-links a:hover { color: var(--amber); text-decoration: none; }

.foot-legal { padding: 22px var(--gut) 38px; }
.foot-legal p { margin: 0 0 8px; color: var(--ink-faint); font-size: 12px; max-width: 80ch; line-height: 1.6; }
.foot-legal .powered {
  font-family: var(--ui); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 14px 0 6px;
}
.foot-legal .powered a { color: var(--ink-dim); }
.foot-legal .powered a:hover { color: var(--amber); text-decoration: none; }

.foot-legal .sdg {
  font-family: var(--ui); font-style: italic; color: var(--ink-dim);
  letter-spacing: .1em; font-size: 12.5px;
}

/* ========================= responsive =================================== */

@media (max-width: 900px) {
  .corp-grid, .join-cta { grid-template-columns: 1fr; gap: 32px; }
  .corp-card { position: relative; top: auto; }
  .hero { min-height: 0; background-position: center, center, 66% 44%; }
  .hero-in { padding: 64px var(--gut) 56px; }
  .band { padding: 56px 0; }
  .hero-stats li { padding: 0 20px; }

  .burger {
    display: block; margin-left: auto; width: 42px; height: 42px;
    border: 1px solid var(--line-hi); cursor: pointer; position: relative;
  }
  .burger span,
  .burger span::before,
  .burger span::after {
    content: ""; position: absolute; left: 12px; width: 17px; height: 2px;
    background: var(--ink);
  }
  .burger span { top: 20px; }
  .burger span::before { top: -6px; left: 0; }
  .burger span::after  { top: 6px;  left: 0; }

  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel-sol); border-bottom: 1px solid var(--line-hi); padding: 6px;
  }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav a { padding: 14px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
  .nav a:hover, .nav a.on { border-bottom-color: var(--line); border-left-color: var(--amber); }
  .nav .nav-auth { margin: 8px 0 0; text-align: center; border: 1px solid var(--line-hi); }
}

@media (max-width: 460px) {
  .hero-stats li { padding: 8px 16px; border-left: 0; flex: 1 0 44%; }
  .hero-stats { gap: 4px 0; }
}

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