/* ================================================================
   EURYKA MAGPIE — Landing Page Styles
   A scroll story that opens ink-dark and warms to golden hour.
   Namespaced mp-*; loaded only by page-magpie.hbs (not in output.css).
   ================================================================ */

.mp-page {
  --mp-ink: #0a1633;
  --mp-ink-deep: #070f24;
  --mp-cream: #faf7f2;
  --mp-cream-dim: #efe9df;
  --mp-violet: #6d5ae6;
  --mp-violet-soft: #8f7ff2;
  --mp-gold: #f9c74f;
  --mp-ember: #b4652e;
  --mp-text-light: #f2efe9;
  --mp-text-dim: rgba(242, 239, 233, 0.64);
  --mp-ink-text: #241f18;
  --mp-ink-text-dim: rgba(36, 31, 24, 0.62);

  background: var(--mp-ink);
  color: var(--mp-text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip, not hidden: overflow-x hidden on body computes overflow-y
     auto and promotes BODY to the page scroller — window.scrollY stays
     0 and every ScrollTrigger freezes. clip clips without creating a
     scroll container. */
  overflow-x: clip;
}

/* The scroll-tweened backdrop. Sections sit transparent above it. */
.mp-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--mp-ink);
}

/* --- Shared section shell --- */
.mp-section {
  position: relative;
  padding: 7rem 1.5rem;
}
.mp-container {
  max-width: 72rem;
  margin-inline: auto;
}
.mp-narrow { max-width: 52rem; margin-inline: auto; }

.mp-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mp-violet-soft);
  margin-bottom: 1rem;
}
.mp-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: inherit;
  margin: 0 0 1.2rem;
}
.mp-section h2 em {
  font-style: italic;
  color: var(--mp-gold);
}
.mp-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--mp-text-dim);
  max-width: 34rem;
}
.mp-lead strong { color: var(--mp-text-light); font-weight: 600; }

/* Warm-zone sections flip to ink text */
.mp-warm { color: var(--mp-ink-text); }
.mp-warm .mp-lead { color: var(--mp-ink-text-dim); }
.mp-warm .mp-lead strong { color: var(--mp-ink-text); }
.mp-warm .mp-eyebrow { color: var(--mp-ember); }
.mp-warm h2 em { color: var(--mp-ember); }

/* --- Screenshot frames --- */
.mp-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 1.4rem 3.5rem rgba(4, 8, 20, 0.45);
}
.mp-warm .mp-shot { box-shadow: 0 1.2rem 3rem rgba(90, 60, 20, 0.22); }

/* ================= NAV ================= */
.mp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.mp-nav.nav-scrolled {
  background: rgba(7, 15, 36, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.mp-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.mp-nav__brand img { width: 26px; height: 26px; border-radius: 6px; }
.mp-nav__brand span { font-weight: 300; opacity: 0.55; }
.mp-nav__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--mp-violet);
  transition: background 0.2s ease, transform 0.2s ease;
}
.mp-nav__cta:hover { background: var(--mp-violet-soft); transform: translateY(-1px); }

/* ================= HERO ================= */
.mp-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
/* The spotlight: a giant, barely-lit magpie fills the backdrop (the
   mono mark as a CSS mask), a radial glow lights the centre, and a
   vignette pulls the edges down. */
