/* AskAngels home page — festive hero, the three assistants, and the book. */

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 0%, #1a1408 0%, #0a0a0a 60%);
}

/* slow-moving aurora light behind the stars */
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: 0.75; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 46vw; height: 46vw; left: 8%; top: 18%; background: radial-gradient(circle, rgba(212,175,55,.55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 40vw; height: 40vw; right: 6%; top: 8%; background: radial-gradient(circle, rgba(140,90,200,.45), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 36vw; height: 36vw; left: 38%; bottom: 0; background: radial-gradient(circle, rgba(217,119,87,.38), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vh) scale(1.2); } }

#sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.home-hero .inner { padding: 96px 0 88px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(212,175,55,.08);
  color: var(--goldSoft); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
}
.home-hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.04; margin: 22px auto 18px; max-width: 14ch;
}
.shimmer {
  background: linear-gradient(100deg, #b8902a 0%, #f2df9b 25%, #fff6d8 40%, #d4af37 55%, #f2df9b 75%, #b8902a 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.home-hero .lead { margin: 0 auto; max-width: 640px; }
.home-hero .actions { justify-content: center; margin-top: 30px; }

/* the three assistants */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 34px; }
.ai-card {
  position: relative; border-radius: 22px; padding: 28px 24px 24px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ai-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--accent) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.45); border-color: transparent; }
.ai-card:hover::before { opacity: 1; animation: spin 2.4s linear infinite; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }

.ai-card.angel { --accent: #e8c55a; }
.ai-card.claude { --accent: #d97757; }
.ai-card.perplexity { --accent: #3fb6b2; }

.orb {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.4rem/1 Arial, sans-serif; color: #111; margin-bottom: 16px;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #000) 100%);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: breathe 3.2s ease-in-out infinite;
}
.ai-card.claude .orb { animation-delay: .5s; }
.ai-card.perplexity .orb { animation-delay: 1s; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.ai-card h3 { margin: 0 0 2px; font-size: 1.45rem; color: var(--text); }
.ai-card .maker { color: var(--accent); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.ai-card p { color: var(--muted); line-height: 1.65; margin: 0 0 20px; }
.ai-card .btn { background: var(--accent); }

/* team chat band */
.together {
  margin-top: 26px; padding: 22px 24px; border-radius: 18px; border: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: rgba(212,175,55,.05);
}
.together p { margin: 0; color: var(--goldSoft); max-width: 640px; line-height: 1.6; }

/* the book */
.book {
  display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 48px; align-items: center;
  border-radius: 26px; padding: 44px; border: 1px solid var(--border);
  background: radial-gradient(90% 120% at 0% 0%, rgba(212,175,55,.14), transparent 60%), linear-gradient(180deg, #121212, #0d0d0d);
}
.cover-wrap { position: relative; perspective: 1000px; }
.cover {
  width: 100%; aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; object-fit: cover; display: block;
  box-shadow: -10px 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotateY(-12deg); transition: transform .5s ease;
  background: linear-gradient(160deg, #2b1b5c, #0d0a1f);
}
.cover-wrap:hover .cover { transform: rotateY(0deg) translateY(-4px); }
.cover-fallback {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 20px;
  border-radius: 6px 14px 14px 6px; transform: rotateY(-12deg);
  background: linear-gradient(160deg, #2b1b5c, #0d0a1f); color: var(--goldSoft); font-size: 1.4rem; line-height: 1.3;
}
.cover-wrap.no-img .cover { visibility: hidden; }
.cover-wrap.no-img .cover-fallback { display: grid; }
.halo {
  position: absolute; inset: -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.35), transparent 62%);
  animation: halo 4s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.08); opacity: .7; } }

.book h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; margin: 14px 0 6px; }
.book .subtitle { color: var(--goldSoft); font-style: italic; margin: 0 0 18px; }
.book p { color: var(--muted); line-height: 1.75; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.byline span { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: .85rem; color: var(--text); }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 24px; }
.format {
  border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 10px;
}
.format .kind { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.format .price { font-size: 1.5rem; color: var(--text); }
.format .btn { text-align: center; }
.format.soon .btn { background: transparent; color: var(--muted); border: 1px dashed var(--border); cursor: default; pointer-events: none; }

@media (max-width: 820px) {
  .book { grid-template-columns: 1fr; padding: 28px 20px; gap: 30px; }
  .cover-wrap { max-width: 240px; margin: 0 auto; }
  .home-hero .inner { padding: 72px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .shimmer, .orb, .halo, .ai-card:hover::before { animation: none !important; }
  .cover, .ai-card { transition: none; }
}

/* ---------- Regal typography overrides for the home page ---------- */
.home-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6.4vw, 4.6rem); line-height: 1.12; max-width: 16ch; letter-spacing: 0.03em; }
.home-hero .lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-style: italic; color: #d9cba6; }
.eyebrow, .ai-card .maker, .format .kind { font-family: var(--font-display); }
.ai-card h3 { font-size: 1.5rem; letter-spacing: 0.06em; }
.ai-card p, .book p { font-size: 1.15rem; }
.book h2 { letter-spacing: 0.04em; }
.book .subtitle { font-size: 1.3rem; }
.format .price { font-family: var(--font-display); font-size: 1.35rem; }
.byline span { font-size: .95rem; }
.cover-fallback { font-family: var(--font-display); }
.orb { font-family: var(--font-display); }
.together p { font-size: 1.15rem; font-style: italic; }
