/* /assets/css/landing.css */
:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102f3a;
  background: #f4fbfa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.landing-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(31, 163, 155, .13), transparent 22rem),
    linear-gradient(160deg, #fbfefe 0%, #f1f9f8 52%, #edf7f6 100%);
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}

.landing__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  flex-direction: column;
  text-align: center;
  animation: landing-enter 900ms cubic-bezier(.2, .75, .2, 1) both;
}

.landing__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .75;
  pointer-events: none;
}

.landing__glow--one {
  top: -14vw;
  right: -12vw;
  width: min(58vw, 680px);
  height: min(58vw, 680px);
  background: radial-gradient(circle, rgba(72, 184, 174, .16), rgba(72, 184, 174, 0) 68%);
  animation: glow-drift-one 9s ease-in-out infinite alternate;
}

.landing__glow--two {
  bottom: -24vw;
  left: -16vw;
  width: min(72vw, 820px);
  height: min(72vw, 820px);
  background: radial-gradient(circle, rgba(75, 133, 209, .09), rgba(75, 133, 209, 0) 68%);
  animation: glow-drift-two 11s ease-in-out infinite alternate;
}

.landing-logo {
  position: relative;
  display: grid;
  width: 156px;
  height: 156px;
  margin-bottom: 23px;
  place-items: center;
}

.landing-logo__mark {
  position: relative;
  z-index: 3;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 29px;
  background: linear-gradient(145deg, #139c98 0%, #0b7f82 55%, #086878 100%);
  box-shadow:
    0 23px 48px rgba(8, 101, 104, .20),
    0 7px 17px rgba(8, 101, 104, .13),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  animation: mark-float 4.2s ease-in-out infinite;
}

.landing-logo__mark::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 23px;
  content: "";
}

.landing-logo__mark svg { width: 61px; height: 61px; }
.landing-logo__mark svg path:first-child {
  fill: rgba(255, 255, 255, .10);
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linejoin: round;
}
.landing-logo__mark svg path:last-child {
  fill: none;
  stroke: #fff;
  stroke-width: 2.25;
  stroke-linecap: round;
}

.landing-logo__orbit {
  position: absolute;
  border: 1px solid rgba(11, 127, 130, .16);
  border-radius: 50%;
}

.landing-logo__orbit--outer {
  inset: 2px;
  animation: orbit-breathe 4.8s ease-in-out infinite;
}

.landing-logo__orbit--inner {
  inset: 18px;
  border-color: rgba(11, 127, 130, .10);
  animation: orbit-breathe 4.8s 700ms ease-in-out infinite reverse;
}

.landing-logo__dot {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid #f5fbfa;
  border-radius: 50%;
  background: #0b8586;
  box-shadow: 0 4px 12px rgba(8, 101, 104, .20);
}

.landing-logo__dot--one {
  top: 13px;
  left: 36px;
  animation: dot-pulse 3.4s ease-in-out infinite;
}

.landing-logo__dot--two {
  top: 52px;
  right: 7px;
  width: 11px;
  height: 11px;
  background: #5a8ad2;
  animation: dot-pulse 3.4s 900ms ease-in-out infinite;
}

.landing-logo__dot--three {
  right: 37px;
  bottom: 13px;
  width: 7px;
  height: 7px;
  animation: dot-pulse 3.4s 1.8s ease-in-out infinite;
}

.landing__brand {
  display: inline-flex;
  align-items: flex-start;
  margin: 0;
  color: #163f58;
  font-size: clamp(2.7rem, 12vw, 4.3rem);
  font-weight: 650;
  letter-spacing: -.072em;
  line-height: .95;
}

.landing__brand strong {
  color: #0b7f82;
  font-weight: 820;
}

.landing__brand span {
  margin: 2px 0 0 10px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #dff1ef;
  color: #086568;
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.landing__tagline {
  max-width: 340px;
  margin: 17px 0 0;
  color: #698087;
  font-size: .87rem;
  font-weight: 520;
  line-height: 1.55;
  opacity: 0;
  animation: copy-enter 700ms 430ms ease forwards;
}

.landing__login {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 29px;
  padding: 8px 17px;
  border: 1px solid rgba(11, 127, 130, .23);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 6px 18px rgba(28, 76, 85, .06);
  color: #0a7376;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .01em;
  opacity: 0;
  backdrop-filter: blur(10px);
  transform: translateY(7px);
  animation: login-enter 650ms 680ms ease forwards;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.landing__login:hover,
.landing__login:focus-visible {
  border-color: rgba(11, 127, 130, .38);
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 76, 85, .10);
  transform: translateY(-1px);
  outline: none;
}

@keyframes landing-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes copy-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(.8deg); }
}

@keyframes orbit-breathe {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.035); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: .64; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes glow-drift-one {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3vw, 4vh, 0) scale(1.08); }
}

@keyframes glow-drift-two {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -3vh, 0) scale(1.06); }
}

@media (max-width: 520px) {
  .landing-logo { width: 138px; height: 138px; margin-bottom: 19px; }
  .landing-logo__mark { width: 80px; height: 80px; border-radius: 26px; }
  .landing-logo__mark::after { border-radius: 20px; }
  .landing-logo__mark svg { width: 54px; height: 54px; }
  .landing-logo__dot--one { top: 11px; left: 31px; }
  .landing-logo__dot--two { top: 45px; right: 5px; }
  .landing-logo__dot--three { right: 32px; bottom: 11px; }
  .landing__tagline { margin-top: 14px; font-size: .8rem; }
  .landing__login { margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing__content,
  .landing__glow,
  .landing-logo__mark,
  .landing-logo__orbit,
  .landing-logo__dot,
  .landing__tagline,
  .landing__login {
    animation: none !important;
  }
  .landing__tagline,
  .landing__login { opacity: 1; transform: none; }
}
