/* ClutchServers — identidad visual
   Paleta: charcoal cálido + naranja ignición.
   Tipografía: Archivo Expanded (display) + IBM Plex Sans (texto) + IBM Plex Mono (datos). */

:root{
  --bg:            #15130F;
  --bg-panel:      #1C1811;
  --bg-panel-2:    #211C15;
  --line:          #362E22;
  --line-soft:     #29241C;
  --orange:        #FF5A1F;
  --orange-deep:   #B23D0F;
  --orange-dim:    rgba(255,90,31,0.14);
  --text:          #F3EEE4;
  --muted:         #9A8F7D;
  --muted-dim:     #6E6455;
  --live:          #5CD673;
  --radius:        3px;
  --maxw:          1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3{
  font-family:'Archivo Expanded', sans-serif;
  font-weight:800;
  line-height:1.05;
  margin:0;
  letter-spacing:-0.01em;
}

.mono{ font-family:'IBM Plex Mono', monospace; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

/* Textura de fondo: retícula tenue tipo radar/HUD */
.bg-grid{
  position:fixed;
  inset:0;
  z-index:-1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:64px 64px;
  opacity:0.35;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* Divisor "línea de defusal": guiones parejos en vez de un simple hairline */
.tick-divider{
  height:1px;
  background-image:repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
  margin:0;
}

/* ---------- NAV ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(21,19,15,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line-soft);
}
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{
  display:flex; align-items:baseline; gap:2px;
  font-family:'Archivo Expanded', sans-serif;
  font-weight:800; font-size:20px;
  letter-spacing:-0.01em;
}
.brand .slash{ color:var(--orange); }

.nav-links{
  display:flex; align-items:center; gap:32px;
  font-size:14.5px; font-weight:500; color:var(--muted);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a.active{ color:var(--text); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px;
  border-radius:var(--radius);
  font-weight:600; font-size:14.5px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:var(--orange); color:#191008;
}
.btn-primary:hover{ background:#ff6c37; }
.btn-outline{
  border-color:var(--line);
  color:var(--text);
  background:transparent;
}
.btn-outline:hover{ border-color:var(--orange); }
.btn-sm{ padding:8px 14px; font-size:13.5px; }

.nav-toggle{
  display:none;
  background:none; border:0; color:var(--text);
  width:36px; height:36px;
}

/* ---------- HERO ---------- */
.hero{
  padding:88px 0 96px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:start;
}
.eyebrow-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px; color:var(--orange);
  border:1px solid var(--orange-deep);
  background:var(--orange-dim);
  padding:6px 10px;
  border-radius:2px;
  margin-bottom:22px;
}
.dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--live);
  box-shadow:0 0 0 3px rgba(92,214,115,0.18);
}
.dot.pulse{ animation:pulse 1.8s ease-in-out infinite; }
@keyframes pulse{
  0%,100%{ box-shadow:0 0 0 3px rgba(92,214,115,0.18); }
  50%{ box-shadow:0 0 0 6px rgba(92,214,115,0.08); }
}

.hero h1{
  font-size:clamp(34px, 4.6vw, 56px);
  max-width:16ch;
}
.hero p.lead{
  margin-top:22px;
  color:var(--muted);
  font-size:17.5px;
  max-width:52ch;
}
.hero-ctas{
  display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;
}

/* Panel de estado — pieza central y memorable del hero */
.status-panel{
  background:var(--bg-panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.status-panel__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid var(--line-soft);
  background:var(--bg-panel-2);
}
.status-panel__head span{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px; color:var(--muted);
}
.status-panel__head .live-label{
  display:flex; align-items:center; gap:7px;
  color:var(--live); font-weight:600;
}
.status-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:15px 20px;
  border-bottom:1px solid var(--line-soft);
  font-size:14.5px;
}
.status-row:last-child{ border-bottom:none; }
.status-row .k{ color:var(--muted); }
.status-row .v{ font-family:'IBM Plex Mono', monospace; font-weight:500; }
.status-row.ip .v{ color:var(--orange); font-size:15px; }
.status-panel__foot{
  padding:16px 20px;
  display:flex; gap:10px;
}
.status-panel__foot .btn{ flex:1; justify-content:center; }

/* ---------- SECTIONS ---------- */
section{ padding:76px 0; }
.section-head{ max-width:60ch; margin-bottom:44px; }
.section-head .kicker{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px; color:var(--orange);
  margin-bottom:12px; display:block;
}
.section-head h2{ font-size:clamp(26px,3vw,36px); }
.section-head p{ color:var(--muted); margin-top:14px; font-size:16px; }

/* Retakes explainer */
.retake-list{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line-soft);
  border:1px solid var(--line-soft);
}
.retake-item{
  background:var(--bg);
  padding:30px 26px;
}
.retake-item .num{
  font-family:'IBM Plex Mono', monospace;
  color:var(--orange-deep); font-size:13px;
}
.retake-item h3{
  font-size:19px; margin-top:14px; margin-bottom:10px;
}
.retake-item p{ color:var(--muted); font-size:14.5px; margin:0; }

