/*
 * Arma FDC. The umbrella page, after concept 03 of the 2026-09-25 mockups:
 * the wordmark filled with the Everon map, the line of fire across it. No
 * scripts: the mockup's coordinate readout under the cursor is left out. On
 * load the map arrives in tiles, nearest to the gun first, then the line is
 * drawn and the coordinates count up. Readers who ask for less motion get the
 * finished picture at once.
 */

@font-face {
  font-family: "Golos Text";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/golos-text-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* The number the coordinate labels count up to; see .num below. */
@property --n {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

:root {
  color-scheme: dark;
  --bg: #090c0a;
  --l1: #1e2a20;
  --l2: #303a31;
  --l3: #39453b;
  --t1: #eef3e8;
  --t2: #c3cebb;
  --t3: #aeb8ae;
  --t4: #8b9885;
  --t5: #7f8c7d;
  --ac: #b7d97e;
  --ac2: #bddc89;
  --amber: #ffcf52;
  --tgt: #e5484d;
  --tgt-soft: #ff7a7e;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --g: 40px;
  --maxw: 1440px;
  /*
   * Low screens only (see the one-screen layout below): what the first screen
   * holds besides the wordmark, the header and the space under it. The
   * wordmark takes the rest of the height.
   */
  --chrome: 110px;
  /* Mono labels grow a little on big monitors instead of staying 10 px specks. */
  --label: clamp(10.5px, calc(6px + .3vw), 13px);
  --cap: clamp(11px, calc(6.5px + .3vw), 13.5px);
  --ease: cubic-bezier(.2, .75, .1, 1);
  /* Where the line of fire runs, in % of the 1600 × 980 wordmark box. */
  --fl-y: 66.327%;
  --fl-gun: 6.875%;
  --fl-tgt: 90.3125%;
}

@media (max-width: 1100px) { :root { --g: 28px; } }
@media (max-width: 899px) { :root { --g: 20px; } }
@media (max-width: 599px) { :root { --g: 16px; } }
/* Wide monitors: the page grows with the screen instead of standing in a 1440 px column. */
@media (min-width: 1800px) { :root { --g: 56px; --maxw: 2240px; --chrome: 130px; } }
/* Low landscape screens, laptops above all: a tighter frame leaves the letters more height. */
@media (min-width: 900px) and (max-height: 819px) { :root { --chrome: 90px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* A column as tall as the screen: on portrait and tall monitors the page sits in the middle, the footer at the bottom. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(146, 172, 105, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 172, 105, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--t1);
  font: 400 clamp(17px, calc(12px + .33vw), 20px)/1.55 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { display: flex; flex: 1 0 auto; flex-direction: column; justify-content: center; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
::selection { background: var(--ac); color: var(--bg); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Read by screen readers and crawlers, not drawn: the wordmark is the visible heading. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--g); }

/* Labels: the product's own voice, mono, spaced, upper case. */
.kv {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  font: 500 var(--label)/1.5 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.kv .k { color: var(--t5); }
.kv .k::after { content: "/"; color: var(--l3); margin: 0 .55em; }
.kv .v { color: var(--t1); }
.kv .v.ac, .ac { color: var(--ac); }
.kv .v.amber, .amber { color: var(--amber); }

/* The motif ○──× : a gun, a line, a target. */
.i { display: block; flex: none; width: 14px; height: 14px; overflow: visible; }
.i.g { color: var(--amber); }
.i.x { color: var(--t3); }
.i.xr { color: var(--tgt); }
.motif { display: flex; align-items: center; min-width: 0; color: var(--l2); }
.motif .ml { flex: 1; height: 1px; background: currentColor; transform-origin: 0 50%; }
.motif .i.g { margin-right: -1px; }
.motif .i.x { margin-left: -1px; }

.state {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .57em .95em .57em .86em;
  border: 1px solid var(--l2);
  border-radius: 999px;
  font: 600 var(--label)/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.state::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.state.s-ready { color: var(--bg); background: var(--ac); border-color: var(--ac); }
.state.s-soon { color: var(--amber); border-color: rgba(255, 207, 82, .4); border-style: dashed; }
.state.s-soon::before { background: none; border: 1.5px solid currentColor; width: 7px; height: 7px; }

/* Header. */
.top { border-bottom: 1px solid var(--l1); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: clamp(64px, 3.3vw, 80px); }
.brand { display: inline-flex; align-items: center; gap: .62em; font: 700 clamp(16px, calc(10px + .4vw), 20px)/1 var(--sans); letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 1.75em; height: 1.75em; border-radius: 6px; }
.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: .5em 1.45em;
  border-radius: 999px;
  background: var(--ac);
  color: var(--bg);
  font: 600 var(--cap)/1 var(--mono);
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s;
}
.top-cta:hover { background: var(--ac2); }
.top-cta .arr { transition: transform .25s var(--ease); }
.top-cta:hover .arr { transform: translateX(3px); }

/* Hero. */
.hero { padding: 28px 0 8px; }

/*
 * Phones, portrait and low screens: as wide as the screen allows, and no
 * taller than the height left by the chrome. Only on a very low window does
 * it stop shrinking at half the screen width and let the bottom of the letters
 * go below the fold. Desktop monitors use the one-screen layout further down.
 */
.wm-frame { width: min(100%, max(calc((100svh - var(--chrome)) * 1.6327), 50vw)); margin: 0 auto; }
.wm { position: relative; width: 100%; aspect-ratio: 1600 / 980; container-type: inline-size; }
/*
 * The picture paints far past its box (the dim map, the letters' em boxes), and
 * a mask does not stop clicks: without pointer-events: none it lay over every
 * link on the page, the header included. Nothing in it is meant to be clicked.
 */
.wm-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wm-t { font-family: var(--sans); font-weight: 700; }
.wm-edge { fill: none; stroke: rgba(238, 243, 232, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wm-grid { fill: none; stroke: rgba(238, 243, 232, .26); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wm-back { opacity: .2; filter: saturate(.35) brightness(.75); }
.wm-contours { opacity: .5; }
.wm-mapimg { filter: saturate(.92) contrast(1.04); }

/*
 * The line of fire over the letters, locked to the map by percentages. Sizes
 * follow the wordmark's own width (cqi), each after a plain fallback, so the
 * marks and labels keep their proportion from a laptop to a 4K screen.
 */
.fl { position: absolute; inset: 0; pointer-events: none; }
.fl-line {
  position: absolute;
  left: var(--fl-gun);
  top: var(--fl-y);
  width: calc(var(--fl-tgt) - var(--fl-gun));
  height: 2px;
  translate: 0 -50%;
  background: var(--ac);
  box-shadow: 0 0 0 1px rgba(9, 12, 10, .55);
  transform-origin: 0 50%;
}
.fl-mark {
  position: absolute;
  top: var(--fl-y);
  width: 26px;
  height: 26px;
  width: clamp(18px, 2.34cqi, 34px);
  height: clamp(18px, 2.34cqi, 34px);
  translate: -50% -50%;
}
.fl-mark .i { width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.fl-gun { left: var(--fl-gun); }
.fl-gun::before { content: ""; position: absolute; inset: 23%; border-radius: 50%; background: rgba(9, 12, 10, .8); }
.fl-gun .i { position: relative; }
.fl-tgt { left: var(--fl-tgt); }
.fl-tick { position: absolute; top: var(--fl-y); width: 1px; height: 12px; height: clamp(8px, 1.08cqi, 16px); translate: 0 -50%; background: var(--ac); }
.fl-tick-1 { left: 29.375%; }
.fl-tick-2 { left: 51.875%; }
.fl-tick-3 { left: 74.375%; }
.fl-tick b {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font: 600 10px/1 var(--mono);
  font-size: clamp(9px, .9cqi, 13px);
  letter-spacing: .1em;
  color: var(--t1);
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
}
.fl-chip {
  position: absolute;
  left: 48.59%;
  top: var(--fl-y);
  transform: translate(-50%, 16px);
  transform: translate(-50%, clamp(12px, 1.44cqi, 22px));
  padding: .58em 1em;
  border: 1px solid rgba(74, 222, 128, .55);
  border-radius: 999px;
  background: rgba(9, 12, 10, .9);
  color: #7ee8a4;
  font: 500 12px/1 var(--mono);
  font-size: clamp(10px, 1.08cqi, 16px);
  white-space: nowrap;
}
.fl-lab {
  position: absolute;
  top: var(--fl-y);
  padding: .73em .9em;
  background: rgba(9, 12, 10, .82);
  color: var(--t1);
  font: 500 11px/1.5 var(--mono);
  font-size: clamp(10px, .99cqi, 15px);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
}
.fl-lab b { display: block; font-size: .955em; font-weight: 700; letter-spacing: .16em; }
.fl-lab .dim { color: var(--t2); }
.fl-lab-g { left: var(--fl-gun); transform: translate(-4px, 22px); transform: translate(-.36cqi, 2cqi); border-left: 2px solid var(--amber); }
.fl-lab-g b { color: var(--amber); }
.fl-lab-t { right: calc(100% - var(--fl-tgt)); transform: translate(4px, calc(-100% - 22px)); transform: translate(.36cqi, calc(-100% - max(22px, 2cqi))); text-align: right; border-right: 2px solid var(--tgt); }
.fl-lab-t b { color: var(--tgt-soft); }

/* The values the coordinates count up to. The digits themselves stay in the page. */
.n-gx { --n: 4922; }
.n-gy { --n: 4868; }
.n-tx { --n: 8000; }
.n-ty { --n: 2800; }

/* The tools: one live, one to come. */
.tools {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  margin-top: 26px;
  border-top: 1px solid var(--l1);
  border-bottom: 1px solid var(--l1);
}
.tools > * { min-width: 0; padding: 20px 20px 20px 0; }
.tools > * + * { padding-left: 20px; border-left: 1px solid var(--l1); }
.tools-head p { margin: 10px 0 0; max-width: 22em; color: var(--t3); font-size: clamp(14px, calc(9px + .33vw), 17px); line-height: 1.5; }
.tool { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-name { font: 700 clamp(26px, 2.6vw, 52px)/1 var(--sans); letter-spacing: -.04em; text-transform: uppercase; }
.tool-text { color: var(--t2); }
.tool-soon .tool-name { color: var(--t3); }
.cta { display: inline-flex; flex-direction: column; gap: 10px; margin-top: auto; font: 700 clamp(17px, 1.5vw, 26px)/1 var(--sans); letter-spacing: -.02em; }
.cta-t { display: inline-flex; align-items: center; gap: 12px; }
.cta .arr { font-family: var(--mono); color: var(--ac); transition: transform .3s var(--ease); }
.cta .motif { width: 100%; }
.cta .motif .ml { background: var(--l3); transition: background .3s; }
.cta .motif .i.x { transition: color .3s, transform .3s var(--ease); }
.tool-live:hover .arr, .tool-live:focus-visible .arr { transform: translateX(6px); }
.tool-live:hover .motif .ml, .tool-live:focus-visible .motif .ml { background: var(--ac); }
.tool-live:hover .motif .i.x, .tool-live:focus-visible .motif .i.x { color: var(--tgt); transform: scale(1.15); }
.motif-dim { margin-top: auto; opacity: .6; }
.motif-dim .ml { background: none; border-top: 1px dashed currentColor; height: 0; }

.footer { margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid var(--l1); color: var(--t4); font-size: clamp(13px, calc(8.5px + .3vw), 15.5px); }
.footer p { margin: 4px 0; max-width: 60em; }

/*
 * Loading, as in the mockup: the tiles open outward from the gun (delay class
 * dN is N × 0.05 s), the gun appears, the line runs to the target, the labels
 * come up in order and the coordinates count from zero.
 */
@media (prefers-reduced-motion: no-preference) {
  .wm-tile { animation: tile-in .55s var(--ease) both; }
  .wm-tile.d1 { animation-delay: .05s; }
  .wm-tile.d2 { animation-delay: .1s; }
  .wm-tile.d3 { animation-delay: .15s; }
  .wm-tile.d4 { animation-delay: .2s; }
  .wm-tile.d5 { animation-delay: .25s; }
  .wm-tile.d6 { animation-delay: .3s; }
  .wm-tile.d7 { animation-delay: .35s; }
  .wm-tile.d8 { animation-delay: .4s; }
  .wm-tile.d9 { animation-delay: .45s; }
  .wm-tile.d10 { animation-delay: .5s; }
  .wm-tile.d11 { animation-delay: .55s; }
  .wm-tile.d12 { animation-delay: .6s; }
  .wm-tile.d13 { animation-delay: .65s; }
  .wm-tile.d14 { animation-delay: .7s; }
  .wm-tile.d15 { animation-delay: .75s; }
  .wm-tile.d16 { animation-delay: .8s; }
  .wm-tile.d17 { animation-delay: .85s; }
  .wm-tile.d18 { animation-delay: .9s; }
  .wm-tile.d19 { animation-delay: .95s; }
  .wm-tile.d20 { animation-delay: 1s; }
  .wm-tile.d21 { animation-delay: 1.05s; }
  .wm-tile.d22 { animation-delay: 1.1s; }
  .wm-tile.d23 { animation-delay: 1.15s; }
  .wm-tile.d24 { animation-delay: 1.2s; }
  .fl-gun { animation: gun-in .45s .25s var(--ease) both; }
  .fl-line { animation: draw 1.5s .5s cubic-bezier(.45, .05, .2, 1) both; }
  .fl-tick-1 { animation: appear .5s .9s both; }
  .fl-tick-2 { animation: appear .5s 1.08s both; }
  .fl-tick-3 { animation: appear .5s 1.26s both; }
  .fl-lab-g { animation: appear .5s 1.44s both; }
  .fl-lab-t { animation: appear .5s 1.62s both; }
  .fl-tgt { animation: tgt-in .42s 1.95s var(--ease) both; }
  .fl-chip { animation: appear .5s 2.15s both; }
  /* The page's digits stay in place, see-through; the count runs over them, right-aligned, so nothing shifts. */
  .num { position: relative; color: transparent; text-shadow: none; counter-reset: n var(--n); animation: count 1.1s .7s cubic-bezier(.33, 1, .68, 1) both; }
  .num::after { content: counter(n); position: absolute; top: 0; right: 0; color: var(--t1); text-shadow: 0 1px 3px rgba(0, 0, 0, .95); }
}
@keyframes tile-in { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes appear { from { opacity: 0; } }
@keyframes gun-in { from { opacity: 0; transform: scale(.4); } }
@keyframes tgt-in { from { opacity: 0; transform: scale(1.8) rotate(45deg); } }
@keyframes count { from { --n: 0; } }

@media (min-width: 1800px) {
  .fl-line { height: 3px; }
  .tools > * { padding-top: 26px; padding-bottom: 26px; }
  .tools > * + * { padding-left: 28px; }
}

@media (min-width: 900px) and (max-height: 819px) {
  .top-in { min-height: 56px; }
  .hero { padding-top: 16px; }
}

/*
 * Desktop monitors, from 1080p up: the whole page on one screen, owner's
 * request of 2026-09-29. Header, meta bar, tools and footer take their natural
 * height and the wordmark gets what is left: the stage is a size container,
 * the frame the largest 1600 × 980 box that fits it.
 * If a narrow window leaves too little, the stage keeps a readable minimum
 * (the wordmark at about 42% of the page width) and the page scrolls.
 */
@media (min-width: 900px) and (min-height: 820px) and (min-aspect-ratio: 1/1) {
  main, .hero, .hero > .wrap { display: flex; flex: 1 0 auto; flex-direction: column; }
  .top-in { min-height: clamp(56px, 3vw, 72px); }
  .hero { padding: 20px 0 0; }
  .stage {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    min-height: calc(min(100vw, var(--maxw)) * .26);
    container-type: size;
  }
  .wm-frame { width: min(100cqw, 100cqh * 1.6327); }
  .tools { margin-top: 20px; }
  .tools > * { padding-top: 14px; padding-bottom: 16px; }
  .tool { gap: 8px; }
  .tool-name { font-size: clamp(24px, 1.9vw, 44px); }
  .cta { font-size: clamp(17px, 1.1vw, 22px); }
  .footer { margin-top: 0; padding: 12px 0 14px; font-size: clamp(12px, calc(7.5px + .3vw), 14px); }
  .footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 40px; }
  .footer p { margin: 0; }
}

@media (max-width: 1100px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .tools-head { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--l1); }
  .tools > :nth-child(2) { border-left: 0; padding-left: 0; }
}

/*
 * A small wordmark keeps the line, the marks and the chip, and drops the
 * labels: below about 760 px the gun label runs into the chip. Measured on the
 * wordmark itself, since a low desktop window makes it small too; the media
 * query below does the same on phones for browsers without container queries.
 */
@container (max-width: 760px) {
  .fl-lab, .fl-tick b { display: none; }
  .fl-chip { font-size: 9.5px; padding: 5px 8px; transform: translate(-50%, 10px); }
}

@media (max-width: 899px) {
  .fl-lab, .fl-tick b { display: none; }
  .fl-chip { font-size: 9.5px; padding: 5px 8px; transform: translate(-50%, 10px); }
}

@media (max-width: 599px) {
  .tools { grid-template-columns: 1fr; }
  .tools > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--l1); }
  .tools > :nth-child(2) { border-top: 0; }
  .top-cta { padding: 0 12px; font-size: 10px; letter-spacing: .1em; }
}

.not-found { padding: 0 var(--g) 10vh; text-align: center; }
.not-found h1 { margin: 0; font: 700 clamp(40px, 7vw, 72px)/1 var(--sans); letter-spacing: -.04em; text-transform: uppercase; }
.not-found p { margin: 16px 0 0; color: var(--t2); }
.not-found a { color: var(--ac); }
