/* Arx Security — citadel green and gold. A short page: the thesis line, what ArxCore does, trust and contact. Green carries actions and identity; gold is an accent only (never body text on light backgrounds). */
:root {
  --bg: #f6f7f2; --surface: #ffffff; --ink: #0f1712; --ink-2: #45524a; --muted: #66726a; --line: #dde3dc;
  --brand: #0b7a4b; --brand-strong: #075c38; --brand-soft: #e2f2e8; --on-brand: #ffffff;
  --gold: #f5c518; --gold-ink: #6b4f00; --gold-soft: #fdf3c8;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step-0: 1rem; --step-1: 1.125rem; --step-2: 1.45rem; --step-3: clamp(1.8rem, 3.6vw, 2.5rem); --step-4: clamp(2.6rem, 7vw, 5.2rem);
  --wrap: 74rem; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a120e; --surface: #111c16; --ink: #eef3ee; --ink-2: #b5c2b9; --muted: #8a978f; --line: #213128;
    --brand: #2fbf71; --brand-strong: #5fd696; --brand-soft: #123222; --on-brand: #04130a;
    --gold: #ffd34d; --gold-ink: #ffd34d; --gold-soft: #2c2610;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a120e; --surface: #111c16; --ink: #eef3ee; --ink-2: #b5c2b9; --muted: #8a978f; --line: #213128;
  --brand: #2fbf71; --brand-strong: #5fd696; --brand-soft: #123222; --on-brand: #04130a;
  --gold: #ffd34d; --gold-ink: #ffd34d; --gold-soft: #2c2610;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-body); padding-inline: 20px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, main:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font: 500 0.78rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.12rem/1 var(--font-display); text-decoration: none; letter-spacing: -0.01em; }
.brand b { font-weight: 500; color: var(--ink-2); }
.logo { width: 34px; height: 34px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font: 600 0.92rem/1 var(--font-body);
  text-decoration: none; background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; touch-action: manipulation; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang select { appearance: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 10px; font: 500 0.82rem/1 var(--font-mono); cursor: pointer; }

/* hero */
.hero { padding-block: clamp(56px, 10vw, 112px) clamp(40px, 6vw, 72px); display: grid; gap: 22px; justify-items: start; }
.thesis { font-size: var(--step-4); font-weight: 800; line-height: 1.02; }
.thesis .every { color: var(--muted); font-weight: 700; }
.thesis .verb { color: var(--brand); position: relative; white-space: nowrap; }
.thesis .verb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.11em; background: var(--gold); border-radius: 2px; z-index: -1; }
.rotor { display: inline-block; position: relative; z-index: 0; }
.rotor.swap { animation: swap 520ms cubic-bezier(.2,.7,.2,1); }
@keyframes swap { from { transform: translateY(0.35em); opacity: 0; } to { transform: none; opacity: 1; } }
.lede { max-width: 36rem; font-size: var(--step-1); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* sections */
section { padding-block: clamp(44px, 7vw, 80px); border-top: 1px solid var(--line); }
.sec-title { font-size: var(--step-3); line-height: 1.1; margin-bottom: 28px; }
.sub { color: var(--ink-2); margin-top: -18px; }

/* capabilities */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 14px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.cap:first-child { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.cap h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.cap p { color: var(--ink-2); font-size: 0.93rem; }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 500 0.72rem/1.2 var(--font-mono);
  color: var(--gold-ink); background: var(--gold-soft); white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.live { color: var(--brand); background: var(--brand-soft); }
/* NightOwl: its one-line description sits between the title and the cards, so it takes the gap the title would have had */
#nightowl .sub { margin-bottom: 28px; }

/* trust */
.found { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.found div { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.found h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.found p { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 900px) { .found { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .found { grid-template-columns: minmax(0, 1fr); } }

/* contact */
.close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.close .sec-title { margin-bottom: 18px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact .addr { font: 500 0.95rem/1 var(--font-mono); padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); user-select: all; overflow-wrap: anywhere; }
.copy-note { font-size: 0.8rem; color: var(--muted); min-height: 1em; }
footer { border-top: 1px solid var(--line); padding-block: 24px 36px; color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) { .rotor.swap { animation: none; } .btn { transition: none; } }
