/* ════════════════════════════════════════════════════════════════
   CUBE — Insidious Evil Alliance — Public Homepage
   Palette mirrors app: #141414 base, #ff8c00 accent
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #0e0e0e;
  --bg-1: #141414;
  --bg-2: #1a1a1a;
  --bg-3: #212121;
  --bg-card: #1d1d1d;
  --bg-card-hover: #232323;
  --bg-input: #161616;

  --line: #2a2a2a;
  --line-2: #383838;
  --line-3: #4a4a4a;

  --ink-0: #f4f1ec;
  --ink-1: #d8d4cc;
  --ink-2: #9a9690;
  --ink-3: #6a6660;
  --ink-4: #45433f;

  --accent: #ff8c00;
  --accent-hot: #ffae3d;
  --accent-deep: #cc6f00;
  --accent-soft: rgba(255, 140, 0, 0.10);
  --accent-glow: rgba(255, 140, 0, 0.18);
  --accent-line: rgba(255, 140, 0, 0.30);

  --kill: #f44336;
  --kill-soft: rgba(244, 67, 54, 0.12);
  --loss: #ff9800;
  --good: #4caf50;
  --info: #29b6f6;

  --font-display: 'Chakra Petch', 'Helvetica Neue', sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 6px;
  --radius-lg: 10px;

  --maxw: 1240px;
}

[data-accent="hot"] {
  --accent: #ff7300;
  --accent-hot: #ffa033;
  --accent-glow: rgba(255, 115, 0, 0.28);
  --accent-line: rgba(255, 115, 0, 0.45);
}
[data-accent="muted"] {
  --accent: #c47428;
  --accent-hot: #d8893a;
  --accent-glow: rgba(196, 116, 40, 0.10);
  --accent-line: rgba(196, 116, 40, 0.20);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--accent); color: #000; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg-1);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Global texture overlays ─────────────────────────────────── */

.scanlines::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 999;
  mix-blend-mode: overlay;
}

.scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 998;
}

/* ── Top nav ─────────────────────────────────────────────────── */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 0;
  height: 56px;
  background: rgba(14, 14, 14, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 140, 0, 0.18);
}

.topnav .left { display: flex; align-items: stretch; gap: 0; }
.topnav .brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  padding-right: 32px;
}
.topnav .diamond {
  width: 16px; height: 16px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Nav crest — square mark, full nav-bar height, flush against left edge */
.nav-crest {
  width: 56px; height: 56px;
  align-self: stretch;
  margin: 0;
  background: #0a0a0a;
  border-right: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-crest img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Make sure the brand wrapper stretches so .nav-crest can match nav-bar height */
.topnav .brand { align-self: stretch; }
.topnav .left > * + * { margin-left: 0; }
.topnav .left .sub { align-self: center; padding-left: 4px; }

/* Background crest — alliance sigil as ambient watermark behind hero content */
.hero-bg-crest {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: url("/static/images/insidious/insidious-faded.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.6) brightness(1.4) contrast(1.1);
  pointer-events: none;
  z-index: 0;
}
.hero-ticker .hero-bg-crest {
  /* push slightly right so it doesn't fight the auth card */
  left: auto;
  right: -6%;
  top: 56%;
  width: min(720px, 60vw);
  opacity: 0.14;
}

/* Hero crest — display alliance sigil with breathing room */
.hero-crest {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-crest-plate {
  position: relative;
  width: 140px; height: 140px;
  display: grid;
  place-items: center;
}
/* soft halo behind the faded crest — replaces the framed plate */
.hero-crest-plate::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(80, 140, 255, 0.10) 30%, transparent 70%);
  pointer-events: none;
  filter: blur(2px);
}
.hero-crest-plate img {
  width: 100%; height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 14px rgba(80, 140, 255, 0.35))
    drop-shadow(0 0 30px rgba(255, 140, 0, 0.20));
}
.hero-crest-plate.large {
  width: 200px; height: 200px;
}
.hero-crest-plate.small {
  width: 64px; height: 64px;
}

.ticker-crest {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.topnav .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--accent);
}
.topnav .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
  display: none;
}
@media (min-width: 800px) { .topnav .sub { display: inline; } }

.topnav nav { display: flex; gap: 4px; }
.topnav nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.topnav nav a:hover { color: var(--ink-0); background: rgba(255, 255, 255, 0.04); }

