/* ============================================
   QolCast — base styles
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1000px 560px at 8% -12%, rgba(124,92,252,.20), transparent 60%),
    radial-gradient(900px 640px at 104% 112%, rgba(78,48,138,.22), transparent 58%),
    linear-gradient(158deg, #15131F, #0E0E15 60%, #0B0B12);
  background-attachment: fixed;
  color: #F3F4FA;
  font-family: "Sora", -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: #B7A0FF; text-decoration: none; }
a:hover { color: #D6C8FF; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #B7A0FF;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================
   Nav links + buttons
   (kept as classes so :hover can win over layout
   styles set inline on the same elements)
   ============================================ */
.nav-link { color: rgba(255,255,255,.70); transition: color .2s ease; }
.nav-link:hover { color: #F3F4FA; }

.text-link {
  font-size: 15.5px;
  font-weight: 400;
  color: #B7A0FF;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 2px;
}

.btn {
  display: inline-block;
  line-height: 1;
  font-weight: 500;
  border-radius: 9px;
  transition: background .2s ease;
}
.btn-primary { background: #8B6DFF; color: #fff; }
.btn-primary:hover { background: #9D83FF; color: #fff; }
.btn-sm { padding: 11px 18px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 10px; }

.btn-cta {
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  background: #7C5CFC;
  color: #fff;
  border: 0;
  padding: 15px 24px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease;
}
.btn-cta:hover { background: #6B4BEB; }
.btn-cta:disabled { opacity: .7; cursor: default; }

/* ============================================
   Hero demo (live transcription mock)
   ============================================ */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3FCB8A;
  box-shadow: 0 0 0 3px rgba(56,184,124,.18);
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #8B6DFF;
  vertical-align: -2px;
}

.hero-fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-fade.is-visible { opacity: 1; transform: none; }
.hero-screen-verse.is-visible { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  .hero-fade { transition: none; }
}

/* ============================================
   Nav — account dropdown (logged-in state)
   ============================================ */
.account-menu { position: relative; }

.account-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  padding: 0;
}

.account-menu-chevron { transition: transform .18s ease; }
.account-menu.is-open .account-menu-chevron { transform: rotate(180deg); }

.account-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 190px;
  background: #1B1926;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.account-menu.is-open .account-menu-panel { display: block; }

.account-menu-item {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  text-decoration: none;
  transition: background .15s ease;
}

.account-menu-item:hover { background: rgba(255,255,255,.06); color: #F3F4FA; }

.account-menu-item-signout {
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,157,122,.9);
}

.account-menu-item-signout:hover { background: rgba(255,157,122,.08); color: #FF9D7A; }
