/* Landing page styles for MythicRM — extends the design system tokens */
@import url("design-system/colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Offset anchor jumps so section tops clear the sticky nav */
html { scroll-padding-top: 88px; }
body {
  font-family: var(--mythic-font-body);
  color: var(--mythic-text);
  background: var(--mythic-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ────── Nav ────── */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease-out, background 180ms ease-out;
}
.lp-nav.scrolled { border-bottom-color: var(--mythic-border); }
.lp-nav__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 18px 32px;
}
.lp-nav__links { display: flex; gap: 28px; flex: 1; margin-left: 28px; }
.lp-nav__links a {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--mythic-text);
  opacity: 0.74;
  transition: opacity 180ms ease-out;
}
.lp-nav__links a:hover { opacity: 1; }

/* ────── Buttons ────── */
.lp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 10px 16px;
  border-radius: 25px;
  border: 0;
  cursor: pointer;
  transition: background 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}
.lp-btn:active { transform: scale(0.98); }

.lp-btn--primary {
  background: var(--mythic-primary);
  color: #fff;
}
.lp-btn--primary:hover { background: var(--mythic-primary-deep); }

.lp-btn--ghost {
  background: transparent;
  color: var(--mythic-text);
}
.lp-btn--ghost:hover { background: var(--mythic-bg-subtle); }

.lp-btn--dark {
  background: var(--mythic-bg-inverse);
  color: #fff;
}
.lp-btn--dark:hover { background: #000; }

/* ────── Containers ────── */
.lp-container {
  max-width: 1240px; margin: 0 auto;
  padding: 0 32px;
}

/* ────── Hero ────── */
.lp-hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
/* Keep hero content above the decorative blobs (which are positioned at z-index 0
   and would otherwise paint over — and wash out — the text, especially on mobile). */
.lp-hero .lp-container {
  position: relative;
  z-index: 1;
}
.lp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.lp-hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mythic-primary-soft);
  color: var(--mythic-primary);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.lp-hero__pill .pip {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--mythic-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px;
}
.lp-hero h1 {
  margin: 0 0 24px;
  font-family: var(--mythic-font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--mythic-text);
  text-wrap: balance;
}
.lp-hero h1 .magic {
  background: linear-gradient(120deg, var(--mythic-magic-deep), var(--mythic-magic));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.lp-hero h1 .magic-spark {
  position: absolute;
  right: -22px;
  top: -8px;
  color: var(--mythic-magic);
  animation: sparkle 2.4s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.18) rotate(12deg); opacity: 1; }
}
.lp-hero__sub {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  color: var(--mythic-text-mid);
  margin: 0 0 32px;
  max-width: 520px;
  text-wrap: pretty;
}
.lp-hero__sub strong {
  color: var(--mythic-text);
  font-weight: 700;
}

/* ────── Email form ────── */
.lp-form {
  display: flex;
  align-items: center;
  background: var(--mythic-bg);
  border: 1px solid var(--mythic-border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  max-width: 460px;
  box-shadow: var(--mythic-shadow-xs);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.lp-form:focus-within {
  border-color: var(--mythic-primary);
  box-shadow: 0 0 0 4px rgba(18, 193, 1, 0.12);
}
.lp-form input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--mythic-text);
  letter-spacing: -0.01em;
  padding: 10px 12px 10px 0;
}
.lp-form input::placeholder { color: var(--mythic-text-mid); }
.lp-form button {
  flex-shrink: 0;
  background: var(--mythic-primary);
  color: #fff;
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.lp-form button:hover { background: var(--mythic-primary-deep); }
.lp-form button:active { transform: scale(0.98); }
.lp-form__success {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--mythic-primary-soft);
  color: var(--mythic-primary);
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 14px;
  max-width: 460px;
  letter-spacing: -0.01em;
}
.lp-form__caption {
  margin-top: 14px;
  font-family: var(--mythic-font-body);
  font-size: 13px;
  color: var(--mythic-text-mid);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.lp-form__caption .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mythic-primary);
  display: inline-block;
  box-shadow: 0 0 0 0 var(--mythic-primary);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(18, 193, 1, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(18, 193, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 193, 1, 0); }
}

/* ────── Phone stage ────── */
.lp-phone-stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 640px;
}
.lp-phone {
  width: 320px;
  height: 640px;
  border-radius: 48px;
  background: var(--mythic-bg-inverse);
  padding: 8px;
  box-shadow:
    0 60px 100px -40px rgba(16,24,40,0.25),
    0 24px 50px -20px rgba(16,24,40,0.15),
    0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-phone__screen {
  width: 100%; height: 100%;
  border-radius: 40px;
  background: var(--mythic-bg);
  overflow: hidden;
  position: relative;
}
.lp-phone__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px;
  background: var(--mythic-bg-inverse);
  border-radius: 999px;
  z-index: 5;
}
.lp-phone__status {
  position: absolute; top: 0; left: 0; right: 0;
  height: 44px;
  padding: 14px 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mythic-font-body);
  font-weight: 700; font-size: 13px;
  color: var(--mythic-text);
  z-index: 4;
}

