:root {
  --bg: #06080d;
  --bg-soft: #0b111b;
  --text: #e8f0ff;
  --muted: #9eb2d4;
  --accent: #22d3ee;
  --accent-2: #34d399;
  --card: rgba(10, 18, 33, 0.62);
  --border: rgba(160, 186, 232, 0.24);
  --shadow: 0 24px 60px rgba(4, 9, 18, 0.6);
  --radius-lg: 22px;
  --radius-md: 14px;
  --dim-a: rgba(14, 45, 76, 0.2);
  --dim-b: rgba(14, 65, 58, 0.2);
  --dim-top: rgba(2, 8, 16, 0.34);
  --dim-bottom: rgba(2, 8, 16, 0.58);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.08) brightness(0.56);
}

.bg-dim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, var(--dim-a), transparent 52%),
    radial-gradient(circle at 80% 24%, var(--dim-b), transparent 56%),
    linear-gradient(180deg, var(--dim-top), var(--dim-bottom));
}

.bg-layer {
  position: fixed;
  inset: -15vmax;
  z-index: 0;
  pointer-events: none;
}

.bg-layer-1 {
  background:
    radial-gradient(40% 40% at 18% 20%, rgba(34, 211, 238, 0.26), transparent 70%),
    radial-gradient(36% 36% at 76% 24%, rgba(52, 211, 153, 0.2), transparent 70%),
    radial-gradient(55% 55% at 52% 80%, rgba(59, 130, 246, 0.2), transparent 72%);
  animation: driftA 16s ease-in-out infinite alternate;
}

.bg-layer-2 {
  background:
    radial-gradient(35% 35% at 70% 72%, rgba(14, 165, 233, 0.16), transparent 70%),
    radial-gradient(40% 40% at 15% 78%, rgba(22, 163, 74, 0.14), transparent 72%);
  mix-blend-mode: screen;
  animation: driftB 22s ease-in-out infinite alternate;
}

.bg-layer-3 {
  background:
    conic-gradient(
      from 180deg at 50% 50%,
      rgba(52, 211, 153, 0) 0%,
      rgba(52, 211, 153, 0.12) 22%,
      rgba(56, 189, 248, 0.1) 47%,
      rgba(59, 130, 246, 0.07) 70%,
      rgba(52, 211, 153, 0) 100%
    );
  opacity: 0.5;
  filter: blur(30px);
  animation: spinGlow 30s linear infinite;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(174, 202, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 202, 255, 0.25) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 80%);
}

.aurora {
  position: fixed;
  inset: -8vh -18vw;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.78;
}

.aurora-band {
  position: absolute;
  inset: auto;
  width: 62vw;
  height: 30vh;
  filter: blur(26px);
  border-radius: 50%;
}

.aurora-band-a {
  left: -6vw;
  top: 8vh;
  background: radial-gradient(circle at 25% 50%, rgba(34, 211, 238, 0.42), rgba(34, 211, 238, 0) 68%);
  animation: auroraA 24s ease-in-out infinite alternate;
}

.aurora-band-b {
  right: -4vw;
  top: 18vh;
  background: radial-gradient(circle at 70% 45%, rgba(52, 211, 153, 0.36), rgba(52, 211, 153, 0) 70%);
  animation: auroraB 28s ease-in-out infinite alternate;
}

.aurora-band-c {
  left: 18vw;
  bottom: 7vh;
  background: radial-gradient(circle at 50% 60%, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0) 70%);
  animation: auroraC 32s ease-in-out infinite alternate;
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: var(--size, 140px);
  height: var(--size, 140px);
  left: var(--x, 50%);
  top: var(--y, 50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 60% 70%, rgba(34, 211, 238, 0.35), rgba(34, 211, 238, 0) 68%);
  filter: blur(1px);
  opacity: 0.36;
  animation: orbFloat var(--dur, 22s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  left: var(--x, 50%);
  top: 110%;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.5);
  opacity: 0;
  animation: floatUp var(--dur, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  margin: 28px auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(8, 14, 26, 0.86), rgba(7, 13, 23, 0.73));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transform: perspective(1200px) rotateX(calc(var(--tiltY, 0deg) * -1)) rotateY(var(--tiltX, 0deg));
  transition: transform 0.22s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.6s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}
