/*
  Theme tokens for the landing page.
  Update these first when changing the overall color direction, glow strength, or button style.
*/
:root {
  --bg-base: #07111f;
  --bg-deep: #01050c;
  --text: #edf5ff;
  --muted: rgba(189, 211, 232, 0.72);
  --glass-bg: 214 52% 11% / 0.6;
  --glass-border: 206 58% 84% / 0.24;
  --shadow-cloud: 0 28px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(55, 170, 255, 0.16);
  --shadow-glow: 0 0 0 8px rgba(43, 153, 255, 0.1), 0 0 34px rgba(43, 153, 255, 0.28), inset 0 0 24px rgba(218, 231, 245, 0.12);
  --shadow-button: 0 10px 35px rgba(27, 138, 255, 0.34);
  --shadow-button-hover: 0 14px 44px rgba(27, 138, 255, 0.42);
  --gradient-button: linear-gradient(90deg, #dfe8f5 0%, #43c4ff 46%, #0d6dff 100%);
  --gradient-button-secondary: linear-gradient(180deg, rgba(25, 46, 74, 0.92), rgba(8, 17, 31, 0.96));
  --gradient-ring: conic-gradient(from 0deg, rgba(226, 237, 248, 0.34), rgba(58, 196, 255, 0.9), rgba(20, 102, 255, 0.88), rgba(233, 242, 250, 0.34), rgba(226, 237, 248, 0.34));
  --gradient-text: linear-gradient(90deg, #f7fbff 0%, #dbe9f6 24%, #76d8ff 54%, #0f6fff 76%, #ffffff 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(61, 187, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #0b1c33 0%, var(--bg-base) 46%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, transparent 0, rgba(63, 186, 255, 0.06) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(217, 229, 240, 0.035) 50%, transparent 100%);
  background-size: 22% 100%, 100% 18%;
  opacity: 0.5;
  mix-blend-mode: screen;
}

body::after {
  background: radial-gradient(circle at 50% 45%, rgba(35, 160, 255, 0.12), transparent 36%);
  filter: blur(20px);
  opacity: 0.7;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 24px;
}

/*
  Background effect layers.
  Tune these blocks to change the overall atmosphere: image wash, vignette, radar grid, scanline, aurora haze, and floating motes.
*/
.bg-image,
.bg-vignette,
.bg-grid,
.bg-scanline,
.aurora,
.mote-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-image {
  inset: -8%;
  background:
    radial-gradient(circle at 50% 16%, rgba(219, 234, 247, 0.22), transparent 18%),
    radial-gradient(circle at 16% 74%, rgba(112, 204, 255, 0.14), transparent 26%),
    radial-gradient(circle at 84% 64%, rgba(24, 119, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 19, 36, 0.36), rgba(1, 5, 12, 0.92));
  filter: saturate(1.12) blur(0.2px);
  will-change: transform, filter;
  animation: bg-drift 22s ease-in-out infinite alternate, bg-hue 28s linear infinite;
  z-index: -4;
}

.bg-vignette {
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(2, 6, 12, 0.68) 72%),
    radial-gradient(ellipse at 50% 100%, rgba(36, 162, 255, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(1, 5, 11, 0.4));
  z-index: -3;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(71, 194, 255, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 227, 239, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -2;
  animation: grid-pan 24s linear infinite;
}

.bg-grid::before,
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bg-grid::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(224, 236, 247, 0.16) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(49, 186, 255, 0.16) 28.4%, transparent 29%),
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(213, 225, 239, 0.09) 44.4%, transparent 45%),
    radial-gradient(circle at 50% 50%, transparent 0 62%, rgba(22, 111, 255, 0.08) 62.4%, transparent 63%);
  opacity: 0.9;
  transform: scale(1.15);
}

.bg-grid::after {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(37, 173, 255, 0.16) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(217, 229, 242, 0.12) 50%, transparent 50.2%);
  opacity: 0.55;
}

