@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("./assets/fonts/ShareTechMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #04070d;
  color: #e8f2ff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #04070d;
  outline: none;
  z-index: 0;
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(16, 68, 86, 0.28), transparent 62%),
    #04070d;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#boot.gone {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}
#boot .grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(59, 232, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 232, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(52deg) translateY(24%);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  animation: drift 18s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 64px 0; }
}
#boot .glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 232, 255, 0.12), transparent 68%);
  filter: blur(4px);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}
#boot .boot-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.mark {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 26px;
}
.mark .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(59, 232, 255, 0.55);
  transform: rotate(45deg);
}
.mark .r1 { animation: spin 9s linear infinite; }
.mark .r2 { inset: 12px; border-color: rgba(59, 232, 255, 0.3); animation: spin 6s linear infinite reverse; }
.mark .core {
  position: absolute;
  inset: 28px;
  background: #3be8ff;
  box-shadow: 0 0 24px rgba(59, 232, 255, 0.9);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(405deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
.kicker {
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 6px;
  color: rgba(59, 232, 255, 0.78);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.92;
  letter-spacing: 2px;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 60px rgba(59, 232, 255, 0.18);
}
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 18px;
  width: min(520px, 74vw);
}
.rule i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 255, 0.5));
}
.rule i:last-child { transform: scaleX(-1); }
.rule span {
  width: 6px;
  height: 6px;
  background: #3be8ff;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(59, 232, 255, 0.9);
}
.sub {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(9px, 1.1vw, 13px);
  letter-spacing: 3px;
  color: rgba(190, 212, 236, 0.7);
  margin: 0 0 34px;
}
.progress {
  width: min(420px, 68vw);
  height: 2px;
  margin: 0 auto 14px;
  background: rgba(59, 232, 255, 0.12);
  overflow: hidden;
}
.progress .bar {
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #3be8ff, transparent);
  animation: scan 1.6s ease-in-out infinite;
}
@keyframes scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}
.status {
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(59, 232, 255, 0.85);
}
.meta {
  margin-top: 44px;
  font-family: "Share Tech Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 2.4px;
  color: rgba(114, 134, 160, 0.6);
}
.corners { position: absolute; inset: 26px; pointer-events: none; }
.corners i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(59, 232, 255, 0.28);
  border-style: solid;
  border-width: 0;
}
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

@media (max-width: 640px) {
  .meta { display: none; }
  #boot .boot-inner { padding: 22px; }
}