/* Facts row */
.facts-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.fact-card{
  border:1px solid var(--line);
  padding:26px;
  border-radius:var(--radius);
  background:var(--bg-panel);
}
.fact-card .big{
  font-family:'Archivo Expanded', sans-serif;
  font-weight:800; font-size:30px; color:var(--orange);
}
.fact-card p{ color:var(--muted); font-size:14px; margin-top:8px; }

/* Skins teaser */
.teaser{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  padding:42px;
  display:flex; align-items:center; justify-content:space-between; gap:32px;
}
.teaser h2{ font-size:26px; max-width:20ch; }
.teaser p{ color:var(--muted); margin-top:10px; max-width:42ch; }

/* Community */
.community-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
}
.community-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  background:var(--bg-panel);
  display:flex; align-items:center; gap:18px;
}
.community-card .icon{
  width:46px; height:46px; flex:0 0 auto;
  border-radius:var(--radius);
  background:var(--orange-dim);
  color:var(--orange);
  display:flex; align-items:center; justify-content:center;
}
.community-card h3{ font-size:17px; }
.community-card p{ color:var(--muted); font-size:14px; margin:4px 0 0; }

/* Footer */
footer{ padding:40px 0; border-top:1px solid var(--line-soft); }
footer .wrap{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
footer .muted{ color:var(--muted-dim); font-size:13.5px; }
footer .foot-links{ display:flex; gap:22px; font-size:13.5px; color:var(--muted); }

/* ---------- SKINS PAGE ---------- */
.page-header{ padding:64px 0 40px; }
.page-header .kicker{
  font-family:'IBM Plex Mono', monospace; color:var(--orange); font-size:12.5px;
}
.page-header h1{ font-size:clamp(30px,4vw,44px); margin-top:12px; max-width:18ch; }
.page-header p{ color:var(--muted); margin-top:16px; max-width:58ch; font-size:16.5px; }

.steps-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line-soft); border:1px solid var(--line-soft);
  margin-top:8px;
}
.step-item{ background:var(--bg); padding:26px; }
.step-item .cmd{
  display:inline-block;
  font-family:'IBM Plex Mono', monospace;
  background:var(--bg-panel-2); border:1px solid var(--line);
  color:var(--orange);
  padding:4px 9px; border-radius:2px; font-size:13px;
  margin-bottom:12px;
}
.step-item p{ color:var(--muted); font-size:14.5px; margin:0; }

.category-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
.category-card{
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--bg-panel);
  padding:24px 20px;
  text-align:left;
}
.category-card .glyph{
  width:38px; height:38px; margin-bottom:16px;
  color:var(--orange);
}
.category-card h3{ font-size:16px; }
.category-card p{ color:var(--muted); font-size:13.5px; margin-top:6px; }

/* Loadout lookup */
.lookup-panel{
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--bg-panel); padding:32px;
}
.lookup-form{
  display:flex; gap:10px; margin-top:18px; flex-wrap:wrap;
}
.lookup-form input{
  flex:1; min-width:240px;
  background:var(--bg); border:1px solid var(--line);
  color:var(--text);
  padding:13px 14px;
  border-radius:var(--radius);
  font-family:'IBM Plex Mono', monospace;
  font-size:14px;
}
.lookup-form input:focus{ outline:none; border-color:var(--orange); }
.lookup-result{ margin-top:22px; }
.loadout-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 0;
  border-bottom:1px solid var(--line-soft);
  font-size:14px;
}
.loadout-row:last-child{ border-bottom:none; }
.loadout-row .weapon{ font-weight:600; }
.loadout-row .meta{ color:var(--muted); font-family:'IBM Plex Mono', monospace; font-size:12.5px; }
.lookup-msg{ color:var(--muted); font-size:14px; }
.lookup-msg.error{ color:#E8836A; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px){
  .hero-grid{ grid-template-columns:1fr; }
  .retake-list, .facts-row{ grid-template-columns:1fr; }
  .steps-row{ grid-template-columns:1fr; }
  .category-grid{ grid-template-columns:1fr 1fr; }
  .community-grid{ grid-template-columns:1fr; }
  .teaser{ flex-direction:column; align-items:flex-start; }
  .nav-links{
    position:absolute; top:72px; left:0; right:0;
    background:var(--bg); border-bottom:1px solid var(--line-soft);
    flex-direction:column; align-items:flex-start;
    padding:20px 28px; gap:18px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:block; }
  .nav .btn-primary.desktop-only{ display:none; }
}
@media (max-width: 560px){
  .category-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .dot.pulse{ animation:none; }
  html{ scroll-behavior:auto; }
}
