:root {
  --bg-deep: #060816;

  --c1: #7c4dff;
  --c2: #6a5cff;
  --c3: #00d8ff;
  --c4: #9defff;

  --text: #eef4ff;
  --muted: #c7d4f7;
  --line: rgba(255,255,255,0.14);
  --panel: rgba(10, 15, 35, 0.58);
  --panel-2: rgba(12, 18, 44, 0.7);

  --shadow: 0 14px 28px rgba(0,0,0,.33);
  --radius: 20px;
  --radius-soft: 16px;
}

* { box-sizing: border-box; }

html { background: #060816; }
body {
  background: transparent;
  isolation: isolate;
  position: relative;
}

html {
  scroll-behavior: smooth;
  cursor: url("img/cursor-2.png"), auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

a, button {
  cursor: url("img/cursora-2.png"), pointer;
  color: inherit;
}

img, video { display: block; max-width: 100%; }

.stained-glass-bg,
.pcb-overlay,
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-wrap {
  position: relative;
  z-index: 2;
}

#drone-playfield {
  z-index: 20;
}

.stained-glass-bg {
  z-index: -3;
  background:
    radial-gradient(60% 50% at 12% 16%, rgba(124, 77, 255, 0.35), transparent 60%),
    radial-gradient(50% 45% at 82% 14%, rgba(0, 216, 255, 0.28), transparent 60%),
    radial-gradient(55% 55% at 20% 80%, rgba(106, 92, 255, 0.30), transparent 65%),
    radial-gradient(45% 50% at 78% 78%, rgba(0, 216, 255, 0.18), transparent 60%),
    linear-gradient(120deg, #04060e 0%, #08112a 40%, #060816 100%);
}

.stained-glass-bg::before,
.stained-glass-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
}
.stained-glass-bg::before {
  background:
    conic-gradient(from 25deg at 20% 25%, rgba(124,77,255,.18), transparent 18%, rgba(0,216,255,.14) 32%, transparent 46%, rgba(106,92,255,.18) 60%, transparent 74%),
    conic-gradient(from 210deg at 70% 35%, rgba(0,216,255,.14), transparent 20%, rgba(124,77,255,.12) 38%, transparent 56%);
  filter: blur(6px) saturate(135%);
}
.stained-glass-bg::after {
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(35deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(155deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  opacity: .55;
  mix-blend-mode: screen;
}

.pcb-overlay {
  z-index: -2;
  opacity: .35;
  background-repeat: repeat;
  background-position: center;
  transition: background-image 320ms ease;
  mask-image: radial-gradient(circle at center, black 35%, rgba(0,0,0,.65) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, rgba(0,0,0,.65) 75%, transparent 100%);
}

.noise-overlay {
  z-index: -1;
  opacity: .05;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, #fff 1px, transparent 1px),
    radial-gradient(circle at 35% 75%, #fff 1px, transparent 1px),
    radial-gradient(circle at 60% 18%, #fff 1px, transparent 1px);
  background-size: 4px 4px, 5px 5px, 6px 6px, 7px 7px;
}

.page-wrap {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 14px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 290px;
  gap: 14px;
  align-items: start;
}

.main-col {
  display: grid;
  gap: 14px;
}

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(260px 80px at 10% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(220px 70px at 90% 0%, rgba(0,216,255,.08), transparent 60%);
  pointer-events: none;
}

.panel {
  background-color: rgba(10, 15, 35, 0.78);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .panel {
    background-color: rgba(10, 15, 35, 0.58);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }
}

.tilt-a { transform: rotate(-0.35deg); }
.tilt-b { transform: rotate(0.35deg); }

.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-0.4deg); }

.btn-primary {
  background: linear-gradient(135deg, rgba(124,77,255,.78), rgba(0,216,255,.55));
  box-shadow: 0 8px 18px rgba(124,77,255,.28);
}
.btn-primary:hover {
  box-shadow: 0 12px 22px rgba(124,77,255,.34);
}
.btn-ghost {
  background: rgba(255,255,255,.04);
}

.sidebar {
  position: sticky;
  top: 14px;
  padding: 12px;
}

.sidebar-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.08);
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 5px;
}

.tiny-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.logo-text {
  font-weight: 800;
  letter-spacing: .02em;
}

.drone-btn {
  width: 100%;
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.drone-score {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.07);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nav-list a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.02);
  transition: transform .16s ease, background .2s ease, border-color .2s ease;
}
.nav-list a:hover,
.nav-list a.active {
  transform: translateX(4px) rotate(-0.3deg);
  background: linear-gradient(90deg, rgba(124,77,255,.18), rgba(0,216,255,.12));
  border-color: rgba(255,255,255,.1);
}

