/* ============================================================
   [C.O.E] GROUP — Arma Reforger clan site
   Colors and typography lifted directly from the Figma source.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;0,800;1,400&family=Inter:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&display=swap');

:root {
  /* Zinc scale — from Figma */
  --zinc-50:  #fafafa;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #9f9fa9;
  --zinc-500: #71717b;
  --zinc-600: #52525c;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Accents */
  --amber:   #fe9a00;
  --amber-d: #7b3306;
  --blue:    #2b7fff;
  --blue-l:  #51a2ff;
  --red:     #fb2c36;
  --red-d:   #821a1a;
  --red-dd:  #460809;
  --green:   #00bc7d;
  --green-d: #004f3b;

  --surface:     rgba(24,24,27,0.5);
  --surface-2:   rgba(9,9,11,0.8);
  --surface-3:   rgba(11,11,13,0.9);
  --border:      rgb(39,39,42);
  --border-soft: rgba(39,39,42,0.5);

  --accent:     var(--amber); /* tweakable */
  --accent-rgb: 254,154,0;  /* updated by applyTweaks() */
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--zinc-950);
  color: var(--zinc-200);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--zinc-500); }
.soft  { color: var(--zinc-400); }

/* ============================================================
   Layout shell
   ============================================================ */
.shell { max-width: 1216px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(9,9,11,0.7);
  border-bottom: 1px solid rgba(39,39,42,0.6);
}
.nav-inner {
  max-width: 1216px; margin: 0 auto;
  height: 100%; padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
}
.nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--zinc-50);
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .bracket { color: var(--accent); }
.nav-links { display: flex; gap: 2px; margin-left: 16px; }
.nav-link {
  display: inline-flex; align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--zinc-300);
  transition: background 150ms, color 150ms;
}
.nav-link:hover { background: var(--border-soft); color: var(--zinc-50); }
.nav-link.active { background: var(--border); color: var(--zinc-50); }
.nav-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--zinc-50); color: var(--zinc-950);
  font-weight: 700; font-size: 13px;
  transition: transform 120ms;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---- Footer ---- */
.footer {
  background: var(--zinc-950);
  border-top: 1px solid var(--zinc-800);
  padding: 48px 0;
  margin-top: 96px;
}
.footer-inner {
  max-width: 1216px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 18px;
  color: var(--zinc-400);
  letter-spacing: -0.45px;
}
.footer-copy { color: var(--zinc-500); font-size: 12.7px; }

/* ============================================================
   Page headers
   ============================================================ */
.page-hero {
  position: relative;
  padding: 56px 0 48px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--zinc-800);
  background: radial-gradient(ellipse at top, rgba(254,154,0,0.08), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(43,127,255,0.05), transparent 70%),
              var(--zinc-950);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--zinc-50);
}
.page-hero .kicker {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid rgba(254,154,0,0.4);
  border-radius: 999px;
  background: rgba(254,154,0,0.08);
  margin-bottom: 16px;
}
.page-hero .subtitle {
  position: relative;
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--zinc-400);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   Generic cards
   ============================================================ */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px -1px rgba(0,0,0,0.1), 0 1px 3px 0 rgba(0,0,0,0.1);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 250ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.18);
}
.card:hover::after { width: 100%; }
.card-pad { padding: 24px; }

/* Pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  line-height: 16px;
  border: 1px solid var(--border);
  color: var(--zinc-400);
}
.pill.amber {
  background: rgba(254,154,0,0.1);
  border-color: rgba(254,154,0,0.5);
  color: var(--amber);
}
.pill.blue {
  background: rgba(43,127,255,0.1);
  border-color: rgba(43,127,255,0.5);
  color: var(--blue);
}
.pill.red {
  background: rgba(70,8,9,0.4);
  border-color: rgba(130,24,26,0.5);
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
  font-size: 10px;
}
.pill.green {
  background: rgba(0,188,125,0.08);
  border-color: rgba(0,188,125,0.4);
  color: var(--green);
}

/* Section title (with ornamental rule) */
.section-title {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; margin-bottom: 48px; text-align: center;
}
.section-title h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.75px;
  color: var(--zinc-50);
  margin: 0;
}
.section-title .rule {
  width: 96px; height: 3px;
  background: var(--zinc-600);
  position: relative;
}
.section-title .rule::before,
.section-title .rule::after {
  content: ""; position: absolute; top: 0;
  width: 3px; height: 3px;
  background: var(--accent);
}
.section-title .rule::before { left: -6px; }
.section-title .rule::after  { right: -6px; }
.section-title p { color: var(--zinc-500); max-width: 600px; margin: 0; }

/* Callout stripe (between sections) */
.stripe {
  border-top: 1px solid var(--zinc-800);
  border-bottom: 1px solid var(--zinc-800);
  background: rgba(24,24,27,0.2);
  padding: 96px 0;
}

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 100;
  width: 280px;
  background: rgba(9,9,11,0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h4 {
  margin: 0 0 12px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.tweaks h4::before {
  content: ""; width: 6px; height: 6px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border-radius: 50%;
}
.tweak-row { margin-bottom: 12px; }
.tweak-row label {
  display: block; font-size: 10px;
  color: var(--zinc-500);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 6px;
}
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms;
}
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: white; }

.tweaks select, .tweaks input[type=text] {
  width: 100%;
  background: var(--zinc-900);
  color: var(--zinc-200);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-size: 11px;
}

/* ============================================================
   Scanline/terminal chrome flourish (used on hero + cards)
   ============================================================ */
.corners {
  position: relative;
}
.corners::before, .corners::after,
.corners > .c-bl, .corners > .c-br {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
  pointer-events: none;
}
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corners::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corners > .c-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corners > .c-br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Applied by Intersection Observer */
.animate-in { animation: fadeUp 400ms ease forwards; }

/* Initial state for animatable elements */
[data-animate] { opacity: 0; }

/* Page transition */
#root { animation: fadeUp 280ms ease; }

/* Button hover lift */
.btn { transition: transform 150ms ease, box-shadow 150ms ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.30); }

/* Skeleton pulse */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Status dot pulse */
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(16,185,129,0.6);
  animation: dot-pulse 2.4s ease infinite;
}
.dot.red { background: var(--red); box-shadow: 0 0 10px rgba(251,44,54,0.6); }
.dot.amber { background: var(--amber); box-shadow: 0 0 10px rgba(254,154,0,0.5); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .tweaks { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-width: 280px; }
  .shell { padding: 0 16px; }
}
