:root {
  --green: #149C4A;
  --green-deep: #0B3D25;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--green);
}

.landing-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(16px, 4vh, 32px) 20px;
  isolation: isolate;
}

.logo-pattern {
  position: absolute;
  inset: -120px;
  z-index: -1;
  opacity: 0.07;
  background-image: url("/logos/dankofa_mark_color.png");
  background-size: 118px 118px;
  background-position: 0 0;
  transform: rotate(-12deg) scale(1.08);
  filter: brightness(0) invert(1);
  animation: floatLogosUp 2.6s linear infinite;
  will-change: background-position;
}

.welcome-card {
  width: min(100%, 720px);
  max-height: calc(100svh - 32px);
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(14px, 4vw, 42px);
}

.brand-logo {
  width: min(142px, 34vw, 22svh);
  height: auto;
  display: block;
  margin-bottom: clamp(18px, 4svh, 34px);
  padding: clamp(16px, 4vw, 24px);
  border-radius: clamp(24px, 6vw, 34px);
  background: var(--white);
  box-shadow: 0 24px 58px rgba(11, 61, 37, 0.24);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: clamp(50px, 8svh, 56px);
  margin-top: clamp(22px, 5svh, 38px);
  padding: 0 28px;
  border-radius: 999px;
  border: 4px solid var(--white);
  background: #EF7521;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 22px 46px rgba(11, 61, 37, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(11, 61, 37, 0.28);
}

.primary-action:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.62);
  outline-offset: 5px;
}

@media (max-width: 560px) {
  .landing-shell {
    padding: 18px;
  }

  .welcome-card {
    max-height: calc(100svh - 36px);
    padding: 10px 0;
  }

  .logo-pattern {
    background-size: 92px 92px;
    opacity: 0.065;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.05rem, 11vw, 3.4rem);
  }

  .primary-action {
    width: min(100%, 260px);
  }
}

@media (max-height: 620px) {
  .brand-logo {
    width: min(110px, 24svh);
    padding: 14px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(1.8rem, 8svh, 3rem);
  }

  .primary-action {
    min-height: 46px;
    margin-top: 18px;
  }
}

@keyframes floatLogosUp {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -472px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-pattern {
    animation: none;
  }
}