.sidebar-tools {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.sidebar-tools .btn {
  width: 100%;
}

.micro-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.hero {
  padding: 16px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: center;
}

.sticker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .07em;
  background: rgba(124,77,255,.22);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: .98;
  letter-spacing: -.02em;
}

.hero-text {
  margin: 0;
  max-width: 50ch;
  color: #e7efff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip-tag {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  color: #eaf7ff;
  background: rgba(0,216,255,.08);
  border: 1px solid rgba(0,216,255,.18);
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-card {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  transform: rotate(1.2deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.portrait-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(124,77,255,.24), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(0,216,255,.2), transparent 62%);
  animation: driftGlow 8s ease-in-out infinite alternate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
  z-index: 2;
}

.fun-label {
  position: absolute;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(12,16,35,.75);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--c4);
  transform: rotate(-5deg);
}
.fun-label.one { top: 12px; right: 12px; animation: wobble 3s ease-in-out infinite; }
.fun-label.two { bottom: 14px; left: 12px; transform: rotate(4deg); animation: wobble 3.4s ease-in-out infinite reverse; }

.float-chip {
  position: absolute;
  z-index: 1;
  font-weight: 700;
  color: rgba(157,239,255,.35);
  text-shadow: 0 0 10px rgba(0,216,255,.4);
  animation: floatChip 5s ease-in-out infinite;
}
.float-chip.c1 { left: 15%; top: 16%; font-size: 22px; animation-delay: .2s; }
.float-chip.c2 { right: 16%; top: 40%; font-size: 18px; animation-delay: 1.1s; }
.float-chip.c3 { left: 24%; bottom: 18%; font-size: 24px; animation-delay: 2.2s; }

.card-section {
  padding: 14px;
}

.section-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c4);
  opacity: .9;
}

.card-section h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
  position: relative;
  transition: transform .18s ease, background .2s ease;
}
.mini-card:hover {
  transform: translateY(-3px) rotate(-.4deg);
  background: rgba(255,255,255,.035);
}

.mini-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.steps-playful {
  display: grid;
  gap: 8px;
}

.step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.06);
}
.step:hover {
  transform: rotate(.25deg);
  border-style: solid;
}
.step-dot {
  margin-top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--c3));
  box-shadow: 0 0 12px rgba(0,216,255,.45);
}
.step h3 {
  margin: 0 0 3px;
  font-size: 15px;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.mechanic-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(124,77,255,.11);
  border: 1px solid rgba(124,77,255,.24);
  font-size: 12px;
  font-weight: 700;
}

.split-fun {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.doodle-card::after {
  content: "✎";
  position: absolute;
  top: 8px;
  right: 10px;
  opacity: .35;
  font-size: 14px;
}
.doodle-line {
  margin-top: 10px;
  height: 6px;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,77,255,.35), rgba(0,216,255,.2));
  opacity: .7;
}
.doodle-line.short { width: 48%; }

.download-box {
  display: grid;
  gap: 10px;
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,.08);
}
.download-box ol {
  margin: 0;
  padding-left: 18px;
}
.download-box li {
  margin: 4px 0;
}
code {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: .08em .35em;
  font-family: Consolas, monospace;
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.video-wrap {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
}
.video-header {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--c4);
}
.video-wrap video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.35);
}

