@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Inter:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,0,0,0.10), transparent),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 2px,
      transparent 2px,
      transparent 10px
    ),
    radial-gradient(circle at top, #1b0000, #000);
  background-size: 100% 100%, 300% 300%, 100% 100%;
  background-attachment: fixed;
  animation: backgroundMove 18s linear infinite;
  color: #fff;
  font-family: 'Inter', sans-serif;
}




/* ===== CONTAINER ===== */
.container {
  max-width: 480px;
  margin: 60px auto;
  padding: 28px;
  background: linear-gradient(180deg, #0c0c0c, #070707);
  border: 1px solid #2a2a2a;
  border-left: 6px solid #c00000;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 25px 50px rgba(0,0,0,.85);
  position: relative;
  animation: slideUp 0.6s ease;
}

/* selo FuelTech */
.container::before {
  content: "BIEL • FUELTECH";
  position: absolute;
  top: -12px;
  left: 18px;
  background: linear-gradient(90deg, #ff0000, #a00000);
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 10px;
  font-family: 'Orbitron', sans-serif;
}

/* ===== TITULOS ===== */
h1 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  margin-top: 6px;
  margin-bottom: 26px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 1px;
}

/* ===== INPUTS ===== */
input,
textarea,
select {
  width: 100%;
  background: #050505;
  border: 1px solid #2f2f2f;
  color: #fff;
  padding: 14px;
  margin: 8px 0 18px;
  font-size: 14px;
  letter-spacing: .5px;
  transition: all .15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #666;
}

textarea {
  resize: none;
  height: 90px;
}

/* foco tipo painel */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 1px rgba(255,0,0,.45);
  transform: scale(1.01);
}

/* ===== BOTÃO ===== */
button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, #ff1a1a, #a00000);
  border: 1px solid #ff2a2a;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all .15s ease;
}

button:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

button:active {
  transform: scale(0.98);
}


/* ===== CARDS FUTUROS ===== */
.card {
  background: #0a0a0a;
  border: 1px solid #2c2c2c;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c00000, transparent);
}

/* ===== STATUS ===== */
.status {
  display: inline-block;
  font-size: 10px;
  padding: 5px 10px;
  border: 1px solid #555;
  color: #ccc;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MOBILE ===== */
@media (max-width: 520px) {
  .container {
    margin: 20px 12px;
    padding: 22px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 11px;
  }

  input,
  textarea,
  select {
    font-size: 15px;
  }

  button {
    padding: 18px;
    font-size: 13px;
  }
}
/* ===== RPM REALISTA + CUT OFF ===== */
.rpm-box {
  width: 100%;
  height: 10px;
  background: #141414;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
}

.rpm-bar {
  height: 100%;
  width: 18%;
  background: #00ff6a; /* começa verde */
  animation: rpmMove 3s linear infinite;
  box-shadow: 0 0 10px rgba(0,0,0,.6);
}

/* overlay de cut off */
.cutoff {
  position: absolute;
  inset: 0;
  background: #ff0000;
  opacity: 0;
  animation: cutoffFlash 3s linear infinite;
  pointer-events: none;
}

/* ===== ANIMAÇÃO RPM ===== */
@keyframes rpmMove {
  /* verde */
  0% {
    width: 18%;
    background: #00ff6a;
  }

  /* amarelo */
  45% {
    width: 60%;
    background: #ffe600;
  }

  /* vermelho (redline) */
  70% {
    width: 92%;
    background: #ff0000;
  }

  /* volta */
  100% {
    width: 25%;
    background: #00ff6a;
  }
}

/* ===== CUT OFF: TUDO VERMELHO PISCANDO ===== */
@keyframes cutoffFlash {
  0%   { opacity: 0; }
  65%  { opacity: 0; }

  /* entrou no corte */
  70%  { opacity: 1; }
  73%  { opacity: 0; }
  76%  { opacity: 1; }
  79%  { opacity: 0; }

  100% { opacity: 0; }
}
/* ===== LOADING ECU PROGRESSIVO ===== */
.loader-bar {
  width: 240px;
  height: 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  position: relative;
}

/* barra que progride */
.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff9900,
    #00ff6a
  );
  animation: progressECU 1.2s linear forwards;
  box-shadow: 0 0 12px rgba(0,255,120,.6);
}

/* animação de progresso */
@keyframes progressECU {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.hidden {
  display: none !important;
}
/* ===== LOADING FULLSCREEN CENTRALIZADO ===== */
.loading {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at center, #1a0000, #000);
  z-index: 9999;
}

.loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.loader-box p {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff3b3b;
}
/* ===== ECU CONFIRMANDO ===== */
.ecu-body {
  margin: 0;
  height: 100vh;
  background:
    radial-gradient(circle at center, rgba(255,0,0,.25), transparent 55%),
    linear-gradient(180deg, #2a0000, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
}


.ecu-frame {
  background: linear-gradient(180deg, #2b2b2b, #0a0a0a);
  border-radius: 36px;
  padding: 18px;
  box-shadow:
    inset 0 4px 8px rgba(255,255,255,.08),
    inset 0 -6px 10px rgba(0,0,0,.9),
    0 30px 80px rgba(0,0,0,.95);
}


.ecu-screen {
  width: 360px;
  height: 220px;
  background: linear-gradient(180deg, #0a0a0a, #030303);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  color: #fff;

  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.05),
    inset 0 0 18px rgba(0,0,0,.9);
}


.ecu-top {
  text-align: center;
  font-size: 15px;
  letter-spacing: 3px;
  color: #cfcfcf;
  margin-bottom: 2px;
}


.ecu-rpm {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 36px;
  margin-top: 4px;
}

.ecu-rpm span {
  color: #fff;
}

.rpm-label {
  font-size: 12px;
  color: #bbb;
}

.ecu-rpm-bar {
  width: 100%;
  height: 10px;
  background: #2a0000;
  overflow: hidden;
  margin: 6px 0 10px;
}

.ecu-rpm-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff6a, #ffe600, #ff0000);
}

.ecu-text {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
  color: #ff3b3b;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecu-progress {
  height: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  overflow: hidden;
}

.ecu-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff0000, #ff9900, #00ff6a);
  animation: ecuLoad 3s linear forwards;
}

.ecu-footer {
  text-align: center;
  font-size: 12px;
  color: #ff0000;
  margin-top: 6px;
}

.ecu-frame::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(255,0,0,.25), transparent 70%);
  z-index: -1;
  filter: blur(25px);
}


@keyframes ecuLoad {
  from { width: 0%; }
  to { width: 100%; }
}
