: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;
  -webkit-text-size-adjust: 100%;
}

.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;
}

.hero {
  min-width: 0;
}

.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;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  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;
}

.badge::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 0.5em;
  height: 0.5em;
  border-radius: 999px;
  background: #3cff79;
  box-shadow: 0 0 0 0 rgba(60, 255, 121, 0.65);
  animation: status-dot-blink 1.3s ease-in-out infinite;
}

.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;
  min-width: 0;
  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;
  min-width: 0;
}

.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;
}

@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 status-dot-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(60, 255, 121, 0.52);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.84);
    box-shadow: 0 0 0 8px rgba(60, 255, 121, 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 (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .shell {
    transform: none !important;
  }

  .bg-video {
    filter: saturate(1) brightness(0.58);
  }
}

@media (max-width: 940px) {
  .shell {
    width: min(980px, calc(100% - 24px));
    margin: 18px auto;
    padding: 22px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .hero p {
    max-width: 100%;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .shell {
    margin: 12px auto 18px;
    padding: 18px;
    border-radius: 18px;
    transform: none !important;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: center;
  }

  .brand-copy h1 {
    font-size: 1.24rem;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .badge {
    margin-left: 0;
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .hero h2 {
    font-size: clamp(1.28rem, 6.2vw, 1.58rem);
  }

  .hero p {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .action {
    min-height: 46px;
    font-size: 0.96rem;
  }

  .cards {
    margin-top: 14px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 14px;
  }

  .card ul {
    padding-left: 16px;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 16px);
    padding: 14px;
    border-radius: 16px;
  }

  .topbar {
    gap: 8px 10px;
    margin-bottom: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 0.88rem;
  }

  .brand-copy h1 {
    font-size: 1.06rem;
    line-height: 1.2;
  }

  .hero h2 {
    font-size: 1.18rem;
    line-height: 1.28;
  }

  .hero p,
  .card ul,
  .card li {
    font-size: 0.9rem;
  }
}
