/*
 * Application-wide styles (Propshaft). Landing animations and brand accents live here.
 */

:root {
  --brand-accent: #38bdf8;
  --brand-accent-strong: #0284c7;
  --brand-ink: #0f172a;
  --landing-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.marketing-body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(148, 163, 184, 0.18), transparent 50%),
    #f8fafc;
}

.landing-hero-bg {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.95)),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(15, 23, 42, 0.04), transparent 55%);
}

.landing-mock {
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -24px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.landing-mock__chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.landing-mock__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.landing-mock__dot:last-child {
  background: var(--brand-accent);
}

.landing-mock__body {
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.landing-mock__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
  color: #0f172a;
}

.landing-mock__row--muted {
  color: #64748b;
  font-size: 0.8rem;
}

.landing-mock__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.landing-mock__chip {
  border-radius: 0.375rem;
  background: rgba(56, 189, 248, 0.15);
  color: #0369a1;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.landing-mock__bars {
  display: grid;
  gap: 0.45rem;
}

.landing-mock__bars span {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0, #f1f5f9 40%, rgba(56, 189, 248, 0.35));
}

.landing-mock__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}

/*
 * Progressive enhancement: copy stays visible unless JS activates reveal.
 * Never hide content with attribute selectors alone (breaks if Stimulus fails).
 */
.landing-reveal--active .landing-reveal__item:not(.is-visible):not(.is-animated) {
  opacity: 0;
  transform: translateY(1rem);
}

.landing-reveal--active .landing-reveal__item {
  transition:
    opacity 420ms var(--landing-ease),
    transform 420ms var(--landing-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.landing-reveal--active .landing-reveal__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-animate-ready:not(.is-animated) {
  opacity: 0;
  transform: translateY(0.75rem);
  filter: blur(4px);
}

.text-animate-ready {
  transition:
    opacity 500ms var(--landing-ease),
    transform 500ms var(--landing-ease),
    filter 500ms var(--landing-ease);
}

.text-animate-ready.is-animated {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal--active .landing-reveal__item,
  .text-animate-ready {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
