/* Festival Hub marketing landing */

.landing-page {
  --lp-display: "Syne", "Trebuchet MS", sans-serif;
  --lp-body: "Figtree", "Segoe UI", sans-serif;
  --lp-sky: #38bdf8;
  --lp-ink: #1e293b;
  --lp-mist: #f0f9ff;
  --lp-slate: #334155;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(14, 165, 233, 0.10), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  font-family: var(--lp-body);
}

html[lang="fa"] .landing-page {
  --lp-display: "Vazirmatn", Tahoma, sans-serif;
  --lp-body: "Vazirmatn", Tahoma, sans-serif;
}

.landing-page .topnav {
  background: rgba(248, 250, 252, 0.82);
}

.landing-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

.landing-page .messages {
  width: min(1100px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
}

/* —— Hero (one composition) —— */
.lp-hero {
  position: relative;
  min-height: min(100vh, 900px);
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #0f172a;
}

.lp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.06);
  animation: lp-ken 18s ease-out forwards;
}

@keyframes lp-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.lp-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.15) 0%, rgba(248, 250, 252, 0.55) 42%, rgba(248, 250, 252, 0.94) 78%, #f8fafc 100%),
    linear-gradient(90deg, rgba(248, 250, 252, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 0 0;
  padding: 5.5rem 0 3.25rem;
  margin-inline-start: max(1.25rem, calc((100% - 1100px) / 2 + 1rem));
  animation: lp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-hero__brand {
  display: block;
  height: clamp(2.4rem, 5.5vw, 3.6rem);
  width: auto;
  max-width: min(340px, 86vw);
  margin-bottom: 1.35rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.lp-hero__headline {
  margin: 0 0 0.85rem;
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  max-width: 18ch;
}

html[lang="fa"] .lp-hero__headline {
  max-width: 22ch;
  letter-spacing: normal;
}

.lp-hero__lede {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--lp-slate);
  max-width: 36ch;
}

.lp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lp-btn {
  text-decoration: none;
}

.lp-btn:hover {
  text-decoration: none;
}

/* —— Feature sections —— */
.lp-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem 3rem;
  align-items: center;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.lp-section--flip .lp-section__inner { order: 2; }
.lp-section--flip .lp-section__visual { order: 1; }

.lp-section__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0284c7;
}

html[lang="fa"] .lp-section__eyebrow {
  letter-spacing: normal;
  text-transform: none;
}

.lp-section__title {
  margin: 0 0 0.75rem;
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  color: var(--lp-ink);
  max-width: 18ch;
}

html[lang="fa"] .lp-section__title {
  max-width: 22ch;
}

.lp-section__text {
  margin: 0;
  color: var(--lp-slate);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40ch;
}

.lp-section__visual {
  min-height: 200px;
  display: grid;
  place-items: center;
}

.lp-cal {
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lp-cal__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #cbd5e1;
  color: var(--lp-slate);
  font-size: 0.95rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent);
}

.lp-cal__row strong {
  font-family: var(--lp-display);
  color: var(--lp-ink);
  font-size: 1.05rem;
}

.lp-cal__row.is-soon {
  border-bottom-color: #38bdf8;
  color: #0369a1;
}

.lp-cal__row.is-soon strong {
  color: #0369a1;
}

.lp-mail {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 5 / 3.2;
  padding: 1.25rem 1.15rem;
  background:
    linear-gradient(145deg, #ffffff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 4px 18px 4px 4px;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12);
}

.lp-mail__line {
  height: 8px;
  width: 72%;
  margin-bottom: 0.65rem;
  border-radius: 4px;
  background: #94a3b8;
  opacity: 0.35;
}

.lp-mail__line--short { width: 48%; }

.lp-mail__stamp {
  position: absolute;
  inset-inline-end: 0.9rem;
  bottom: 0.9rem;
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #15803d;
  border: 2px solid #15803d;
  padding: 0.2rem 0.45rem;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.lp-reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  width: min(100%, 240px);
  padding: 0.85rem;
  background: linear-gradient(180deg, #1e293b, #334155);
  border-radius: 10px;
}

.lp-reel__hole {
  aspect-ratio: 1;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #7dd3fc 0%, #0284c7 55%, #0c4a6e 100%);
  opacity: 0.92;
  animation: lp-pulse 3.6s ease-in-out infinite;
}

.lp-reel__hole:nth-child(2) { animation-delay: 0.2s; }
.lp-reel__hole:nth-child(3) { animation-delay: 0.4s; }
.lp-reel__hole:nth-child(4) { animation-delay: 0.15s; }
.lp-reel__hole:nth-child(5) { animation-delay: 0.35s; }
.lp-reel__hole:nth-child(6) { animation-delay: 0.55s; }

@keyframes lp-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* —— Plans —— */
.lp-plans {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

.lp-plans__intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.lp-plans__intro .lp-section__title,
.lp-plans__intro .lp-section__text {
  max-width: none;
}

.lp-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.lp-plan {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-top: 3px solid #94a3b8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(240, 249, 255, 0.35) 100%);
  border-inline: 0;
  border-bottom: 1px solid #dbe7f0;
}

.lp-plan--highlight {
  border-top-color: #0284c7;
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.9) 0%, rgba(255, 255, 255, 0.65) 100%);
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.1);
  transform: translateY(-0.25rem);
}

.lp-plan__name {
  margin: 0;
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--lp-ink);
}

.lp-plan__blurb {
  margin: 0;
  color: var(--lp-slate);
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 3.6em;
}

.lp-plan__features {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.lp-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.lp-plan__features .is-on {
  color: var(--lp-ink);
}

.lp-plan__features .is-off {
  color: #94a3b8;
}

.lp-plan__mark {
  flex: 0 0 1rem;
  font-weight: 700;
  color: #0284c7;
}

.lp-plan__features .is-off .lp-plan__mark {
  color: #cbd5e1;
}

.lp-plan .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* —— Close —— */
.lp-close {
  width: min(720px, calc(100% - 2.5rem));
  margin: 1rem auto 3.5rem;
  padding: 3rem 0 1rem;
  text-align: center;
}

.lp-close__mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  object-fit: cover;
}

.lp-close__title {
  margin: 0 0 0.65rem;
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--lp-ink);
}

.lp-close__text {
  margin: 0 0 1.35rem;
  color: var(--lp-slate);
  font-size: 1.05rem;
}

.lp-close .lp-hero__cta {
  justify-content: center;
}

/* —— Reveal —— */
.lp-reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Footer —— */
.lp-footer {
  border-top: 1px solid #d4d4d8;
  padding: 1.25rem 0 2rem;
  color: #71717a;
  font-size: 0.85rem;
}

.lp-footer__inner {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
}

@media (max-width: 820px) {
  .lp-hero {
    min-height: 92svh;
    align-items: end;
  }

  .lp-hero__content {
    margin-inline: 1.25rem;
    padding-bottom: 2.5rem;
    width: auto;
  }

  .lp-hero__headline {
    max-width: none;
  }

  .lp-section,
  .lp-section--flip {
    grid-template-columns: 1fr;
    padding: 3rem 0;
    gap: 1.5rem;
  }

  .lp-section--flip .lp-section__inner,
  .lp-section--flip .lp-section__visual {
    order: unset;
  }

  .lp-section__title,
  .lp-section__text {
    max-width: none;
  }

  .lp-plans__grid {
    grid-template-columns: 1fr;
  }

  .lp-plan--highlight {
    transform: none;
  }

  .lp-plan__blurb {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero__img,
  .lp-hero__content,
  .lp-reel__hole,
  .lp-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
