/* CnCTA Xenn0X AutoSIM v1: project page. Dark "command console" look, Tiberium green. Own file, not part of the site theme. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #07090d;
  --bg-alt: #0a0e14;
  --panel: #0e141c;
  --panel-2: #131b26;
  --line: #1f2b3a;
  --text: #e6edf5;
  --muted: #8d9db3;
  --tib: #5df08a;          /* Tiberium green */
  --tib-dim: #1c6b40;
  --amber: #ffb340;
  --red: #ff6b6b;
  --air: #5ad1ff;
  --radius: 14px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--tib); }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
abbr { text-decoration: underline dotted; cursor: help; }
.two > div { min-width: 0; }
code { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--tib); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tib); color: #04130a; padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 19px/1 var(--font); letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.brand i { font-style: normal; color: var(--tib); }
.sep { color: var(--muted); }
.crumb { color: var(--muted); font-weight: 600; font-size: 15px; }
.spacer { flex: 1; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav { display: none; } }

/* hero */
.hero { padding: 64px 0 56px; position: relative; background: radial-gradient(60% 70% at 85% 0%, color-mix(in srgb, var(--tib) 14%, transparent), transparent 70%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px) 0 0 / 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { font: 700 13px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--tib); margin: 0 0 16px; }
h1 { font: 700 clamp(38px, 6.2vw, 66px)/1.02 var(--font); letter-spacing: -.035em; margin: 0 0 20px; }
h1 span { color: var(--tib); }
h1 .z { font-family: var(--mono); font-weight: 700; font-size: .92em; }
h1 small { font-size: .5em; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #c3cfdf; max-width: 54ch; margin: 0 0 22px; }
.lead b { color: var(--text); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; }
.badges li { font: 600 13px/1 var(--font); color: var(--tib); border: 1px solid var(--tib-dim); background: color-mix(in srgb, var(--tib) 8%, transparent); padding: 8px 12px; border-radius: 999px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1 var(--font); padding: 14px 20px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--tib); color: #04130a; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--panel); }
.btn.ghost:hover { border-color: var(--tib); }
.btn.small { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: default; filter: none; }

.dlnote { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.file code { word-break: break-all; }

/* demo panel */
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .8), 0 0 0 1px color-mix(in srgb, var(--tib) 6%, transparent) inset; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.panel h2 { font: 700 18px/1.2 var(--font); margin: 0; letter-spacing: -.01em; }
.panel-sub { margin: 2px 0 0; font-size: 13px; color: var(--amber); }
.ver { font: 700 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.board-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.board { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; padding: 10px; background: #080c11; border: 1px solid var(--line); border-radius: 12px; }
.cell { aspect-ratio: 1; border-radius: 6px; background: #0f1620; border: 1px solid #172230; display: grid; place-items: center; position: relative; }
.cell.target { background: color-mix(in srgb, var(--tib) 10%, #0f1620); border-color: color-mix(in srgb, var(--tib) 35%, #172230); }
.u { display: block; width: 62%; height: 62%; border-radius: 50%; }
.u.inf { background: #aab8ca; }
.u.veh { background: var(--amber); border-radius: 4px; }
.u.air { background: var(--air); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.u.cmd { background: transparent; border: 3px solid var(--tib); box-shadow: 0 0 10px var(--tib); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0; font-size: 12.5px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .u, .legend .cell { width: 14px; height: 14px; }
.legend .cell { aspect-ratio: auto; border-radius: 3px; }
.fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 0 0 14px; }
.fields div { background: #0a1017; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.fields dt { font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fields dd { margin: 0; font: 600 14px/1.3 var(--mono); color: var(--text); }
.fields dd span { color: var(--muted); font-weight: 400; white-space: nowrap; }
.run { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress { flex: 1; height: 8px; border-radius: 6px; background: #0a1017; border: 1px solid var(--line); overflow: hidden; }
.progress #bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--tib-dim), var(--tib)); transition: width .25s ease; }
.count { font: 600 13px/1 var(--mono); color: var(--muted); min-width: 52px; text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #0a1017; }
.sims { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.sims th { text-align: left; font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sims td { padding: 8px 10px; border-bottom: 1px solid #141d29; font-family: var(--mono); white-space: nowrap; }
.sims td:nth-child(2) { font-family: var(--font); white-space: normal; min-width: 150px; color: #c3cfdf; }
.sims tbody tr:last-child td { border-bottom: 0; }
.sims tr.best td { background: color-mix(in srgb, var(--tib) 10%, transparent); color: var(--text); }
.sims tr.best td:first-child { box-shadow: inset 3px 0 0 var(--tib); }
.sims tr.new { animation: rowin .35s ease; }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } }
.ok { color: var(--tib); font-weight: 700; }
.no { color: var(--red); }
.status { margin: 12px 0 0; font-size: 14px; color: #c3cfdf; min-height: 1.6em; }
.status b { color: var(--tib); }
.panel-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
h2 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--font); letter-spacing: -.025em; margin: 0 0 12px; }
h3 { margin: 0; }
.sub { color: var(--muted); max-width: 70ch; margin: 0 0 30px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--tib-dim); border-radius: var(--radius); padding: 22px; }
.card h3 { font: 700 19px/1.25 var(--font); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--tib) 14%, transparent); color: var(--tib); font: 700 14px/1 var(--mono); }
.card p { margin: 0; color: #b4c1d3; font-size: 15.5px; }
.prio { margin-top: 28px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); }
.prio h3 { font: 700 18px/1.2 var(--font); margin-bottom: 8px; }
.prio p { margin: 0 0 10px; color: #b4c1d3; }
.prio-main { color: #c3cfdf !important; }
.prio-main b { color: var(--tib); }
.steps { margin: 0 0 22px; padding: 0; counter-reset: s; list-style: none; display: grid; gap: 12px; max-width: 820px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: #c3cfdf; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--tib) 14%, transparent); color: var(--tib); font: 700 15px/1 var(--mono); }
.steps b { color: var(--text); }
.callout { max-width: 820px; margin: 0; padding: 16px 18px; border-left: 4px solid var(--amber); background: color-mix(in srgb, var(--amber) 7%, transparent); border-radius: 0 12px 12px 0; color: #d6dde8; }
.callout b { color: var(--amber); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font: 700 clamp(26px, 3vw, 34px)/1.1 var(--mono); color: var(--tib); margin-bottom: 8px; letter-spacing: -.02em; }
.stat span { color: #b4c1d3; font-size: 14.5px; display: block; }
.fine { font-size: 14px; color: var(--muted); max-width: 80ch; }
.grp { font: 700 15px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; }
.pack { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pack li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: baseline; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pack li b { font-size: 16.5px; }
.pack .meta { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.pack .tag { grid-column: 2; grid-row: 1; justify-self: end; font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.pack .tag.new { color: #04130a; background: var(--tib); }
.pack .tag.chg { color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); }
.pack p { grid-column: 1 / -1; margin: 6px 0 0; color: #b4c1d3; font-size: 15px; }
.pack.plain { grid-template-columns: repeat(2, 1fr); }
.pack.plain li { grid-template-columns: 1fr; padding: 12px 14px; }
@media (max-width: 760px) { .pack.plain { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: #c3cfdf; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--tib); font-weight: 700; }
.two p { color: #b4c1d3; margin: 0; }
.code { margin: 0 0 12px; padding: 14px 16px; background: #05080c; border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); overflow-x: auto; }
.code code { background: none; border: 0; padding: 0; color: var(--tib); font-size: 15px; }
#credits p { max-width: 80ch; color: #b4c1d3; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* real screenshots */
.shots { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.shot { margin: 0; max-width: 100%; }
.shot img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px -28px rgb(0 0 0 / .85); }
.shot figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); max-width: 46ch; }
.shot figcaption b { color: var(--text); }
.shot.wide { max-width: 520px; margin: 0 0 8px; }
.shot.wide figcaption { max-width: none; }

/* video: click to load */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 960px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--tib) 16%, transparent), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px, #060a0f; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .8); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: transparent; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.video-play:hover .play-icon { transform: scale(1.06); }
.play-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--tib); display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--tib) 20%, transparent), 0 12px 30px rgb(0 0 0 / .5); transition: transform .15s ease; }
.play-icon::before { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #04130a; }
.video-title { font: 700 clamp(18px, 2.6vw, 26px)/1.25 var(--font); letter-spacing: -.01em; }
.video-note { font-size: 13.5px; color: var(--muted); max-width: 46ch; }

/* phones: keep Move, CY, DF and Repair visible, drop the Army column */
@media (max-width: 560px) {
  .sims { min-width: 0; }
  .sims th:nth-child(5), .sims td:nth-child(5) { display: none; }
  .sims th, .sims td { padding-inline: 8px; }
  .panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .play-icon { transition: none; } .progress #bar { transition: none; } .sims tr.new { animation: none; } }
