:root {
  --bg: #003b73;
  --bg-deep: #00315f;
  --text: #f3f7fb;
  --muted: #d2e0ee;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #00315f;
  color: var(--text);
}

.page {
  height: 100dvh;
  position: relative;
  padding: 24px;
  z-index: 40;
}

.bg-gradient,
.background-pattern,
.glass-panel {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-gradient {
  z-index: 10;
  background:
    radial-gradient(120% 120% at 0% 0%, #004a8f 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.background-pattern {
  z-index: 20;
  opacity: 0.58;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: float 8s ease-in-out infinite;
}

.glass-panel {
  z-index: 30;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(220, 238, 252, 0.04);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(122%);
  -webkit-backdrop-filter: blur(16px) saturate(122%);
}

.hero-copy {
  position: absolute;
  top: 45vh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 48px));
  text-align: center;
}

.tagline {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}

.tagline-static {
  color: #ffffff;
  font-style: normal;
  font-weight: 300;
}

#rotating-text {
  color: #21a8ff;
  font-style: italic;
  font-weight: 300;
}

.subtagline {
  color: #ffffff;
  margin: 30px 0 0;
  font-size: clamp(1rem, 2.3vw, 1.65rem);
  line-height: 1.1;
  font-weight: 300;
}

.deck-link-row {
  position: fixed;
  left: 50%;
  bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 18px;
}

.deck-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cursor {
  color: #21a8ff;
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-30px) rotate(120deg) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translateY(15px) rotate(240deg) scale(0.9);
    opacity: 0.4;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
  .hero-copy {
    top: 42vh;
    width: calc(100% - 28px);
  }

  .subtagline {
    margin-top: 18px;
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .deck-link-row {
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    font-size: 0.98rem;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-circle,
  .cursor {
    animation: none;
  }
}
