/* Logged-out marketing home — sits alongside Cerulean, scoped under .landing */

.landing {
  --landing-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --landing-font-body: "Manrope", "Segoe UI", sans-serif;
  --landing-ink: #0f2f44;
  --landing-muted: color-mix(in srgb, var(--landing-ink) 68%, white);
  --landing-sea: var(--bs-primary);
  --landing-foam: #e7f3fb;
  --landing-mist: #f4f8fb;
  --landing-line: color-mix(in srgb, var(--landing-sea) 22%, transparent);
  font-family: var(--landing-font-body);
  color: var(--landing-ink);
  background: var(--landing-mist);
}

[data-bs-theme="dark"] .landing {
  --landing-ink: #e6eef4;
  --landing-muted: color-mix(in srgb, var(--landing-ink) 72%, #0b1a24);
  --landing-foam: #0f2431;
  --landing-mist: #0b1821;
  --landing-line: color-mix(in srgb, var(--landing-sea) 35%, transparent);
  background: var(--landing-mist);
  color: var(--landing-ink);
}

[data-color-theme="dollar"] .landing {
  --landing-ink: #143326;
  --landing-foam: #e7f4ec;
  --landing-mist: #f3f8f4;
}

[data-color-theme="dollar"][data-bs-theme="dark"] .landing {
  --landing-ink: #e6f4ec;
  --landing-foam: #0f2418;
  --landing-mist: #0b1a12;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--app-navbar-offset));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(4rem, 10vh, 6rem);
}

.landing-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.landing-hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 12% 18%, color-mix(in srgb, var(--landing-sea) 34%, transparent), transparent 55%),
    radial-gradient(90% 70% at 88% 12%, color-mix(in srgb, #3d8f6e 18%, transparent), transparent 50%),
    linear-gradient(165deg, var(--landing-foam) 0%, var(--landing-mist) 48%, color-mix(in srgb, var(--landing-sea) 10%, var(--landing-mist)) 100%);
  animation: landing-wash 14s ease-in-out infinite alternate;
}

.landing-hero__grid {
  position: absolute;
  inset: -10% -5%;
  background-image:
    linear-gradient(var(--landing-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--landing-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
  transform: rotate(-6deg) scale(1.05);
  animation: landing-grid 18s linear infinite;
}

.landing-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
}

.landing-hero__orb--a {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  right: -6%;
  bottom: 8%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--landing-sea) 55%, white), transparent 70%);
  animation: landing-orb 12s ease-in-out infinite alternate;
}

.landing-hero__orb--b {
  width: min(28vw, 18rem);
  height: min(28vw, 18rem);
  left: 4%;
  top: 18%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, #5fa88a 40%, white), transparent 72%);
  animation: landing-orb 16s ease-in-out infinite alternate-reverse;
}

.landing-hero__content {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.landing-brand {
  font-family: var(--landing-font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--landing-ink);
  animation: landing-rise 0.8s ease-out both;
}

.landing-headline {
  font-family: var(--landing-font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 auto 1rem;
  max-width: 18ch;
  animation: landing-rise 0.8s ease-out 0.08s both;
}

.landing-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--landing-muted);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  animation: landing-rise 0.8s ease-out 0.16s both;
}

.landing-lede--note {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  animation: landing-rise 0.8s ease-out 0.2s both;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
  animation: landing-rise 0.8s ease-out 0.24s both;
}

.landing-cta .btn-lg {
  border-radius: 0.4rem;
  padding-inline: 1.25rem;
  font-weight: 600;
}

.landing-cta__primary {
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.landing-cta__primary:hover,
.landing-cta__primary:focus-visible {
  transform: translateY(-2px);
}

.landing-cta__secondary {
  background: color-mix(in srgb, var(--landing-mist) 70%, transparent);
  backdrop-filter: blur(4px);
}

.landing-section {
  padding: clamp(3.5rem, 9vh, 5.5rem) 0;
  border-top: 1px solid color-mix(in srgb, var(--landing-ink) 8%, transparent);
}

.landing-section--close {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--landing-sea) 8%, var(--landing-mist)) 0%,
      var(--landing-mist) 100%
    );
}

.landing-section__intro,
.landing-close {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.landing-close {
  margin-bottom: 0;
}

.landing-close .landing-cta {
  justify-content: center;
}

.landing-section__title {
  font-family: var(--landing-font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.landing-section__copy {
  margin: 0;
  color: var(--landing-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.landing-features {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 768px) {
  .landing-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-feature {
  padding-top: 1rem;
  border-top: 2px solid color-mix(in srgb, var(--landing-sea) 55%, transparent);
}

.landing-feature__title {
  font-family: var(--landing-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.landing-feature__copy {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.5;
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-wash {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.03);
  }
}

@keyframes landing-grid {
  from {
    transform: rotate(-6deg) scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-6deg) scale(1.05) translate3d(-28px, 14px, 0);
  }
}

@keyframes landing-orb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-brand,
  .landing-headline,
  .landing-lede,
  .landing-cta,
  .landing-hero__wash,
  .landing-hero__grid,
  .landing-hero__orb,
  .landing-cta__primary {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
