/* EightyFourNow — shared design system
   Dark, minimal, tech-forward. Loaded alongside Tailwind CDN on every page. */

:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #08080b;
  font-feature-settings: "ss01" on, "cv01" on;
}

/* ---------- Backgrounds ---------- */

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bg-fade-bottom {
  -webkit-mask-image: linear-gradient(180deg, black 55%, transparent 100%);
  mask-image: linear-gradient(180deg, black 55%, transparent 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Typography ---------- */

.font-display {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.gradient-text {
  background-image: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.num-84 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  user-select: none;
}

/* ---------- Surfaces ---------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.badge-84 {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.55);
}

/* ---------- Buttons ---------- */

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Motion ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #08080b;
}

::-webkit-scrollbar-thumb {
  background: #26262e;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34343d;
}

/* ---------- Hearo phone mockup ---------- */

.phone-frame {
  width: 260px;
  border-radius: 38px;
  border: 8px solid #17171c;
  background: #0c0c10;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-notch {
  width: 90px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #17171c;
}

.waveform {
  display: flex;
  align-items: center;
  height: 26px;
  gap: 3px;
}

.waveform span {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #a5b4fc, #67e8f9);
  animation: wave 1.15s ease-in-out infinite;
}

.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.1s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.3s; }
.waveform span:nth-child(5) { animation-delay: 0.4s; }
.waveform span:nth-child(6) { animation-delay: 0.5s; }
.waveform span:nth-child(7) { animation-delay: 0.6s; }
.waveform span:nth-child(8) { animation-delay: 0.7s; }

@keyframes wave {
  0%, 100% { height: 5px; }
  50% { height: 22px; }
}

/* ---------- Pricing table ---------- */

.pricing-card-pro {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(129, 140, 248, 0.35);
}

/* ---------- Mobile nav ---------- */

#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 480px;
  opacity: 1;
}