.mp-hero__bird {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #223061;
  -webkit-mask-image: url("https://services.euryka.ai/storage/v1/object/public/media/uploads/images/magpie-mono-598e0a4e-cb2a-422c-b082-fc82324c5c29.svg");
  mask-image: url("https://services.euryka.ai/storage/v1/object/public/media/uploads/images/magpie-mono-598e0a4e-cb2a-422c-b082-fc82324c5c29.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 62% 22%;
  mask-position: 62% 22%;
  -webkit-mask-size: min(1250px, 150vw);
  mask-size: min(1250px, 150vw);
  opacity: 0.32;
  pointer-events: none;
}
.mp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 42% at 50% 30%, rgba(109, 90, 230, 0.26), transparent 70%),
    radial-gradient(ellipse 85% 70% at 50% 18%, rgba(58, 74, 150, 0.34), transparent 78%);
  pointer-events: none;
}
.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 120% 105% at 50% 42%, transparent 52%, rgba(3, 7, 20, 0.6) 100%);
  pointer-events: none;
}
.mp-hero__inner { position: relative; z-index: 2; max-width: 46rem; }
.mp-hero__icon {
  width: 104px; height: 104px;
  border-radius: 24px;
  margin: 0 auto 1.7rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.55), 0 0 4.5rem rgba(249, 199, 79, 0.22);
}
.mp-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.2rem;
}
.mp-hero h1 em { font-style: italic; color: var(--mp-gold); }
.mp-hero__sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--mp-text-dim);
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}
.mp-hero__ctas { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.mp-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.mp-btn--primary { background: var(--mp-violet); color: #fff; }
.mp-btn--primary:hover { background: var(--mp-violet-soft); transform: translateY(-2px); }
.mp-btn--ghost {
  color: var(--mp-text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.mp-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.mp-hero__note { margin-top: 1.4rem; font-size: 0.85rem; color: rgba(242, 239, 233, 0.4); }

/* Drifting screenshot fragments behind the hero */
.mp-hero__frag {
  position: absolute;
  border-radius: 0.7rem;
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.6);
  opacity: 0.6;
  filter: saturate(0.92) brightness(0.94);
  z-index: 1;
  pointer-events: none;
}
.mp-frag--notes      { width: 30vw; min-width: 300px; top: 9%;  left: -7%;  transform: rotate(-8deg); }
.mp-frag--canvas     { width: 32vw; min-width: 320px; bottom: 6%; right: -9%; transform: rotate(6deg); }
.mp-frag--ask        { width: 27vw; min-width: 270px; top: 11%; right: -5%; transform: rotate(4deg); }
.mp-frag--transcribe { width: 26vw; min-width: 260px; bottom: 7%; left: -8%; transform: rotate(5deg); }

/* ================= THESIS (pinned word reveal) ================= */
.mp-thesis { min-height: 70vh; display: flex; align-items: center; }
.mp-thesis__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}
.mp-thesis__line .mp-word { opacity: 0.14; display: inline-block; }
.mp-thesis__line .mp-word--hot { color: var(--mp-gold); }

/* ================= ASK ================= */
.mp-ask__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: center;
}
.mp-ask__stack { position: relative; }
.mp-ask__bar { position: relative; z-index: 2; }
.mp-ask__answer { margin-top: 1.1rem; transform-origin: top center; }
.mp-ask__glow {
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(109, 90, 230, 0.35), transparent 70%);
  pointer-events: none;
}
.mp-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.mp-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--mp-text-dim);
  line-height: 1.55;
}
.mp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mp-violet-soft);
}
.mp-list strong { color: var(--mp-text-light); }
.mp-warm .mp-list li { color: var(--mp-ink-text-dim); }
.mp-warm .mp-list li::before { background: var(--mp-ember); }
.mp-warm .mp-list strong { color: var(--mp-ink-text); }

.mp-kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0.12em 0.45em;
}

/* ================= CANVAS WIPE ================= */
.mp-canvas { text-align: center; }
.mp-canvas__head { max-width: 44rem; margin: 0 auto 3rem; }
.mp-canvas .mp-lead { margin-inline: auto; }
.mp-wipe {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 1.6rem 4rem rgba(4, 8, 20, 0.5);
  aspect-ratio: 16 / 9;
}
.mp-wipe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-wipe__render { z-index: 1; }
.mp-wipe__design { z-index: 2; clip-path: inset(0 0 0 0); }
.mp-wipe__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 100%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
  z-index: 3;
}
.mp-wipe__tag {
  position: absolute;
  top: 0.9rem;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 22, 51, 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
}
.mp-wipe__tag--design { left: 0.9rem; }
.mp-wipe__tag--render { right: 0.9rem; }
.mp-canvas__caption {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--mp-text-dim);
}

/* ================= SPLIT FEATURES (notes / transcribe) ================= */
.mp-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: center;
}
.mp-split--flip .mp-split__copy { order: 2; }
.mp-split--flip .mp-split__media { order: 1; }
.mp-split__media { position: relative; }
.mp-notes__diff {
  position: absolute;
  width: 62%;
  right: -6%;
  bottom: -14%;
  z-index: 2;
}

/* ================= UTILITY GRID ================= */
.mp-grid__head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.mp-grid__head .mp-lead { margin-inline: auto; }
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.mp-card {
  background: #fffdf9;
  border: 1px solid rgba(90, 60, 20, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1.6rem rgba(90, 60, 20, 0.08);
}
.mp-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  margin: 0 0 0.4rem;
  color: var(--mp-ink-text);
}
.mp-card p { font-size: 0.92rem; line-height: 1.55; color: var(--mp-ink-text-dim); margin: 0; }
.mp-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(90, 60, 20, 0.1);
}
.mp-card--dark img { object-fit: contain; background: #262430; }

/* ================= PRIVACY ================= */
.mp-privacy { text-align: center; }
.mp-privacy h2 { max-width: 46rem; margin-inline: auto; }
.mp-privacy__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 52rem;
  margin: 3rem auto 0;
  text-align: left;
}
.mp-privacy__col h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.mp-privacy__col p { font-size: 0.96rem; line-height: 1.6; color: inherit; opacity: 0.72; margin: 0; }

