/* ═══════════════════════════════════════════════════════════════
   GORILLAHANDS · Unified Stylesheet v2.0
   Basado en brand.css + mejoras industriales (KrakenSteel)
   Paleta: Negro / Verde ácido (#B8FF00)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;600;700&family=Barlow:wght@300;400;500&family=Share+Tech+Mono&display=swap');

:root {
  /* Core Palette */
  --gh-black:      #080808;
  --gh-dark:       #111111;
  --gh-surface:    #1A1A1A;
  --gh-surface2:   #242424;
  --gh-border:     #2E2E2E;
  --gh-border2:    #3A3A3A;
  --gh-silver:     #C8C8C8;
  --gh-silver2:    #8A8A8A;
  --gh-silver3:    #555555;
  --gh-acid:       #B8FF00;
  --gh-acid-dim:   #8ABF00;
  --gh-red:        #FF3B30;
  --gh-amber:      #FF9500;

  /* Typography */
  --font-display:  'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-ui:       'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --font-mono:     'Share Tech Mono', monospace;

  /* Effects */
  --glow-acid:     0 0 12px rgba(184,255,0,0.5);
  --transition:    0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  background: var(--gh-black);
  color: var(--gh-silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--gh-dark); }
::-webkit-scrollbar-thumb { background: var(--gh-border2); border-radius: 2px; }

/* Typography */
.gh-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 0.95;
}
.gh-label {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gh-silver2);
}

/* Buttons */
.gh-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 3px;
  border: 1px solid var(--gh-border2);
  background: transparent;
  color: var(--gh-silver);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gh-btn:hover {
  border-color: var(--gh-silver);
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.gh-btn-primary {
  background: var(--gh-acid);
  color: var(--gh-black);
  border-color: var(--gh-acid);
}
.gh-btn-primary:hover {
  background: #ccff22;
  border-color: #ccff22;
  color: var(--gh-black);
}

/* Cards */
.gh-card {
  background: var(--gh-surface);
  border: 0.5px solid var(--gh-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.gh-card:hover {
  border-color: var(--gh-border2);
}

/* Badges */
.gh-badge {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
}
.gh-badge-acid { background: rgba(184,255,0,0.12); color: var(--gh-acid); border: 0.5px solid rgba(184,255,0,0.3); }
.gh-badge-gray { background: var(--gh-surface2); color: var(--gh-silver2); border: 0.5px solid var(--gh-border); }
.gh-badge-red  { background: rgba(255,59,48,0.12); color: var(--gh-red); border: 0.5px solid rgba(255,59,48,0.3); }

/* Noise texture */
.gh-noise::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 9999;
}

/* Hero rings (from kraken-steel) */
.hero-rings {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-rings::before, .hero-rings::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid var(--gh-border);
}
.hero-rings::before { width: 700px; height: 700px; }
.hero-rings::after  { width: 1000px; height: 1000px; border-color: rgba(46,46,46,0.4); }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes metal-sweep {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.page-transition {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1e2d45, #0a0f1c);
  z-index: 999;
  animation: metal-sweep 0.35s cubic-bezier(0.77,0,0.18,1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .apps-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}
/* ─────────────── OSTP adicionales ─────────────── */
.ostp-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.ostp-terminal {
  background: rgba(0,0,0,0.8);
  font-family: var(--font-mono, monospace);
  padding: 1rem;
  border-radius: 8px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}
.ostp-terminal .tok-stream {
  color: var(--gh-silver);
  animation: token-flush 0.1s ease-out;
}
.ostp-terminal .tok-stream.flush {
  animation: token-flush 0.12s cubic-bezier(0.2,0.9,0.4,1.1);
}
.ostp-terminal .tok-alert {
  color: var(--gh-red);
  border-left: 2px solid var(--gh-red);
  padding-left: 8px;
}
.ostp-statusbar {
  background: var(--gh-dark);
  border-top: 0.5px solid var(--gh-border);
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--gh-silver2);
}
.ostp-statusbar .metric { display: flex; align-items: center; gap: 4px; }
.ostp-statusbar .metric.ok { color: var(--gh-acid); }
.ostp-statusbar .metric.warn { color: var(--gh-amber); }
.ostp-statusbar .metric.err { color: var(--gh-red); }

@keyframes token-flush {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Efecto de barrido metálico para transiciones */
.metal-sweep {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e2d45, #0a0f1c);
  z-index: 9999;
  animation: sweep-away 0.35s cubic-bezier(0.77,0,0.18,1) forwards;
}
@keyframes sweep-away {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Botones de navegación tipo perno */
.ostp-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a);
  border: 1px solid var(--gh-border2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.ostp-nav-btn:hover {
  border-color: var(--gh-acid);
  box-shadow: 0 0 12px rgba(184,255,0,0.5);
}
.ostp-nav-btn:active { transform: scale(0.95); }

.ostp-emblem {
  cursor: pointer;
  transition: filter 0.2s;
}
.ostp-emblem:active { filter: drop-shadow(0 0 8px var(--gh-acid)); }
