:root {
  color-scheme: light;
  --landing-bg: #f5f2e9;
  --landing-ink: #1d2c24;
  --landing-muted: #4f5f55;
  --landing-accent: #1f5c3d;
  --landing-accent-dark: #12402a;
  --landing-accent-soft: #dbe9df;
  --landing-border: rgba(29, 44, 36, 0.12);
  --landing-shadow: 0 24px 60px rgba(17, 36, 26, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Avenir Next', 'Avenir', 'Futura', 'Helvetica Neue', 'Segoe UI', sans-serif;
  color: var(--landing-ink);
  background: radial-gradient(circle at top left, #fef9f1 0%, #f5f2e9 45%, #e5efe6 100%);
}

.landing-body {
  display: flex;
  flex-direction: column;
}

.landing-shell {
  flex: 1;
  min-height: 100vh;
  padding: clamp(2.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.landing-shell::before {
  content: '';
  position: absolute;
  top: -20vh;
  right: -20vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(31, 92, 61, 0.14), rgba(31, 92, 61, 0));
  pointer-events: none;
}

.landing-shell::after {
  content: '';
  position: absolute;
  bottom: -18vh;
  left: -15vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(249, 213, 170, 0.35), rgba(249, 213, 170, 0));
  pointer-events: none;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.landing-brand {
  font-size: 0.85rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--landing-accent-dark);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.landing-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--landing-accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.landing-link:hover,
.landing-link:focus-visible {
  border-color: var(--landing-accent-dark);
}

.landing-hero {
  max-width: 640px;
  margin-top: clamp(3rem, 12vh, 8rem);
  position: relative;
  z-index: 1;
}

.landing-marquee {
  --marquee-item-duration: 7s;
  position: absolute;
  top: clamp(10rem, 30vh, 18rem);
  right: clamp(2rem, 6vw, 6rem);
  width: min(38vw, 360px);
  min-height: 7rem;
  transform: translateY(-25%);
  z-index: 1;
  pointer-events: none;
}

.landing-marquee-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18%);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--landing-accent-dark);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 12px 30px rgba(17, 36, 26, 0.08);
}

.landing-marquee-text {
  display: block;
}

.landing-marquee-media {
  display: block;
  width: min(20vw, 220px);
  max-width: 100%;
  margin-top: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(29, 44, 36, 0.12);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 30px rgba(17, 36, 26, 0.12);
}

.landing-marquee-item.is-active {
  animation: landing-marquee-slide var(--marquee-item-duration) ease-in-out both;
}

.landing-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  animation: fade-up 0.7s ease both;
}

.landing-subline {
  margin: 0 0 2.2rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--landing-muted);
  animation: fade-up 0.7s ease both;
  animation-delay: 0.08s;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.16s;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--landing-accent);
  color: #fff;
  box-shadow: var(--landing-shadow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--landing-accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--landing-accent-dark);
  border-color: var(--landing-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--landing-accent-soft);
  transform: translateY(-2px);
}

.landing-footer {
  padding: 1.5rem clamp(2.5rem, 5vw, 5rem) 2.5rem;
  font-size: 0.9rem;
  color: var(--landing-muted);
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
}

.landing-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.landing-footer a:hover,
.landing-footer a:focus-visible {
  border-color: currentColor;
}

@media (max-width: 900px) {
  .landing-shell {
    padding: 2.5rem 1.75rem 3.5rem;
  }

  .landing-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-nav {
    gap: 1rem;
  }

  .landing-hero {
    margin-top: 3.5rem;
  }

  .landing-footer {
    padding: 1.5rem 1.75rem 2.5rem;
  }

  .landing-marquee {
    display: none;
  }
}

@media (max-width: 600px) {
  .landing-brand {
    letter-spacing: 0.2rem;
  }

  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-marquee-slide {
  0% {
    opacity: 0;
    transform: translateX(18%);
  }
  18% {
    opacity: 1;
    transform: translateX(0);
  }
  72% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-18%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-marquee {
    position: static;
    transform: none;
    margin-top: 2.5rem;
    min-height: auto;
  }

  .landing-marquee-item {
    position: static;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .landing-marquee-item:not(.is-active) {
    display: none;
  }
}
