:root {
  --bg: #080807;
  --surface: #111110;
  --surface2: #191917;
  --border: #272724;
  --amber: #f5a623;
  --amber-dim: #a06d12;
  --amber-glow: rgba(245, 166, 35, 0.12);
  --green: #52e09c;
  --red: #ff6b6b;
  --yellow: #ffd166;
  --text: #ece8dc;
  --muted: #6b6758;
  --muted2: #9a9485;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 8, 7, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem, 5vw, 3rem);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-sun {
  width: 34px;
  height: 34px;
  background: var(--amber);
  border-radius: 8px;
  display: grid;
  place-items: center;
  animation: pulse-logo 3s ease-in-out infinite;
}
@keyframes pulse-logo {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(245, 166, 35, 0);
  }
}
nav {
  display: flex;
  gap: 1.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
nav a {
  font-weight: 800;
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--amber);
}

/* HERO */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 3rem) 1rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.sun-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}
.sun {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffd166 0%,
    var(--amber) 60%,
    #c87700 100%
  );
  box-shadow:
    0 0 0 10px rgba(245, 166, 35, 0.1),
    0 0 0 24px rgba(245, 166, 35, 0.06),
    0 0 70px rgba(245, 166, 35, 0.35);
  animation: sun-pulse 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes sun-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 10px rgba(245, 166, 35, 0.1),
      0 0 0 24px rgba(245, 166, 35, 0.06),
      0 0 70px rgba(245, 166, 35, 0.35);
  }
  50% {
    transform: scale(1.07);
    box-shadow:
      0 0 0 14px rgba(245, 166, 35, 0.16),
      0 0 0 34px rgba(245, 166, 35, 0.07),
      0 0 100px rgba(245, 166, 35, 0.45);
  }
}
.sun-rays {
  position: absolute;
  inset: 24px;
  z-index: 1;
  animation: rotate-rays 22s linear infinite;
}
@keyframes rotate-rays {
  to {
    transform: rotate(360deg);
  }
}
.sun-ray {
  position: absolute;
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  left: 50%;
  top: 0;
  transform-origin: bottom center;
  border-radius: 2px;
  opacity: 0.55;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--amber-glow);
  margin-bottom: 1.4rem;
  animation: fade-in 0.8s ease both;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  animation: fade-in 0.9s 0.1s ease both;
}
h1 em {
  color: var(--amber);
  font-style: normal;
}
.hero-sub {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: white;
  max-width: 540px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
  animation: fade-in 1s 0.2s ease both;
}

/* STEPS */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
  animation: fade-in 1s 0.3s ease both;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-family: "DM Mono", monospace;
  font-size: 0.92rem;
  color: var(--green);
  transition: all 0.4s;
}
.step.active .step-dot {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.45);
}
.step.done .step-dot {
  background: rgba(245, 166, 35, 0.14);
  border-color: var(--amber-dim);
  color: var(--amber);
}
.step-lbl {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}
.step.active .step-lbl {
  color: var(--amber);
}
.step-line {
  width: 3.5rem;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.4rem;
}

/* MAIN */
.app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 5rem;
  display: grid;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

/* SECTION LABEL */
.slabel {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.slabel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* PANEL */
.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.3s;
}

.panel:hover {
  border-color: #2f2f2b;
}
.panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.panel-hint {
  font-size: 0.8rem;
  color: var(--muted2);
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

/* DEVICE GRID */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  align-items: center;
  justify-content: center;
}
.device-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.3rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  user-select: none;
}

.device-card:hover {
  border-color: var(--amber-dim);
  background: rgba(245, 166, 35, 0.05);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.device-card.selected {
  border-color: var(--amber);
  background: rgba(245, 166, 35, 0.1);
  box-shadow:
    0 0 0 1px var(--amber-dim),
    0 8px 22px rgba(245, 166, 35, 0.18);
  transform: translateY(-3px);
}
.device-card img {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem;
  display: block;
}
.device-card .dn {
  font-size: 0.67rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}
.device-card .dw {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  color: var(--amber);
  margin-top: 3px;
}
.chk {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--amber);
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 0.55rem;
  color: #000;
  font-weight: 900;
}
.device-card.selected .chk {
  display: grid;
}