.topnav .right { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px;
  gap: 1px;
}
.lang button {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 9px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .15s;
}
.lang button.active {
  background: var(--bg-3);
  color: var(--ink-0);
}
.lang button:hover:not(.active) { color: var(--ink-1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #1a0e00;
  padding: 10px 22px;
  font-size: 12px;
  border-radius: 4px;
  position: relative;
}
.btn-primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 0 0 1px var(--accent-line), 0 6px 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  padding: 10px 22px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--ink-0); }

.btn-lg { padding: 14px 28px; font-size: 13px; }

/* ── Section frame ────────────────────────────────────────────── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--ink-0);
  margin-top: 12px;
}
.section-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: right;
}
.section-head .meta strong {
  color: var(--accent);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════
   HERO — three variants
   ════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 140, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 140, 0, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-bg-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(255, 140, 0, 0.18) 0%,
    rgba(255, 140, 0, 0.06) 30%,
    transparent 65%);
  pointer-events: none;
}

/* Hero variant: STAT (default — hero number + login) */
.hero-stat { padding: 96px 32px 80px; text-align: center; position: relative; }
.hero-stat .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.hero-stat .badge .pulse {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 140, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

.hero-stat h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 14px;
  color: var(--ink-0);
  margin: 0 0 4px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 60px rgba(255, 140, 0, 0.15);
}
.hero-stat h1 .pipe {
  display: inline-block;
  width: 4px;
  background: var(--accent);
  height: 0.7em;
  margin: 0 14px -0.05em 14px;
  vertical-align: baseline;
  box-shadow: 0 0 16px var(--accent-glow);
}
.hero-stat .tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.hero-stat .stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero-stat .stat-row > div {
  background: var(--bg-1);
  padding: 22px 16px;
  text-align: center;
}
.hero-stat .stat-row .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: 1px;
  line-height: 1;
}
.hero-stat .stat-row .num .unit {
  font-size: 14px;
  color: var(--accent);
  margin-left: 2px;
  font-weight: 500;
}
.hero-stat .stat-row .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

.hero-stat .actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Hero variant: TICKER (kill ticker pinned to top of hero, flush with nav) */
.hero-ticker { padding: 0 0 80px; position: relative; }
.hero-ticker .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; padding-top: 64px; }
.hero-ticker .tape {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 0;
  overflow: hidden;
  z-index: 1;
}
.hero-ticker .tape::before,
.hero-ticker .tape::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.hero-ticker .tape::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}
.hero-ticker .tape::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}
.hero-ticker .tape .lane {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tape-scroll var(--ticker-speed, 60s) linear infinite;
  width: max-content;
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-ticker .tape .item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.5px;
}
.hero-ticker .tape .item .dot {
  width: 6px; height: 6px;
  background: var(--kill);
  border-radius: 50%;
}
.hero-ticker .tape .item .ship {
  color: var(--ink-0);
  font-weight: 500;
}
.hero-ticker .tape .item .isk {
  color: var(--accent);
  font-weight: 600;
}
.hero-ticker .tape .item .sep {
  color: var(--ink-4);
}

.hero-ticker .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-ticker .grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

.hero-ticker h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--ink-0);
  margin-bottom: 20px;
}
.hero-ticker h1 .accent { color: var(--accent); }
.hero-ticker .lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-ticker .actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }

.hero-ticker .auth-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.hero-ticker .auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, var(--accent-line), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-ticker .auth-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-0);
  margin-bottom: 4px;
}
.hero-ticker .auth-card p {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.auth-buttons { display: flex; flex-direction: column; gap: 8px; }
.auth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  font-family: var(--font-body);
}
.auth-btn:hover {
  background: var(--bg-3);
  border-color: var(--accent-line);
}
.auth-btn .ico {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.auth-btn .arrow { margin-left: auto; color: var(--ink-3); }
.auth-btn:hover .arrow { color: var(--accent); }

/* Hero variant: BIG WORDMARK (closest to original) */
.hero-mark { padding: 100px 32px 80px; text-align: center; position: relative; }
.hero-mark .diamond {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  transform: rotate(45deg);
  border-radius: 6px;
  margin: 0 auto 28px;
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 30px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}
.hero-mark h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 110px);
  font-weight: 700;
  letter-spacing: 22px;
  color: var(--ink-0);
  position: relative;
  z-index: 1;
  margin-left: 22px; /* compensate for letter-spacing */
}
.hero-mark .tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 8px 0 40px;
  position: relative;
  z-index: 1;
}
.hero-mark .actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* corner brackets shared */
.brackets {
  position: relative;
}
.brackets::before, .brackets::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--accent-line);
  pointer-events: none;
}
.brackets::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* ════════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════════ */

