/* =============================================================
   SBN4LAB — Coming Soon
   main.css  |  v0.3.5-alpha
   ============================================================= */

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:     #04060d;
  --accent: #00ffc8;
  --red:    #ff2d6e;
  --blue:   #3d8bff;
  --yellow: #f5c400;
  --white:  #d6dce8;
  --dim:    #2e3848;
  --panel:  rgba(255,255,255,0.025);
  --border: rgba(255,255,255,0.07);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* ── BACKGROUND ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,255,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,200,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridShift 20s linear infinite;
  will-change: background-position;
}

@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 50px 50px; }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,255,200,0.11) 0%, transparent 65%);
  top: -250px; left: -200px;
  animation: orbDrift 12s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,45,110,0.09) 0%, transparent 65%);
  bottom: -150px; right: -100px;
  animation: orbDrift 15s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.08); }
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4,6,13,0.85) 100%);
}

.scanlines {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}

/* ── HUD CORNERS ── */
.hud {
  position: fixed;
  font-family: 'Space Mono', monospace;
  font-size: 0.48rem;
  color: rgba(0,255,200,0.18);
  letter-spacing: 0.08em;
  line-height: 1.8;
  z-index: 5;
  pointer-events: none;
}

.hud-tl { top: 0.7rem; left: 1.2rem; }
.hud-tr { top: 0.7rem; right: 1.2rem; text-align: right; }
.hud-bl { bottom: 0.7rem; left: 1.2rem; }
.hud-br { bottom: 0.7rem; right: 1.2rem; text-align: right; }

/* ── MAIN LAYOUT ── */
.layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  height: 100vh;
  padding: 4.5rem 2.5rem 3.5rem 2.5rem;
  align-items: center;
}

/* ── LEFT PANEL ── */
.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
}

/* ── STATUS BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,255,200,0.22);
  background: rgba(0,255,200,0.05);
  padding: 5px 14px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  width: fit-content;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blinkDot 1.4s ease-in-out infinite;
}

@keyframes blinkDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.2; transform: scale(0.5); }
}

/* ── LOGO ── */
.logo-area { position: relative; }

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  width: fit-content;
}

.char {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,255,200,0.15);
}

.char::before {
  content: attr(data-c);
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #ffffff 0%, #a0fde4 55%, #00ffc8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo animation states */
.char.animate {
  animation: charReveal 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  will-change: transform, opacity, filter;
}

@keyframes charReveal {
  0%   { opacity: 0; transform: translateY(-60px) scaleY(1.5); filter: blur(12px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

.char.exit {
  animation: charExit 0.35s ease-in both;
}

@keyframes charExit {
  0%   { opacity: 1; transform: translateY(0) scaleY(1); }
  100% { opacity: 0; transform: translateY(60px) scaleY(0.7); filter: blur(8px); }
}

.char.idle::before {
  animation: charPulse 4s ease-in-out infinite;
}

.char.idle:nth-child(1)::before { animation-delay: 0s; }
.char.idle:nth-child(2)::before { animation-delay: 0.4s; }
.char.idle:nth-child(3)::before { animation-delay: 0.8s; }
.char.idle:nth-child(4)::before { animation-delay: 1.2s; }
.char.idle:nth-child(5)::before { animation-delay: 1.6s; }
.char.idle:nth-child(6)::before { animation-delay: 2.0s; }
.char.idle:nth-child(7)::before { animation-delay: 2.4s; }

@keyframes charPulse {
  0%,100% { filter: drop-shadow(0 0 0 transparent); }
  50%     { filter: drop-shadow(0 0 18px rgba(0,255,200,0.6)); }
}

/* Scan beam */
.logo-scan {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}

.logo-scan::after {
  content: '';
  position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent), 0 0 60px rgba(0,255,200,0.25);
  animation: scanBeam 3.5s ease-in-out 2s infinite;
  opacity: 0;
}

@keyframes scanBeam {
  0%   { top: -5%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.9; }
  100% { top: 110%; opacity: 0; }
}

/* Cursor blink */
.logo-cursor {
  width: clamp(4px, 0.8vw, 7px);
  height: clamp(3rem, 7vw, 6rem);
  background: var(--accent);
  display: inline-block;
  vertical-align: top;
  margin-left: 4px;
  box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(0,255,200,0.4);
  animation: cursorBlink 0.85s step-end infinite;
}

@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

/* ── SUBTITLE (typewriter) ── */
.subtitle {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: var(--dim);
  font-weight: 300;
  letter-spacing: 0.08em;
  font-family: 'Space Mono', monospace;
  min-height: 1.2em;
}

.subtitle .typed-text { color: rgba(0,255,200,0.6); }

/* ── INFO BLOCK ── */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-tagline {
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  color: rgba(214,220,232,0.45);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-style: italic;
}

.info-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  position: relative;
  overflow: hidden;
}

/* Corner brackets */
.info-card::before,
.info-card::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: rgba(0,255,200,0.3);
  border-style: solid;
}

.info-card::before { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.info-card::after  { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }

.info-card-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.info-card-body {
  font-size: clamp(0.78rem, 1.3vw, 0.88rem);
  color: rgba(214,220,232,0.6);
  font-weight: 300;
  line-height: 1.65;
}

.hi-accent { color: var(--accent); font-weight: 400; }

/* ── PROGRESS BAR (info card) ── */
.info-progress { margin-top: 1.2rem; }

.info-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  margin-bottom: 8px;
}

.info-progress-label span:first-child { color: rgba(214,220,232,0.55); }

.info-progress-label span:last-child {
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  background: rgba(0,255,200,0.12);
  border: 1px solid rgba(0,255,200,0.3);
  padding: 1px 7px;
  border-radius: 4px;
}

.info-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: visible;   /* permite que el thumb sobresalga */
}