.bg-scanline {
  top: -10%;
  bottom: auto;
  height: 42vh;
  background:
    linear-gradient(to bottom, transparent, rgba(41, 169, 255, 0.12), rgba(220, 232, 244, 0.08), transparent),
    linear-gradient(90deg, transparent, rgba(202, 230, 255, 0.07), transparent);
  z-index: -1;
  animation: scan-sweep 7.5s ease-in-out infinite;
}

.aurora {
  inset: auto;
  width: 56vw;
  height: 18vw;
  min-width: 340px;
  min-height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 50%, rgba(218, 232, 245, 0.34), transparent 24%),
    radial-gradient(circle at 52% 52%, rgba(55, 193, 255, 0.26), transparent 28%),
    radial-gradient(circle at 78% 48%, rgba(18, 104, 255, 0.22), transparent 20%);
  filter: blur(34px);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.aurora::before {
  content: "";
  position: absolute;
  inset: 16% 10%;
  border-radius: 50%;
  border: 1px solid rgba(208, 226, 244, 0.22);
  filter: blur(1px);
  transform: skewX(-22deg);
}

.aurora-top {
  top: 1vh;
  left: -6vw;
  z-index: -1;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora-left {
  left: -12vw;
  bottom: 10vh;
  z-index: -1;
  transform: rotate(10deg);
  animation: aurora-drift-left 20s ease-in-out infinite alternate;
}

.aurora-right {
  right: -10vw;
  bottom: 6vh;
  z-index: -1;
  transform: rotate(-12deg);
  animation: aurora-drift-right 22s ease-in-out infinite alternate;
}

.mote-field {
  z-index: -1;
  overflow: hidden;
}

.mote {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: var(--m-size, 3px);
  height: var(--m-size, 3px);
  border-radius: 9999px;
  background: #69d5ff;
  box-shadow: 0 0 6px rgba(105, 213, 255, 0.92), 0 0 14px rgba(224, 236, 247, 0.44);
  opacity: 0;
  will-change: transform, opacity;
  animation: mote-rise var(--m-duration, 12s) linear infinite, mote-blink var(--m-duration, 12s) ease-in-out infinite;
  animation-delay: var(--m-delay, 0s);
}

.mote-1 { left: 8%; --m-size: 2px; --m-duration: 11s; --m-delay: 0s; }
.mote-2 { left: 18%; --m-size: 4px; --m-duration: 14s; --m-delay: 2s; }
.mote-3 { left: 27%; --m-size: 3px; --m-duration: 10s; --m-delay: 1s; }
.mote-4 { left: 39%; --m-size: 2px; --m-duration: 13s; --m-delay: 4s; }
.mote-5 { left: 52%; --m-size: 4px; --m-duration: 12s; --m-delay: 3s; }
.mote-6 { left: 61%; --m-size: 2px; --m-duration: 16s; --m-delay: 5s; }
.mote-7 { left: 70%; --m-size: 3px; --m-duration: 11s; --m-delay: 1.5s; }
.mote-8 { left: 79%; --m-size: 4px; --m-duration: 15s; --m-delay: 6s; }
.mote-9 { left: 88%; --m-size: 2px; --m-duration: 12s; --m-delay: 2.5s; }
.mote-10 { left: 94%; --m-size: 3px; --m-duration: 14s; --m-delay: 4.5s; }

.glass-card {
  position: relative;
  background: hsla(var(--glass-bg));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid hsla(var(--glass-border));
  box-shadow: var(--shadow-cloud);
}

/* Hero card layout and branding block. */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, transparent 30%, rgba(73, 191, 255, 0.12) 50%, transparent 70%);
  background-size: 250% 250%;
  animation: shimmer-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 438px);
  padding: 28px 34px 24px;
  border-radius: 32px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(223, 235, 247, 0.24), rgba(71, 188, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-float {
  animation: card-float 9s ease-in-out infinite;
}

.hero-badge {
  width: 144px;
  height: 144px;
  margin: 0 auto 24px;
  padding: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(20, 40, 72, 0.95), rgba(3, 8, 18, 1));
}