.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-bar .grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 720px) { .stats-bar .grid { grid-template-columns: repeat(4, 1fr); } }

.stats-bar .cell {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stats-bar .cell:last-child { border-right: none; }
@media (max-width: 719px) {
  .stats-bar .cell:nth-child(2n) { border-right: none; }
  .stats-bar .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.stats-bar .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stats-bar .delta {
  color: var(--good);
  font-size: 10px;
  font-weight: 600;
}
.stats-bar .delta.down { color: var(--ink-3); }
.stats-bar .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: 0.5px;
  line-height: 1;
}
.stats-bar .num .unit {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  margin-left: 3px;
}
.stats-bar .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════════
   KILLS — featured + recent
   ════════════════════════════════════════════════════════════════ */

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.kills-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 980px) {
  /* Rail on the left (narrow), trophy/features card on the right (wide). */
  .kills-layout { grid-template-columns: 1fr 1.6fr; gap: 32px; }
}

/* Features panel — "why join" bullets shown in the trophy slot when there's
   no top kill. Mirrors the featured-kill card chrome. */
.features-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.features-panel .panel-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.features-panel .panel-head h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-0);
}
.features-panel .panel-head .eyebrow {
  margin: 0;
}
.features-panel .features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .features-panel .features { grid-template-columns: 1fr 1fr; }
}
.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.feature-row:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 719px) {
  .feature-row { border-bottom: 1px solid var(--line); }
  .feature-row:last-child { border-bottom: 0; }
}
.feature-row .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  flex-shrink: 0;
}
.feature-row .icon svg { width: 22px; height: 22px; }
.feature-row .body .title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-0);
  margin-bottom: 4px;
}
.feature-row .body .blurb {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Featured kill card */
.featured-kill {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.featured-kill .ship-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.featured-kill .ship-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}
.featured-kill .ship-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255, 140, 0, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.featured-kill .ship-art::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px);
  z-index: 1;
  pointer-events: none;
}
.featured-kill .stamp {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(244, 67, 54, 0.18);
  border: 1px solid rgba(244, 67, 54, 0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff7b6e;
  z-index: 2;
}
.featured-kill .stamp .pulse {
  width: 6px; height: 6px;
  background: var(--kill);
  border-radius: 50%;
  animation: pulse-red 1.6s infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.featured-kill .iskbig {
  position: absolute;
  bottom: 16px; left: 20px;
  z-index: 2;
}
.featured-kill .iskbig .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: 1px;
  line-height: 0.9;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.featured-kill .iskbig .num .unit {
  color: var(--accent);
  font-size: 28px;
}
.featured-kill .iskbig .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}

.featured-kill .meta {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.featured-kill .ship-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-0);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.featured-kill .ship-info .ship-class {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.featured-kill .who {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.featured-kill .who img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.featured-kill .who .name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 500;
}
.featured-kill .who .corp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.featured-kill .footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.featured-kill .footer > div {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.featured-kill .footer > div:last-child { border-right: none; }
.featured-kill .footer .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.featured-kill .footer .v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-1);
  font-weight: 500;
}

/* Side rail of recent kills */
.kill-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kill-rail .rail-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.kill-rail .rail-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--good);
}
.kill-rail .rail-head .live .dot {
  width: 6px; height: 6px;
  background: var(--good);
  border-radius: 50%;
  animation: pulse-green 1.6s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.kill-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}
.kill-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-2);
}
.kill-row .ico {
  width: 36px; height: 36px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.kill-row .ico img { width: 100%; height: 100%; object-fit: cover; }
.kill-row .body { min-width: 0; }
.kill-row .body .top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-0);
  font-weight: 500;
}
.kill-row .body .top .sys {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  margin-left: auto;
}
.kill-row .body .bot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kill-row .isk {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}
.kill-row .isk .ago {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 2px;
}

.kill-rail .more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-top: 4px;
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .2s;
}
.kill-rail .more-link:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════
   CORPS MARQUEE — recruiting
   ════════════════════════════════════════════════════════════════ */

