:root {
  --ink: #0d2137;
  --ink-soft: #1c3a56;
  --mist: #e8eef4;
  --paper: #f4f7fa;
  --accent: #0f8a78;
  --accent-deep: #0a5f53;
  --line: rgba(13, 33, 55, 0.12);
  --landing-font-display: Georgia, "Times New Roman", serif;
  --landing-font-body: "Segoe UI", system-ui, sans-serif;
}

body:has(.landing-hero) {
  background: var(--paper);
}

body:has(.landing-hero) > nav.public-nav,
body:has(.landing-hero) > nav.navbar {
  background: transparent !important;
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  box-shadow: none !important;
}

body:has(.landing-hero) > nav .navbar-brand,
body:has(.landing-hero) > nav .nav-link {
  color: rgba(244, 247, 250, 0.92) !important;
}

body:has(.landing-hero) > .public-footer {
  background: var(--ink);
  color: rgba(244, 247, 250, 0.7);
  border-top: none !important;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(15, 138, 120, 0.35), transparent 55%),
    linear-gradient(145deg, #071522 0%, #0d2137 42%, #12324d 100%);
  font-family: var(--landing-font-body);
}

.landing-hero__glow {
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 55%;
  background: radial-gradient(circle, rgba(15, 138, 120, 0.28), transparent 65%);
  animation: landingPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.landing-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.landing-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.landing-brand {
  font-family: var(--landing-font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
  animation: landingRise 0.9s ease both;
}

.landing-headline {
  font-family: var(--landing-font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 28ch;
  margin: 0 0 1rem;
  color: rgba(244, 247, 250, 0.92);
  animation: landingRise 0.9s ease 0.12s both;
}

.landing-lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: rgba(232, 238, 244, 0.72);
  font-size: 1.02rem;
  line-height: 1.6;
  animation: landingRise 0.9s ease 0.22s both;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: landingRise 0.9s ease 0.32s both;
}

.btn-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-landing--solid:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-landing--ghost {
  border: 1px solid rgba(244, 247, 250, 0.35);
  color: var(--paper);
  background: transparent;
}

.btn-landing--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.landing-hero__art {
  perspective: 900px;
  display: flex;
  justify-content: center;
}

.invoice-sheet {
  width: min(100%, 380px);
  background: linear-gradient(180deg, #fbfdff 0%, #eef3f8 100%);
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(24px) rotateY(-12deg) rotateX(4deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
  transform-style: preserve-3d;
}

.invoice-sheet.is-in {
  opacity: 1;
  transform: translateY(0) rotateY(-10deg) rotateX(3deg);
}

.invoice-sheet__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.invoice-sheet__mark {
  font-family: var(--landing-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.invoice-sheet__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.invoice-sheet__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4a6075;
  margin-bottom: 0.9rem;
}

.invoice-sheet__line {
  height: 1px;
  background: var(--line);
  margin: 0.4rem 0 0.9rem;
}

.invoice-sheet__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.invoice-sheet__row.muted {
  color: #6a7f93;
  font-size: 0.82rem;
}

.invoice-sheet__total {
  display: flex;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.landing-section {
  background: var(--paper);
  color: var(--ink);
  padding: 4.5rem 0 5rem;
  font-family: var(--landing-font-body);
}

.landing-section__inner {
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.landing-section__title {
  font-family: var(--landing-font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.landing-section__lede {
  margin: 0 0 2.5rem;
  max-width: 42ch;
  color: #4a6075;
}

.landing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.landing-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.landing-feature__index {
  grid-row: 1 / span 2;
  font-family: var(--landing-font-display);
  font-size: 1.4rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.landing-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.landing-feature p {
  margin: 0;
  color: #4a6075;
  max-width: 52ch;
  line-height: 1.55;
}

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (max-width: 900px) {
  .landing-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
    gap: 2.5rem;
  }

  .landing-headline {
    max-width: none;
  }

  .invoice-sheet {
    transform: translateY(12px) rotateY(0deg) rotateX(0deg);
  }

  .invoice-sheet.is-in {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-brand,
  .landing-headline,
  .landing-lede,
  .landing-cta,
  .landing-hero__glow,
  .invoice-sheet {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