.reveal:nth-child(3) {
  animation-delay: 0.16s;
}
.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #06101e;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 20px rgba(10, 25, 44, 0.4);
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge {
  margin-left: auto;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(46, 204, 113, 0.45);
  color: #b9ffd9;
  background: rgba(20, 50, 35, 0.62);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.hero h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3.1vw, 2.15rem);
  line-height: 1.2;
  max-width: 20ch;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
  max-width: 640px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(132, 162, 222, 0.38);
  color: var(--text);
  text-decoration: none;
  background: rgba(11, 20, 36, 0.8);
  font-weight: 650;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.62);
  box-shadow: 0 10px 24px rgba(15, 35, 64, 0.45);
}

.action:active {
  transform: translateY(0);
}

.action-primary {
  color: #021823;
  background: linear-gradient(130deg, var(--accent-2), var(--accent));
  border: none;
}

.action-disabled {
  opacity: 0.4;
  pointer-events: none;
}

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

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.card li + li {
  margin-top: 6px;
}

.footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-entry {
  cursor: pointer;
  user-select: none;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(2, 7, 16, 0.66);
  backdrop-filter: blur(4px);
  padding: 14px;
}

.admin-overlay.is-open {
  display: grid;
  place-items: center;
}

.admin-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(5, 12, 23, 0.95);
  box-shadow: var(--shadow);
  padding: 16px;
}

.admin-card h3 {
  margin: 0 0 10px;
}

.admin-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-note-inline {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

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

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field label {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(7, 15, 28, 0.88);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
}

.admin-field textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(7, 15, 28, 0.9);
  color: var(--text);
  min-height: 40px;
  padding: 0 12px;
  font-weight: 650;
  cursor: pointer;
}

.admin-btn.primary {
  border: none;
  color: #031420;
  background: linear-gradient(130deg, var(--accent-2), var(--accent));
}

.admin-btn.warn {
  border-color: rgba(244, 63, 94, 0.5);
  color: #ffd8df;
  background: rgba(66, 17, 31, 0.56);
}

.admin-error {
  margin-top: 8px;
  color: #ffb4c2;
  font-size: 0.86rem;
  min-height: 1.2em;
}

.admin-video-modal {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.admin-video-box h4 {
  margin: 0 0 8px;
}

.admin-dropzone {
  border: 1px dashed rgba(144, 184, 255, 0.55);
  border-radius: 12px;
  min-height: 110px;
  padding: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #d7e7ff;
  background: rgba(7, 15, 28, 0.78);
  cursor: pointer;
}

.admin-dropzone.is-drag {
  border-color: rgba(52, 211, 153, 0.9);
  background: rgba(11, 33, 30, 0.62);
}

@keyframes driftA {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 1%, 0) scale(1.05);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(1%, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-1%, -2%, 0) scale(1.06);
  }
}

@keyframes spinGlow {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.06);
  }
}

@keyframes auroraA {
  from {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.95);
  }
  to {
    transform: translate3d(8vw, 4vh, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes auroraB {
  from {
    transform: translate3d(0, 0, 0) rotate(6deg) scale(0.96);
  }
  to {
    transform: translate3d(-10vw, -3vh, 0) rotate(-8deg) scale(1.09);
  }
}

@keyframes auroraC {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.94);
  }
  to {
    transform: translate3d(7vw, -4vh, 0) rotate(8deg) scale(1.1);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.2);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: 0.65;
  }
  88% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(var(--dx, 12px), var(--dy, -20px), 0) scale(1.08);
  }
}

@media (max-width: 940px) {
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    margin: 14px auto;
    padding: 18px;
    border-radius: 18px;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .badge {
    margin-left: 0;
  }
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
