:root {
  /* brand, sampled from logo.jpg */
  --brand-blue: #003098; --brand-red: #CC3030;
  --red-hi: #DD4141; --blue-hi: #0A3FB8;
  /* readable tints of the brand colours for text and lines on dark */
  --red-text: #FF6B6B; --blue-text: #7FA6FF;
  /* navy-black grounds */
  --bg: #060912; --bg2: #0A0F1C; --panel: #0E1424; --code: #111A2D; --chat: #04070E;
  --line: #1E2638; --line2: #273047; --rule: #161D2C; --ghost: #18213A;
  --text: #F3F5F9; --soft: #C5CBD8; --dim: #9AA3B5;
  --green: #4ADE80;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--red-text); }
a:hover { color: #FF9494; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }
::selection { background: var(--brand-red); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.accent { color: var(--red-text); }
.blue { color: var(--blue-text); }
.good { color: var(--green); }
.b { font-weight: 700; }
.r { text-align: right; }

/* blue | red stripe across the top, straight from the logo */
.flag-bar { height: 4px; background: linear-gradient(90deg, var(--brand-blue) 0 50%, var(--brand-red) 50% 100%); }

/* ---- nav ---- */
.topbar { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); background: rgba(6, 9, 18, 0.92); }
.nav { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-word { font: 900 30px/1 var(--display); letter-spacing: 0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 14px var(--mono); }
.nav-links a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; color: var(--soft); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn-slant, .btn-slant { background: var(--brand-red); color: #fff; font-weight: 700; padding: 0 18px; margin-left: 6px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.nav-links .btn-slant:hover { background: var(--red-hi); color: #fff; }

/* ---- shared ---- */
.kicker { display: flex; align-items: center; gap: 12px; font: 14px var(--mono); letter-spacing: 0.14em; color: var(--blue-text); text-transform: uppercase; }
h2 { font: 900 clamp(48px, 6vw, 88px)/0.9 var(--display); text-transform: uppercase; }
.section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.muted-copy { max-width: 440px; color: var(--soft); }
.band { background: var(--bg2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.grid-lines { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.btn-outline { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--red-text); background: transparent; color: var(--red-text); font: 800 20px var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-outline:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.btn-outline.inline { align-self: flex-start; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.scan { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 4px); }
.hero-ghost { position: absolute; right: -2vw; bottom: -6vw; font: 900 clamp(180px, 30vw, 460px)/0.8 var(--display); color: transparent; -webkit-text-stroke: 2px var(--ghost); letter-spacing: -0.02em; white-space: nowrap; user-select: none; }
.hero-inner { position: relative; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 110px); display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero-copy { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* map screenshot slideshow, kept faint under a navy tint so the colours stay on brand */
.hero-slides { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-slide { position: absolute; inset: -2%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; filter: saturate(0.7) contrast(1.05); }
.hero-slide.on { opacity: 0.32; animation: hero-drift 9s ease-out forwards; }
.hero-slides::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 18, 0.94) 0%, rgba(6, 9, 18, 0.72) 45%, rgba(6, 9, 18, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 9, 18, 1) 0%, rgba(6, 9, 18, 0) 35%),
    linear-gradient(105deg, rgba(0, 48, 152, 0.28) 0 58%, rgba(204, 48, 48, 0.22) 58% 100%); }
@keyframes hero-drift { from { transform: scale(1.0); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.on { animation: none; } }
.live-dot { width: 10px; height: 10px; background: var(--green); display: inline-block; flex: none; }
.live-dot.off { background: var(--dim); }
h1 { font: 900 clamp(64px, 10.5vw, 168px)/0.86 var(--display); letter-spacing: -0.01em; text-transform: uppercase; }
.lead { max-width: 620px; font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.connect { flex: 1 1 340px; max-width: 460px; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 0 18px; background: var(--panel); border: 1px solid var(--line2); font: 15px var(--mono); min-width: 0; }
.connect .prompt { color: var(--blue-text); }
.connect code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
.copy-sm { min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); background: var(--code); color: var(--text); font: 13px var(--mono); cursor: pointer; }
.copy-sm:hover { border-color: var(--blue-text); }
.btn-big { min-height: 56px; display: flex; align-items: center; padding: 0 28px; background: var(--brand-red); color: #fff; text-decoration: none; font: 800 24px var(--display); letter-spacing: 0.04em; text-transform: uppercase; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.btn-big:hover { background: var(--red-hi); color: #fff; }
.night { flex: 1 1 300px; max-width: 420px; min-width: 0; border: 1px solid var(--line2); background: rgba(14, 20, 36, 0.9); font-family: var(--mono); }
.night-head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line2); font-size: 12px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.night-body { padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.night-big { font: 900 64px/0.9 var(--display); text-transform: uppercase; }
.night-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.night-times > div { border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.night-times > div:first-child { border-top: 3px solid var(--brand-blue); }
.night-times > div:last-child { border-top: 3px solid var(--brand-red); }
.night-times span { font-size: 12px; color: var(--dim); }
.night-times b { font-size: 26px; color: var(--text); }
.night-body p { font: 15px var(--body); color: var(--soft); }

/* ---- live ticker ---- */
.ticker { display: flex; align-items: stretch; background: var(--bg2); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--brand-red); color: #fff; font: 800 18px var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.ticker-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(1) infinite; }
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 40s linear infinite; }
.t-item { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border-right: 1px solid var(--line); font: 14px var(--mono); color: var(--soft); }
.t-item b { font: 800 20px/1 var(--display); letter-spacing: 0.06em; color: var(--text); }
.t-dot { width: 8px; height: 8px; flex: none; background: var(--green); }
.t-dot.off { background: var(--red-text); }
.t-dot.idle { background: var(--dim); }
.t-hl { color: var(--red-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.t-off { color: var(--red-text); text-transform: uppercase; letter-spacing: 0.06em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0.25; } }
.blink { animation: blink 1.4s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .ticker-track, .ticker-tag-dot, .blink { animation: none; } html { scroll-behavior: auto; } }

/* ---- servers ---- */
.servers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.server { position: relative; background: var(--bg2); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.server::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-red); }
.server:nth-child(2)::before, .server:nth-child(4)::before { background: var(--brand-blue); }
.server-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); text-align: right; }
.status::before { content: ''; width: 8px; height: 8px; flex: none; background: currentColor; }
.status.on { color: var(--green); }
.status.full { color: var(--blue-text); }
.status.off { color: var(--dim); }
.status.off::before { background: var(--red-text); }
.server h3 { font: 900 64px/0.9 var(--display); }
.mode { font: 13px var(--mono); letter-spacing: 0.08em; color: var(--blue-text); text-transform: uppercase; }
.blurb { color: var(--soft); font-size: 16px; flex: 1 1 auto; }
.server-map { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr { font: 14px var(--mono); padding: 10px 12px; background: var(--code); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-note { font-size: 13px; min-height: 1.2em; }

/* ---- steps ---- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 3px solid var(--line2); }
.steps li.first { border-top-color: var(--brand-red); }
.step-n { font: 900 88px/0.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--red-text); }
.steps li:nth-child(even) .step-n { -webkit-text-stroke-color: var(--blue-text); }
.steps h3 { font: 800 32px/1 var(--display); text-transform: uppercase; }
.steps p { color: var(--soft); font-size: 16px; }

/* ---- features ---- */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.panel { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; }
.panel-copy { position: relative; padding: 24px 24px 18px; display: flex; flex-direction: column; gap: 8px; }
.panel-copy h3 { font: 800 34px var(--display); text-transform: uppercase; }
.panel-copy p { color: var(--soft); font-size: 16px; max-width: 440px; }
.ace-ghost { position: absolute; right: -10px; top: 10px; font: 900 160px/0.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--ghost); text-transform: uppercase; }
.chat { position: relative; margin: auto 24px 24px; padding: 16px 18px; background: var(--chat); border: 1px solid var(--rule); font: 14px/1.9 var(--mono); overflow-x: auto; }
.chat > div { white-space: nowrap; }
.chat-label { color: var(--dim); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.godlike { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.godlike svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.features { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.tag { font: 12px var(--mono); letter-spacing: 0.12em; color: var(--blue-text); text-transform: uppercase; }
.feature h3 { font: 800 28px/1 var(--display); text-transform: uppercase; }
.feature p { color: var(--soft); font-size: 15px; }

/* ---- ladder ---- */
.ladder { flex-direction: row; flex-wrap: wrap; }
.ladder-copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.table-box { flex: 2 1 560px; min-width: 0; border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: 15px var(--mono); min-width: 520px; }
thead tr { background: var(--panel); }
th { text-align: left; padding: 14px 16px; font-weight: 500; font-size: 12px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
th.r { text-align: right; }
td { padding: 14px 16px; border-top: 1px solid var(--rule); }

/* ---- cta: blue | red split, like the logo ---- */
.cta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(105deg, var(--brand-blue) 0 58%, var(--brand-red) 58% 100%); }
.cta-stripes { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 14px); }
.cta-inner { position: relative; padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-copy { flex: 2 1 560px; display: flex; flex-direction: column; gap: 18px; }
.cta h2 { font-size: clamp(60px, 9vw, 150px); line-height: 0.84; }
.cta-h2 { display: block; margin-top: 0.22em; font-size: 0.34em; line-height: 1; letter-spacing: 0.01em; }
.cta-copy p { max-width: 560px; font-size: 19px; font-weight: 500; }
.cta-copy .cta-live { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 10px 14px; background: var(--bg); color: #fff; font: 700 15px var(--mono); letter-spacing: 0.04em; }
.cta-copy .cta-live::before { content: ''; width: 8px; height: 8px; background: var(--green); flex: none; }
.cta-copy .cta-live[hidden] { display: none; }
.cta-act { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.btn-dark { min-height: 64px; display: flex; align-items: center; padding: 0 32px; background: var(--bg); color: #fff; text-decoration: none; font: 900 30px var(--display); letter-spacing: 0.04em; text-transform: uppercase; clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.btn-dark:hover { color: #fff; background: #000; }

/* ---- footer / toast ---- */
.foot { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font: 13px var(--mono); color: var(--dim); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-logo { height: 28px; width: auto; }
.foot-word { font: 900 22px var(--display); color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--dim); }
.foot-links a:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; background: var(--panel); border: 1px solid var(--blue-text); color: var(--text); font: 14px var(--mono); z-index: 10; }