/* CUSTOM */
.cust-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 0.65rem;
  align-items: end;
}
@media (max-width: 560px) {
  .cust-row {
    grid-template-columns: 1fr 1fr;
  }
  .cust-row .btn-add {
    grid-column: span 2;
  }
}
.fg label {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.fg input,
.fg select {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.84rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fg input:focus,
.fg select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}
.fg input::placeholder {
  color: var(--muted);
}
.btn-add {
  padding: 0.62rem 1.1rem;
  background: var(--amber);
  color: #000;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-add:hover {
  background: #ffba38;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.32);
}

/* USAGE LIST */
.ulist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.uitem {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  animation: slide-in 0.25s ease;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.uitem:hover {
  border-color: #333;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.uitem img {
  width: 32px;
  height: 32px;
}
.u-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.u-sub {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--amber);
  margin-top: 2px;
}
.u-ctrl {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.qty-w {
  display: flex;
  align-items: center;
  gap: 5px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.qty-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.qty-n {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  min-width: 1.4rem;
  text-align: center;
}
.hrs-inp {
  width: 62px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 0.3rem 0.5rem;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.hrs-inp:focus {
  border-color: var(--amber);
}
.hrs-lbl {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  color: var(--muted);
}
.rm-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s;
  padding: 2px;
}
.rm-btn:hover {
  color: var(--red);
}
.empty-hint {
  text-align: center;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  padding: 2.5rem 0;
  letter-spacing: 0.05em;
}

/* GEN */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 0.85rem;
}
.gen-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.gen-card:hover {
  border-color: #333;
  transform: translateY(-3px);
}
.gen-card label {
  font-family: "DM Mono", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.28rem;
}
.gen-hint {
  font-size: 0.72rem;
  color: var(--muted2);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.gen-card input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.gen-card input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

/* CALC BUTTON */
.calc-btn {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, #d98a10, var(--amber) 50%, #ffc94a);
  color: #000;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.calc-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18)
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.calc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(245, 166, 35, 0.42);
}
.calc-btn:hover::before {
  opacity: 1;
}
.calc-btn:active {
  transform: translateY(0);
}

/* RESULTS */
.results-panel {
  background: var(--surface);
  border: 1.5px solid var(--amber-dim);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.results-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--amber) 40%,
    #ffc94a 60%,
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.metric {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 1rem 1.1rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}
.metric.m-hl {
  border-color: var(--amber);
  background: var(--amber-glow);
}
.metric.m-good .mval {
  color: var(--green);
}
.metric.m-warn .mval {
  color: var(--yellow);
}
.metric.m-bad .mval {
  color: var(--red);
}
.mlbl {
  font-family: "DM Mono", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.mval {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--amber);
  letter-spacing: 0.02em;
}
.munit {
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  color: var(--muted);
  margin-top: 3px;
}

/* BAR */
.bar-sec {
  margin-top: 1.25rem;
}
.bar-lbls {
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.bar-track {
  height: 13px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--amber-dim),
    var(--amber) 70%,
    #ffc94a
  );
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.bar-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28));
  animation: bar-glow 2s ease-in-out infinite;
}
@keyframes bar-glow {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.bar-cap {
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  color: var(--muted);
  margin-top: 6px;
}

/* REC */
.rec-box {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.1rem;
  transition: border-color 0.3s;
}
.rec-box img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: 1px;
}
.rec-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.rec-text {
  font-size: 0.8rem;
  color: var(--muted2);
  line-height: 1.65;
}

/* BREAKDOWN */
.bklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.bki {
  display: grid;
  grid-template-columns: 26px 1fr 68px 50px;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
}
.bk-bar-w {
  height: 7px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}
.bk-bar {
  height: 100%;
  background: var(--amber);
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s ease;
}
.bk-wh {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  color: var(--amber);
  text-align: right;
}
.bk-pct {
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  color: var(--muted);
  text-align: right;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
}
footer span {
  color: var(--amber);
}

@media (max-width: 640px) {
  nav {
    display: none;
  }
}
/* Floating Button */
.dev-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.dev-floating img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Developer Card */
.dev-card {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 220px;
  background: var(--amber);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
}

.dev-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--yellow);
  margin-bottom: 10px;
}

.dev-card h4 {
  margin: 5px 0;
}

.dev-card p {
  font-size: 14px;
  color: var(--muted);
}

.dev-whatsapp {
  display: block;
  margin-top: 10px;
  padding: 10px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