/* ================= BETA SIGNUP ================= */
.mp-beta {
  position: relative;
  padding: 8rem 1.5rem 7rem;
  text-align: center;
  /* The golden-hour finale — the scroll arc lands on ember just as
     this gradient takes over, so the seam is invisible. */
  background: linear-gradient(180deg, rgba(240, 227, 205, 0) 0%, rgba(217, 154, 85, 0.55) 30%, var(--mp-ember) 78%, #8f4a1e 100%);
}
.mp-footer { background: #241505; }
.mp-beta__card {
  position: relative;
  max-width: 34rem;
  margin: 2.6rem auto 0;
  background: rgba(255, 253, 249, 0.94);
  border-radius: 1.2rem;
  padding: 2.2rem;
  box-shadow: 0 1.8rem 4.5rem rgba(60, 30, 5, 0.35);
  text-align: left;
}
.mp-beta h2 { color: #fff; }
.mp-beta .mp-lead { color: rgba(255, 255, 255, 0.82); margin-inline: auto; }
.mp-beta__form { display: flex; flex-direction: column; gap: 0.9rem; }
.mp-beta__form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(36, 31, 24, 0.55);
  display: block;
  margin-bottom: 0.3rem;
}
.mp-beta__form input,
.mp-beta__form select,
.mp-beta__form textarea {
  width: 100%;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--mp-ink-text);
  background: #fff;
  border: 1px solid rgba(36, 31, 24, 0.18);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mp-beta__form input:focus,
.mp-beta__form select:focus,
.mp-beta__form textarea:focus {
  border-color: var(--mp-violet);
  box-shadow: 0 0 0 3px rgba(109, 90, 230, 0.18);
}
.mp-beta__form button {
  margin-top: 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  background: var(--mp-violet);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mp-beta__form button:hover { background: var(--mp-violet-soft); transform: translateY(-1px); }
.mp-beta__form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.mp-beta__fineprint { font-size: 0.8rem; color: rgba(36, 31, 24, 0.5); margin: 0.4rem 0 0; }
.mp-beta__success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--mp-ink-text);
}
.mp-beta__success p { color: rgba(36, 31, 24, 0.7); line-height: 1.6; margin: 0; }
.hidden { display: none; }

/* ================= FOOTER ================= */
.mp-footer {
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.mp-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.mp-footer a:hover { color: #fff; text-decoration: underline; }
.mp-footer__brand { display: flex; align-items: center; gap: 0.5rem; }
.mp-footer__brand img { width: 20px; height: 20px; opacity: 0.9; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .mp-section { padding: 4.5rem 1.25rem; }
  .mp-ask__grid, .mp-split { grid-template-columns: 1fr; gap: 2.2rem; }
  .mp-split--flip .mp-split__copy { order: 1; }
  .mp-split--flip .mp-split__media { order: 2; }
  .mp-grid { grid-template-columns: 1fr 1fr; }
  .mp-privacy__cols { grid-template-columns: 1fr; }
  .mp-hero__frag { display: none; }
  .mp-notes__diff { position: static; width: 88%; margin: 1rem auto 0; display: block; }
}
@media (max-width: 560px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-beta__card { padding: 1.6rem; }
}

/* ================= REDUCED MOTION / NO-GSAP FALLBACK ================= */
@media (prefers-reduced-motion: reduce) {
  .mp-page *, .mp-page *::before, .mp-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
.mp-page.is-fallback .mp-word { opacity: 1; }
.mp-page.is-fallback .mp-wipe__design { clip-path: inset(0 0 0 55%); }
.mp-page.is-fallback .mp-wipe__handle { left: 55%; }
/* Without GSAP the background arc never runs — sections must carry
   their own backgrounds or the warm zone is ink-on-ink. */
.mp-page.is-fallback .mp-warm { background: var(--mp-cream); }
.mp-page.is-fallback .mp-beta {
  background: linear-gradient(180deg, #f0e3cd 0%, #d99a55 35%, var(--mp-ember) 100%);
}