.hero-badge img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(55, 193, 255, 0.34));
}

.logo-ring {
  background: var(--gradient-ring);
  box-shadow: var(--shadow-glow);
}

.eyebrow,
.handle,
.tagline {
  font-family: "JetBrains Mono", monospace;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(2.3rem, 7vw, 3.15rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.holo-text {
  background: var(--gradient-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holo-shift 6s ease-in-out infinite;
}

.handle {
  margin: 0;
  color: rgba(222, 232, 242, 0.78);
  font-size: 0.98rem;
  font-weight: 600;
}

.divider {
  width: 66px;
  height: 1px;
  margin: 18px auto 16px;
  background: linear-gradient(90deg, transparent, rgba(59, 191, 255, 0.52), transparent);
}

.tagline {
  margin: 0;
  color: rgba(237, 245, 255, 0.92);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.subcopy {
  margin: 12px auto 0;
  max-width: 290px;
  color: rgba(185, 205, 224, 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cta-group {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

/* Primary and secondary CTA styling. */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.cta:hover::before {
  transform: translateX(120%);
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
}

.cta:active {
  transform: translateY(0) scale(0.99);
}

.cta svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.cta-primary {
  background: var(--gradient-button);
  color: #03111f;
  box-shadow: var(--shadow-button);
}

.cta-primary:hover {
  box-shadow: var(--shadow-button-hover);
  filter: saturate(1.08);
}

.cta-secondary {
  background: var(--gradient-button-secondary);
  color: #f2f2f2;
  border: 1px solid rgba(210, 210, 210, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-secondary:hover {
  border-color: rgba(230, 230, 230, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(43, 167, 255, 0.18);
}

.corner-glow {
  position: absolute;
  inset: 18% 16% auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(47, 176, 255, 0.22), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

/* Animation section: reduce durations or remove keyframes here if you want a calmer page. */
@keyframes bg-drift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes bg-hue {
  0% { filter: saturate(1.08) hue-rotate(0deg); }
  50% { filter: saturate(1.16) hue-rotate(-4deg); }
  100% { filter: saturate(1.08) hue-rotate(0deg); }
}

@keyframes grid-pan {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(48px, 24px, 0); }
}

@keyframes scan-sweep {
  0%, 100% { transform: translateY(-12vh); opacity: 0.2; }
  50% { transform: translateY(82vh); opacity: 0.7; }
}

@keyframes aurora-drift {
  0% { transform: translate3d(0, 0, 0) rotate(6deg) scale(1); }
  100% { transform: translate3d(4vw, 2vh, 0) rotate(-5deg) scale(1.08); }
}

@keyframes aurora-drift-left {
  0% { transform: translate3d(0, 0, 0) rotate(8deg) scale(1); }
  100% { transform: translate3d(5vw, -1vh, 0) rotate(0deg) scale(1.06); }
}

@keyframes aurora-drift-right {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg) scale(1); }
  100% { transform: translate3d(-4vw, -2vh, 0) rotate(-2deg) scale(1.08); }
}

@keyframes shimmer-sweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes holo-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mote-rise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.45; }
  100% { transform: translate3d(22px, -110vh, 0) scale(1); opacity: 0; }
}

@keyframes mote-blink {
  0%, 100% { opacity: 0; }
  35% { opacity: 0.9; }
  65% { opacity: 0.35; }
}

@media (max-width: 640px) {
  .scene {
    padding: 18px;
  }

  .hero {
    padding: 24px 22px 20px;
    border-radius: 28px;
  }

  .hero-badge {
    width: 124px;
    height: 124px;
    margin-bottom: 22px;
  }

  .hero-badge img {
    width: 90px;
    height: 90px;
  }

  h1 {
    letter-spacing: 0.06em;
  }

  .tagline {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
  }

  .subcopy {
    font-size: 0.9rem;
  }

  .aurora {
    width: 84vw;
    height: 32vw;
  }

  .cta {
    font-size: 1.08rem;
  }
}