.footer-panel {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.footer-mini {
  color: var(--muted);
  font-size: 13px;
}

.updates {
  position: sticky;
  top: 14px;
  padding: 24px;
}

.map-updates {
  background:
    linear-gradient(rgba(8, 10, 22, .56), rgba(8, 10, 22, .56)),
    url("img/map.png");
  background-size: cover;
  background-position: center;
  border-style: dashed;
}

.map-updates::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.02) 0px,
      rgba(255,255,255,.02) 1px,
      transparent 1px,
      transparent 28px
    );
  opacity: .28;
}

.tape {
  position: absolute;
  width: 64px;
  height: 18px;
  background: rgba(180, 240, 255, .10);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.tape.t1 { top: 8px; left: 18px; transform: rotate(-16deg); }
.tape.t2 { top: 8px; right: 16px; transform: rotate(14deg); }

.updates-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 14px;
}
.pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c3);
  box-shadow: 0 0 10px rgba(0,216,255,.6);
  animation: blinkPin 2s ease-in-out infinite;
}
.updates-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.update-list {
  position: relative;
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.update-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 14, 28, .42);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: rotate(var(--rot, 0deg));
}
.update-list li:nth-child(1){ --rot: -0.4deg; }
.update-list li:nth-child(2){ --rot: 0.5deg; }
.update-list li:nth-child(3){ --rot: -0.2deg; }
.update-list li:nth-child(4){ --rot: 0.35deg; }

.update-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.update-list p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.updates-note {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
}

#drone-playfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.drone-sprite {
  position: fixed;
  width: 76px;
  height: 76px;
  pointer-events: auto;
  user-select: none;
  transform-origin: center;
  animation: droneBuzz .14s linear infinite alternate;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.35));
  display: grid;
  place-items: center;
}

.drone-sprite img.drone-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(0,216,255,.25));
}

.drone-sprite.hit img.drone-img {
  filter:
    drop-shadow(0 0 10px rgba(0,216,255,.6))
    saturate(1.25);
}

.drone-sprite.falling {
  transition: transform .15s linear;
}

.drone-sprite.hit .drone-body {
  background: linear-gradient(180deg, rgba(0,216,255,.9), rgba(124,77,255,.9));
}
.drone-sprite.hit {
  animation: none;
}

.pop {
  position: fixed;
  pointer-events: none;
  z-index: 25;
  font-weight: 900;
  font-size: 18px;
  color: #dff8ff;
  text-shadow: 0 0 10px rgba(0,216,255,.7);
  animation: popFloat .7s ease-out forwards;
}

.spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c3);
  pointer-events: none;
  z-index: 24;
  box-shadow: 0 0 8px rgba(0,216,255,.8);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 18px rgba(124,77,255,.20); }
  50% { box-shadow: 0 10px 24px rgba(0,216,255,.22); }
}
@keyframes driftGlow {
  0% { transform: translate(-2%, -2%) scale(1); }
  100% { transform: translate(2%, 2%) scale(1.04); }
}
@keyframes wobble {
  0%,100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-2px); }
}
@keyframes floatChip {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .35; }
  50% { transform: translateY(-8px) rotate(8deg); opacity: .6; }
}
@keyframes blinkPin {
  0%,100% { opacity: .75; }
  50% { opacity: 1; }
}
@keyframes droneBuzz {
  from { transform: translateY(-0.4px) rotate(-0.6deg); }
  to   { transform: translateY(0.4px) rotate(0.6deg); }
}
@keyframes popFloat {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.8); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(1.08); }
}

@media (max-width: 1250px) {
  .page-wrap {
    grid-template-columns: 240px minmax(0,1fr);
  }
  .updates {
    position: static;
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 980px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar, .updates {
    position: static;
  }

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

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

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

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

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

  .footer-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
}

@media (max-width: 620px) {
  .page-wrap { padding: 10px; gap: 10px; }
  .nav-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}