.info-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ffc8 0%, #00e0ff 60%, #00ffc8 100%);
  border-radius: 100px;
  position: relative;
  transition: width 0.12s linear;
  box-shadow: 0 0 10px rgba(0,255,200,0.6), 0 0 24px rgba(0,255,200,0.2);
  overflow: visible;
}

/* Thumb — posicionado por JS al % real */
.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ffc8, 0 0 20px rgba(0,255,200,0.9), 0 0 38px rgba(0,255,200,0.3);
  border: 2px solid rgba(0,255,200,0.7);
  pointer-events: none;
  transition: left 0.12s linear;
}

/* ── STATUS CHIPS ROW ── */
.status-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 5px 11px;
  border-radius: 6px;
}

.stat-chip .val { color: var(--white); }

.bar-mini {
  width: 50px; height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffc8, #ffffff);
  border-radius: 10px;
  width: 0%;
  transition: width 2s ease;
  box-shadow: 0 0 6px rgba(0,255,200,0.6);
}

/* ── TERMINAL ── */
.terminal {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,255,200,0.12);
  border-radius: 12px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(0,255,200,0.04),
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.15em;
}

.term-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.1rem 1.3rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,200,0.15) transparent;
}

.term-body::-webkit-scrollbar { width: 4px; }
.term-body::-webkit-scrollbar-thumb {
  background: rgba(0,255,200,0.15);
  border-radius: 10px;
}

/* Terminal line types */
.term-line      { display: block; }
.term-line.cmd  { color: var(--accent); }
.term-line.info { color: rgba(255,255,255,0.4); }
.term-line.ok   { color: #28c840; }
.term-line.warn { color: var(--yellow); }
.term-line.err  { color: var(--red); }
.term-line.dim  { color: rgba(255,255,255,0.2); }
.term-line.hi   { color: var(--white); }

.term-prompt { color: rgba(0,255,200,0.5); margin-right: 6px; }

.term-blink-cur {
  display: inline-block;
  width: 7px; height: 0.85em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: cursorBlink 0.85s step-end infinite;
}

/* Terminal progress bar */
.term-progress-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.term-bar-outer {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.term-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 10px;
  width: 0%;
}

/* ── SITE FOOTER ── */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.55rem 2rem;
  background: linear-gradient(to top, rgba(4,6,13,0.95) 0%, rgba(4,6,13,0.6) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: rgba(214,220,232,0.35);
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  color: rgba(214,220,232,0.5);
}

.footer-brand strong { color: rgba(0,255,200,0.6); margin-left: 3px; }
.footer-sep   { color: rgba(255,255,255,0.1); }
.footer-copy  { color: rgba(214,220,232,0.3); }

.footer-version {
  color: rgba(0,255,200,0.4);
  border: 1px solid rgba(0,255,200,0.15);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,255,200,0.04);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  html, body { overflow-y: auto; }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    padding: 1.5rem 1rem 4rem 1rem;
  }

  .hud { display: none; }
  .terminal { height: 380px; }

  .logo { font-size: clamp(3.5rem, 18vw, 6rem); }

  .status-row { gap: 0.6rem; }
  .stat-chip  { font-size: 0.52rem; padding: 4px 9px; }
}

@media (max-width: 480px) {
  .site-footer { font-size: 0.48rem; gap: 0.5rem; padding: 0.4rem 1rem; }
}
