/* ============================================================
   Skidarmor — shared theme (tokens, base, topbar, buttons, modals)
   Dark "armor" aesthetic: deep black, crimson red, chrome silver.
   ============================================================ */

:root {
  --bg:        #07070a;
  --bg-2:      #0c0c11;
  --panel:     #121219;
  --panel-2:   #16161f;
  --elev:      #1b1b25;
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.13);

  --red:       #e5121f;
  --red-2:     #ff2534;
  --red-deep:  #a30b14;
  --red-glow:  rgba(229,18,31,.55);
  --red-soft:  rgba(229,18,31,.12);

  --text:      #edeef2;
  --muted:     #9a9aa8;
  --muted-2:   #6d6d7a;

  --ok:        #34d17a;
  --warn:      #f5a623;
  --danger:    #ff4d5e;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.8);
  --shadow-red:0 0 40px -8px var(--red-glow);

  --font:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display:   'Chakra Petch', var(--font);

  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* animated background glows */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60vw 60vw at 15% -5%, rgba(229,18,31,.16), transparent 60%),
    radial-gradient(50vw 50vw at 100% 10%, rgba(229,18,31,.10), transparent 55%),
    radial-gradient(70vw 40vw at 50% 120%, rgba(120,10,16,.14), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.chrome-text {
  background: linear-gradient(180deg, #ffffff 0%, #d7d7df 38%, #8a8a95 62%, #e9e9ef 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.red-text { color: var(--red-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red-2);
}

/* ---- facts marquee ---- */
.facts {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 50%, var(--red-deep));
  border-bottom: 1px solid rgba(0,0,0,.35);
  overflow: hidden; white-space: nowrap;
}
.facts--band { border-top: 1px solid rgba(0,0,0,.4); box-shadow: 0 12px 40px -20px var(--red-glow); }
.facts__track {
  display: inline-flex; align-items: center; gap: 0;
  padding: 7px 0; animation: marquee 26s linear infinite;
}
.facts:hover .facts__track { animation-play-state: paused; }
.facts__item {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  padding: 0 26px; display: inline-flex; align-items: center; gap: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.facts__item::after { content: "◆"; color: rgba(255,255,255,.55); font-size: 9px; margin-left: 26px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,8,11,.72);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.topbar.scrolled { background: rgba(8,8,11,.92); box-shadow: 0 10px 30px -18px #000; }
.topbar__inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { height: 38px; width: 38px; object-fit: contain; filter: drop-shadow(0 0 10px var(--red-glow)); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand__name b { color: var(--red-2); }
.brand__tld { color: var(--muted-2); font-size: 12px; font-weight: 600; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav a {
  color: var(--muted); font-weight: 500; font-size: 14.5px;
  padding: 8px 14px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.topbar__spacer { flex: 1; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

/* ---- buttons ---- */
.btn {
  --pad: 11px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: .02em;
  padding: var(--pad); border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .25s, background .25s, border-color .25s, color .2s;
  white-space: nowrap; user-select: none; background: none; color: var(--text);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(180deg, var(--red-2), var(--red) 60%, var(--red-deep));
  color: #fff; box-shadow: 0 8px 24px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.25);
  border-color: rgba(255,120,120,.35);
}
.btn-primary:hover { box-shadow: 0 12px 34px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--red); color: #fff; transform: translateY(-2px); }

.btn-outline { border-color: var(--border-2); color: var(--muted); }
.btn-outline:hover { border-color: var(--red); color: #fff; }

.btn-sm { --pad: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { --pad: 15px 28px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-danger { background: rgba(255,77,94,.12); border-color: rgba(255,77,94,.4); color: #ff8791; }
.btn-danger:hover { background: rgba(255,77,94,.2); color: #fff; }

/* ---- badges / pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted);
}
.badge-red { background: var(--red-soft); border-color: rgba(229,18,31,.4); color: #ff6b76; }
.badge-ok { background: rgba(52,209,122,.12); border-color: rgba(52,209,122,.4); color: var(--ok); }
.badge-warn { background: rgba(245,166,35,.12); border-color: rgba(245,166,35,.4); color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.off { background: var(--muted-2); box-shadow: none; }

/* ---- cards / panels ---- */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0)) , var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---- forms ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: .01em; }
.input, textarea.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: #0a0a0e; }
.input.mono { font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace; letter-spacing: .06em; }
.hint { font-size: 12.5px; color: var(--muted-2); margin-top: 7px; }

/* ---- modal ---- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(3,3,5,.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.modal-scrim.open { display: flex; opacity: 1; }
.modal {
  width: 100%; max-width: 430px; background: var(--panel-2);
  border: 1px solid var(--border-2); border-radius: 20px; box-shadow: var(--shadow), var(--shadow-red);
  padding: 30px; transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .3s;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal-scrim.open .modal { transform: none; opacity: 1; }
.modal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.modal__head img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px var(--red-glow)); }
.modal h3 { font-size: 23px; }
.modal__sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal__foot { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }
.modal__foot a { color: var(--red-2); font-weight: 600; cursor: pointer; }
.modal__x { margin-left: auto; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; background: none; border: none; padding: 4px; }
.modal__x:hover { color: #fff; }

/* form-level error / success text */
.form-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 9px; margin-bottom: 16px; display: none; }
.form-msg.err { display: block; background: rgba(255,77,94,.1); border: 1px solid rgba(255,77,94,.35); color: #ff9aa2; }
.form-msg.ok  { display: block; background: rgba(52,209,122,.1); border: 1px solid rgba(52,209,122,.35); color: #7ee6a8; }

/* ---- toast ---- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--elev); border: 1px solid var(--border-2); border-left: 3px solid var(--red);
  padding: 13px 16px; border-radius: 11px; box-shadow: var(--shadow); min-width: 240px; max-width: 340px;
  font-size: 14px; transform: translateX(120%); transition: transform .35s cubic-bezier(.2,.9,.3,1); }
.toast.show { transform: none; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---- misc ---- */
.mono { font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace; }
.hidden { display: none !important; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 9px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3a3a48; background-clip: content-box; }

@media (max-width: 860px) {
  .nav { display: none; }
  .topbar__inner { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