/* Floating decoration cards around phone */
.lp-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--mythic-border);
  border-radius: 12px;
  box-shadow: var(--mythic-shadow-sm);
  padding: 12px 14px;
  z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.lp-float-card--magic {
  background: var(--mythic-magic-gradient);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 28px -8px rgba(138,43,226,0.45), 0 0 4px 0 var(--mythic-magic);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.lp-float-card--delay { animation-delay: -3s; }

body.hide-floats .lp-float-card { display: none; }

body.no-pulse .magic-cta-pulse { animation: none; }
.magic-cta-pulse {
  border-radius: 12px;
  animation: magicPulse 1.8s ease-in-out infinite;
}
@keyframes magicPulse {
  0%, 100% { box-shadow: 0 0 4px 0 rgba(138, 43, 226, 0.0); }
  50%      { box-shadow: 0 0 22px 0 rgba(138, 43, 226, 0.55); }
}

/* Background blobs */
.lp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.lp-blob--green {
  background: var(--mythic-primary-soft);
  width: 480px; height: 480px;
  top: -120px; right: -100px;
  opacity: 0.7;
}
.lp-blob--purple {
  background: var(--mythic-magic-soft);
  width: 380px; height: 380px;
  bottom: -80px; left: 30%;
  opacity: 0.55;
}

/* ────── Section common ────── */
.lp-section {
  padding: 96px 0;
  position: relative;
}
.lp-section--subtle { background: var(--mythic-bg-subtle); }
.lp-section--dark {
  background: var(--mythic-bg-inverse);
  color: #fff;
}
.lp-eyebrow {
  display: inline-block;
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mythic-primary);
  margin-bottom: 16px;
}
.lp-section h2 {
  margin: 0 0 16px;
  font-family: var(--mythic-font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: inherit;
  text-wrap: balance;
}
.lp-section__lead {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--mythic-text-mid);
  max-width: 580px;
  margin: 0 0 56px;
  text-wrap: pretty;
}
.lp-section--dark .lp-section__lead { color: rgba(255,255,255,0.7); }

/* ────── Pillars grid ────── */
.lp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-pillar {
  background: var(--mythic-bg);
  border: 1px solid var(--mythic-border);
  border-radius: 24px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease-out, box-shadow 240ms ease-out;
}
.lp-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--mythic-shadow-sm);
}
.lp-pillar__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mythic-primary-soft);
  color: var(--mythic-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-pillar__icon--magic {
  background: var(--mythic-magic-soft);
  color: var(--mythic-magic);
}
.lp-pillar h3 {
  margin: 0;
  font-family: var(--mythic-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--mythic-text);
}
.lp-pillar p {
  margin: 0;
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mythic-text-mid);
  text-wrap: pretty;
}
.lp-pillar__visual {
  margin-top: auto;
  padding-top: 8px;
}

/* ────── Magic section (purple feature) ────── */
.lp-magic {
  background: radial-gradient(circle at 80% 20%, #2d1448 0%, #16140F 60%);
  color: #fff;
  border-radius: 32px;
  padding: 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lp-magic::after {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(138,43,226,0.4) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.lp-magic .lp-eyebrow {
  color: var(--mythic-magic-soft);
}
.lp-magic h2 { color: #fff; }
.lp-magic__lead {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.lp-magic__demo {
  position: relative;
  z-index: 2;
}

/* magic floating cards */
.lp-magic-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.lp-magic-card h4 {
  margin: 0 0 10px;
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4b4f5;
}
/* prompt chips in the magic section */
.lp-prompt-chip {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--mythic-font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
  cursor: default;
  transition: background 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
}
.lp-prompt-chip svg { color: #c89bf0; flex-shrink: 0; }
.lp-prompt-chip:hover {
  background: rgba(138,43,226,0.18);
  border-color: rgba(138,43,226,0.5);
  transform: translateX(2px);
}

.lp-magic-card ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-magic-card li {
  position: relative;
  padding-left: 18px;
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}
.lp-magic-card li::before {
  content: "\2726";
  position: absolute;
  left: 0; top: 0;
  color: var(--mythic-magic);
  line-height: 1.45;
}

/* ────── Date Lineup ────── */
.lp-dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

/* ────── Final CTA ────── */
.lp-final {
  text-align: center;
  padding: 120px 32px;
  background: var(--mythic-bg);
  position: relative;
  overflow: hidden;
}
.lp-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--mythic-primary-soft) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--mythic-magic-soft) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}
.lp-final > * { position: relative; z-index: 1; }
.lp-final h2 {
  font-family: var(--mythic-font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.lp-final__sub {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--mythic-text-mid);
  max-width: 540px;
  margin: 0 auto 40px;
  text-wrap: pretty;
}
.lp-final form { margin: 0 auto; }
.lp-final .lp-form__caption { justify-content: center; }

/* ────── Footer ────── */
.lp-footer {
  border-top: 1px solid var(--mythic-border);
  padding: 32px 0 40px;
}
.lp-footer__inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1240px; margin: 0 auto;
  padding: 0 32px;
}
.lp-footer__copy {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--mythic-text-mid);
  flex: 1;
}
.lp-footer__links {
  display: flex; gap: 24px;
}
.lp-footer__links a {
  font-family: var(--mythic-font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--mythic-text-mid);
  transition: color 180ms ease-out;
}
.lp-footer__links a:hover { color: var(--mythic-text); }

/* ────── Tab switcher for phone screens ────── */
.lp-phone-tabs {
  position: absolute;
  bottom: -56px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
  background: var(--mythic-bg);
  border: 1px solid var(--mythic-border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--mythic-shadow-sm);
  z-index: 4;
}
.lp-phone-tabs button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mythic-font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--mythic-text-mid);
  letter-spacing: -0.01em;
  transition: background 180ms ease-out, color 180ms ease-out;
}
.lp-phone-tabs button.active {
  background: var(--mythic-text);
  color: #fff;
}

/* ────── Mobile ────── */
@media (max-width: 1080px) {
  .lp-float-card { display: none; }
}
@media (max-width: 960px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .lp-phone-stage { min-height: 580px; }
  .lp-pillars { grid-template-columns: 1fr; }
  .lp-magic {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }
  .lp-dates-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-nav__links { display: none; }
  .lp-section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .lp-container { padding: 0 20px; }
  .lp-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 20px; }
}