.corps-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.corps-marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.corps-marquee::before, .corps-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.corps-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2), transparent);
}
.corps-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2), transparent);
}
.corps-marquee .lane {
  display: flex;
  gap: 16px;
  white-space: nowrap;
  animation: corps-scroll var(--marquee-speed, 60s) linear infinite;
  width: max-content;
}
.corps-marquee:hover .lane { animation-play-state: paused; }
@keyframes corps-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.corp-card {
  flex: 0 0 auto;
  width: 320px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.corp-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.corp-card .logo {
  width: 44px; height: 44px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  overflow: hidden;
}
.corp-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.corp-card .info { min-width: 0; flex: 1; }
.corp-card .info .name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.corp-card .info .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.corp-card .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(76, 175, 80, 0.12);
  color: #6fc972;
  white-space: nowrap;
}
.corp-card .badge.full {
  background: rgba(150, 150, 150, 0.12);
  color: var(--ink-3);
}

/* corps directory grid */
.corps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.corp-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  position: relative;
}
.corp-tile:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
}
.corp-tile .logo {
  width: 48px; height: 48px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  overflow: hidden;
}
.corp-tile .logo img { width: 100%; height: 100%; object-fit: cover; }
.corp-tile .body { min-width: 0; }
.corp-tile .body .name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.corp-tile .body .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--ink-3);
}
.corp-tile .body .tags .focus {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.corp-tile .body .tags .dot {
  width: 3px; height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
}
.corp-tile .arrow {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 12px;
  color: var(--ink-4);
  transition: all .2s;
}
.corp-tile:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER + CTA
   ════════════════════════════════════════════════════════════════ */

.bottom-cta {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
    var(--bg-1);
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--line);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 140, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 140, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--ink-0);
  margin-bottom: 12px;
  position: relative;
}
.bottom-cta p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.bottom-cta .actions {
  display: inline-flex;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}

footer.foot {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
  max-width: var(--maxw);
  margin: 0 auto;
}
footer.foot .links { display: flex; gap: 20px; }
footer.foot a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s;
}
footer.foot a:hover { color: var(--accent); }
footer.foot .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
footer.foot .status .dot {
  width: 7px; height: 7px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* responsive tweaks */
@media (max-width: 760px) {
  .topnav { padding: 0 18px; }
  .topnav nav { display: none; }
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .featured-kill .meta { grid-template-columns: 1fr; }
  .featured-kill .who { justify-self: start; }
  .featured-kill .footer { grid-template-columns: 1fr; }
  .featured-kill .footer > div { border-right: none; border-bottom: 1px solid var(--line); }
  .featured-kill .footer > div:last-child { border-bottom: none; }
  .hero-stat .stat-row { grid-template-columns: 1fr; }
  .hero-stat .stat-row > div { padding: 16px; }
  .hero-stat h1 { letter-spacing: 6px; }
  .hero-mark h1 { letter-spacing: 10px; margin-left: 10px; }
  .corp-card { width: 260px; }
}

/* ─── Outline-accent button: brand-tinted ghost. Sits between the
 * filled primary and the neutral ghost so a third hero CTA (e.g.,
 * "Browse Corporations ↗") reads as on-brand without competing for
 * attention with the login button. */
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  padding: 10px 22px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--accent-line);
  position: relative;
}
.btn-outline-accent:hover {
  background: rgba(255, 140, 0, 0.08);
  border-color: var(--accent);
  color: var(--accent-hot, var(--accent));
  box-shadow: 0 0 0 1px var(--accent-line), 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-outline-accent .glyph {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92em;
  margin-left: 2px;
  opacity: 0.85;
  transition: transform .2s, opacity .2s;
}
.btn-outline-accent:hover .glyph { transform: translate(2px, -2px); opacity: 1; }

/* When .actions carries 3 children, gently tighten padding so the row
 * fits comfortably on tablet widths without forcing a wrap. Uses :has() —
 * widely supported in 2025 evergreen browsers; harmless fallback to the
 * regular btn-lg padding otherwise. */
.hero-ticker .actions:has(> :nth-child(3)) .btn-lg,
.hero-stat .actions:has(> :nth-child(3)) .btn-lg,
.hero-mark .actions:has(> :nth-child(3)) .btn-lg {
  padding: 12px 22px;
  font-size: 12.5px;
}

/* Narrow viewports: stack the trio vertically as a connected CTA cluster. */
@media (max-width: 520px) {
  .hero-ticker .actions:has(> :nth-child(3)),
  .hero-stat .actions:has(> :nth-child(3)),
  .hero-mark .actions:has(> :nth-child(3)) {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
  }
  .hero-ticker .actions:has(> :nth-child(3)) > *,
  .hero-stat .actions:has(> :nth-child(3)) > *,
  .hero-mark .actions:has(> :nth-child(3)) > * { justify-content: center; }
}
