:root {
  --bg-a: #09131a;
  --bg-b: #0f2230;
  --panel: #112e3a;
  --text: #e7fbff;
  --muted: #97bac3;
  --accent: #00ffc6;
  --accent-2: #ffd447;
  --danger: #ff4d6d;
}

* {
  box-sizing: border-box;
}

a, button, input, select, textarea {
  font: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Consolas", "Lucida Console", "Courier New", monospace;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #1f495d 0%, transparent 60%),
    radial-gradient(900px 480px at 100% 0%, #3c2538 0%, transparent 55%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b));
}

.booting {
  overflow: hidden;
}

.booting .wrap {
  opacity: 0;
  transform: scale(0.992);
  filter: blur(2px);
}

.boot-complete .wrap {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.scanlines::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    #fff 0px,
    #fff 1px,
    transparent 2px,
    transparent 4px
  );
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 400px at 30% 10%, rgba(0, 255, 198, 0.18), transparent 60%),
    linear-gradient(140deg, #050d13, #0c1c26 50%, #0f2734);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.boot-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-panel {
  width: min(580px, 90vw);
  border: 1px solid #245162;
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(16, 41, 53, 0.92), rgba(8, 17, 25, 0.95));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.boot-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 198, 0.4);
}

.boot-sub {
  margin-top: 4px;
  color: #9ad8e7;
  font-size: 0.9rem;
}

.pixel-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.px {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #173e4c;
  border: 1px solid #225667;
  animation: pixelPulse 1.1s steps(2, end) infinite;
}

.px:nth-child(3n) {
  animation-delay: 0.15s;
}

.px:nth-child(4n) {
  animation-delay: 0.25s;
}

.boot-progress {
  margin-top: 16px;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #2a697e;
  background: #0a1f29;
  overflow: hidden;
}

.boot-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #23d7ff, #1cf8a8);
  box-shadow: 0 0 16px rgba(35, 215, 255, 0.45);
  transition: width 0.18s linear;
}

.boot-status {
  margin-top: 8px;
  color: #b9ebf6;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 36px;
}

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #2cc3e6;
  border-radius: 999px;
  color: #86edff;
  background: #0f3645;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 255, 198, 0.35);
}

h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
}

p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.install-label {
  margin: 2px 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fe8d8;
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: #00140f;
  background: linear-gradient(180deg, #6dffdc, var(--accent));
  border: 2px solid #c1fff0;
  border-radius: 14px;
  padding: 20px 34px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 28px rgba(0, 255, 198, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 32px rgba(0, 255, 198, 0.42);
}

.cta-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #b6f9ec;
}

.preview {
  border: 1px solid #255266;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 73, 92, 0.34), rgba(12, 26, 36, 0.8));
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.preview img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid #1d4f60;
  image-rendering: pixelated;
}

.grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #254758;
  background: linear-gradient(170deg, #122d39, #0c1d29);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #2ea5c9;
}

.card strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.card span {
  color: #caeaf0;
  font-size: 0.95rem;
}

.about {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #254758;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(23, 48, 62, 0.7), rgba(11, 24, 34, 0.9));
}

footer {
  margin-top: 20px;
  color: #86a6b0;
  font-size: 0.86rem;
  border-top: 1px solid #224050;
  padding-top: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulseGlow 2.1s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 198, 0.2), 0 12px 28px rgba(0, 255, 198, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 255, 198, 0.35), 0 14px 30px rgba(0, 255, 198, 0.4);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 255, 198, 0.2), 0 12px 28px rgba(0, 255, 198, 0.35);
  }
}

@keyframes pixelPulse {
  0% {
    background: #173e4c;
    transform: translateY(0);
  }
  50% {
    background: #2ce4f7;
    transform: translateY(-1px);
  }
  100% {
    background: #127a79;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}
