/* Splash de inicialização Hexora — sem dependências externas */
html,
body {
  margin: 0;
  min-height: 100%;
  background: #080c14;
}

:root {
  --hb-dark: #080c14;
  --hb-card: #0f1524;
  --hb-border: #1e293b;
  --hb-blue: #3b82f6;
  --hb-purple: #a855f7;
  --hb-success: #10b981;
  --hb-warning: #f59e0b;
  --hb-text: #f1f5f9;
  --hb-muted: #94a3b8;
}

.hexora-boot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--hb-dark);
  color: var(--hb-text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hexora-boot.hexora-boot--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hexora-boot__scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.05), transparent);
  pointer-events: none;
  z-index: 50;
  animation: hb-scan 8s linear infinite;
}

.hexora-boot__grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
}

.hexora-boot__glow-blue,
.hexora-boot__glow-purple {
  position: fixed;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
}

.hexora-boot__glow-blue {
  top: 15%;
  left: 20%;
  background: rgba(37, 99, 235, 0.05);
}

.hexora-boot__glow-purple {
  bottom: 15%;
  right: 20%;
  background: rgba(147, 51, 234, 0.05);
}

.hexora-boot__header,
.hexora-boot__footer {
  width: 100%;
  max-width: 72rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-color: rgba(30, 41, 59, 0.4);
  z-index: 10;
  box-sizing: border-box;
}

.hexora-boot__header {
  border-bottom: 1px solid rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
}

.hexora-boot__footer {
  border-top: 1px solid rgba(30, 41, 59, 0.4);
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  color: var(--hb-muted);
}

.hexora-boot__status-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.hexora-boot__pulse-dot {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.hexora-boot__pulse-dot::before,
.hexora-boot__pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--hb-purple);
}

.hexora-boot__pulse-dot::before {
  animation: hb-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.hexora-boot__status-label {
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-muted);
  line-height: 1.3;
}

.hexora-boot__header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hexora-boot__audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(30, 41, 59, 0.8);
  background: rgba(30, 41, 59, 0.3);
  color: var(--hb-muted);
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hexora-boot__audio-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.08);
}

.hexora-boot__audio-btn:focus-visible {
  outline: 2px solid var(--hb-purple);
  outline-offset: 2px;
}

.hexora-boot__version {
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  color: var(--hb-muted);
}

.hexora-boot__main {
  width: 100%;
  max-width: 56rem;
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 10;
  box-sizing: border-box;
}

.hexora-boot__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.hexora-boot__logo {
  width: 5.5rem;
  height: 5.5rem;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.45));
}

.hexora-boot__company {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #60a5fa, #d8b4fe, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hexora-boot__env-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.1);
  font-size: 0.6rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8b4fe;
}

.hexora-boot__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  animation: hb-text-glow 3s ease-in-out infinite;
}

.hexora-boot__subtitle {
  margin: 0.35rem 0 0;
  max-width: 22rem;
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  color: var(--hb-muted);
  line-height: 1.5;
}

