/* OnlySense — premium coming soon styles */

:root {
  --bg: #090909;
  --card: #161616;
  --border: #2b2b2b;
  --purple: #a855f7;
  --pink: #ec4899;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Floating ambient gradients */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient__orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}

.ambient__orb--purple {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, transparent 70%);
  top: -12%;
  left: -8%;
}

.ambient__orb--pink {
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
  bottom: 8%;
  right: -10%;
  animation-delay: -6s;
}

.ambient__orb--mid {
  width: 28vw;
  height: 28vw;
  max-width: 360px;
  max-height: 360px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.2) 50%, transparent 70%);
  top: 42%;
  left: 48%;
  animation-delay: -11s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, -3%) scale(1.05);
  }
  66% {
    transform: translate(-3%, 4%) scale(0.96);
  }
}

/* Glass cards */
.glass {
  background: rgba(22, 22, 22, 0.72);
  border: 1px solid rgba(43, 43, 43, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.glass--glow:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12) inset,
    0 0 40px rgba(168, 85, 247, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Gradient text & accents */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.45);
}

.btn-secondary {
  background: rgba(22, 22, 22, 0.8);
  border: 1px solid var(--border);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.18);
}

/* Form controls */
.field {
  width: 100%;
  background: rgba(9, 9, 9, 0.65);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option span {
  display: block;
  border: 1px solid var(--border);
  background: rgba(9, 9, 9, 0.55);
  border-radius: 0.875rem;
  padding: 0.9rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.role-option input:checked + span {
  border-color: rgba(168, 85, 247, 0.75);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.2);
}

.role-option input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* Logo mark glow */
.logo-mark {
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.45));
}

/* Hero illustration subtle pulse */
.hero-art {
  animation: soft-pulse 7s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Legal pages */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.form-message {
  min-height: 1.5rem;
}

.form-message.is-error {
  color: #f9a8d4;
}

.form-message.is-success {
  color: #e9d5ff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient__orb,
  .hero-art,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