.hexora-boot__panels {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .hexora-boot__panels {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.hexora-boot__card {
  background: rgba(15, 21, 36, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.6);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.hexora-boot__card-title {
  margin: 0 0 0.85rem;
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hb-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.hexora-boot__rack-volt {
  color: #c4b5fd;
  font-weight: 700;
}

.hexora-boot__blades {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hexora-boot__blade {
  border: 1px solid rgba(30, 41, 59, 0.8);
  background: rgba(8, 12, 20, 0.95);
  border-radius: 0.4rem;
  padding: 0.65rem 0.75rem;
}

.hexora-boot__blade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hexora-boot__blade-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.hexora-boot__power-led {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #475569;
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}

.hexora-boot__power-led--on-blue {
  background: var(--hb-blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.hexora-boot__power-led--on-purple {
  background: var(--hb-purple);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.hexora-boot__power-led--on-mix {
  background: linear-gradient(90deg, var(--hb-blue), var(--hb-purple));
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.hexora-boot__blade-name {
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hexora-boot__leds {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.hexora-boot__led {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #334155;
}

.hexora-boot__led--blue {
  background: rgba(59, 130, 246, 0.35);
  animation: hb-led-blue 1.5s infinite;
}

.hexora-boot__led--purple {
  background: rgba(168, 85, 247, 0.35);
  animation: hb-led-purple 0.4s infinite;
}

.hexora-boot__blade-bar {
  margin-top: 0.5rem;
  height: 0.2rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.5);
  overflow: hidden;
}

.hexora-boot__blade-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.8s ease;
  border-radius: inherit;
}

.hexora-boot__blade-bar-fill--blue {
  background: var(--hb-blue);
}

.hexora-boot__blade-bar-fill--purple {
  background: var(--hb-purple);
}

.hexora-boot__blade-bar-fill--mix {
  background: linear-gradient(90deg, var(--hb-blue), var(--hb-purple));
}

.hexora-boot__progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.hexora-boot__ring-box {
  position: relative;
  width: min(9rem, 36vw);
  height: min(9rem, 36vw);
}

.hexora-boot__ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hexora-boot__ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hexora-boot__percent {
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 800;
  font-family: ui-monospace, monospace;
}

.hexora-boot__timer-label {
  font-size: 0.55rem;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hb-muted);
  margin-top: 0.15rem;
}

.hexora-boot__timer-label--ok {
  color: var(--hb-success);
  font-weight: 700;
  animation: hb-pulse-opacity 1.2s ease-in-out infinite;
}

.hexora-boot__progress-meta {
  width: 100%;
  margin-top: 1rem;
}

.hexora-boot__progress-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  color: var(--hb-muted);
  margin-bottom: 0.35rem;
}

.hexora-boot__current-action {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.hexora-boot__linear-track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.5);
  padding: 2px;
  overflow: hidden;
}

.hexora-boot__linear-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hb-blue), var(--hb-purple));
  transition: width 0.25s ease;
}

.hexora-boot__console {
  width: 100%;
  max-width: 48rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.6);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
}

.hexora-boot__console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  flex-wrap: wrap;
}

.hexora-boot__console-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Apenas os 3 pontos — não o título (também é <span>) */
.hexora-boot__console-dots > span:not(.hexora-boot__console-title) {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.hexora-boot__console-dots > span:not(.hexora-boot__console-title):nth-child(1) {
  background: rgba(59, 130, 246, 0.6);
}
.hexora-boot__console-dots > span:not(.hexora-boot__console-title):nth-child(2) {
  background: rgba(168, 85, 247, 0.6);
}
.hexora-boot__console-dots > span:not(.hexora-boot__console-title):nth-child(3) {
  background: rgba(100, 116, 139, 0.6);
}

.hexora-boot__console-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hb-muted);
  margin-left: 0.25rem;
  white-space: nowrap;
  width: auto;
  height: auto;
  border-radius: 0;
  flex-shrink: 0;
  line-height: 1.2;
}

.hexora-boot__console-net {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
}

.hexora-boot__console-net-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hb-purple);
  animation: hb-pulse-opacity 1.2s infinite;
}

.hexora-boot__log {
  height: clamp(5.5rem, 18vh, 9rem);
  overflow-y: auto;
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  line-height: 1.45;
  padding-right: 0.35rem;
  scroll-behavior: smooth;
}

.hexora-boot__log::-webkit-scrollbar {
  width: 5px;
}
.hexora-boot__log::-webkit-scrollbar-track {
  background: rgba(15, 21, 36, 0.5);
}
.hexora-boot__log::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 3px;
}

.hexora-boot__log-line {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.hexora-boot__log-time {
  color: #475569;
  font-weight: 700;
  margin-right: 0.35rem;
}

.hexora-boot__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.hexora-boot__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes hb-scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

@keyframes hb-ping {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes hb-led-blue {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #3b82f6);
  }
}

@keyframes hb-led-purple {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #a855f7);
  }
}

@keyframes hb-text-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.65));
  }
}

@keyframes hb-pulse-opacity {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .hexora-boot__audio-text {
    display: none;
  }
  .hexora-boot__header {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }
  .hexora-boot__footer {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hexora-boot__scanline,
  .hexora-boot__title,
  .hexora-boot__led--blue,
  .hexora-boot__led--purple,
  .hexora-boot__pulse-dot::before,
  .hexora-boot__console-net-dot,
  .hexora-boot__timer-label--ok {
    animation: none !important;
  }
  .hexora-boot {
    transition: none;
  }
}
