/* Kresna public landing — SERA brand */

:root {
  --sera-navy: #16568a;
  --sera-navy-deep: #0f4570;
  --sera-navy-soft: #2a6fa3;
  --sera-ink: #143f66;
  --sera-card: #ffffff;
  --sera-muted: rgba(255, 255, 255, 0.88);
  --landing-radius: 1.35rem;
  --landing-font: "Trebuchet MS", "Lucida Grande", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.kresna-landing {
  font-family: var(--landing-font);
  color: var(--sera-ink);
  background: var(--sera-navy);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Soft circular atmosphere (matches mockup) */
body.kresna-landing::before,
body.kresna-landing::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 70%
  );
  z-index: 0;
}

body.kresna-landing::before {
  width: min(70vw, 34rem);
  height: min(70vw, 34rem);
  top: -12%;
  left: -8%;
}

body.kresna-landing::after {
  width: min(80vw, 40rem);
  height: min(80vw, 40rem);
  right: -18%;
  bottom: -22%;
  opacity: 0.85;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--sera-ink);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.landing-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vh, 2.5rem) 1.25rem clamp(1rem, 3vh, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-height: 100vh;
  min-height: 100dvh;
  animation: landing-enter 0.7s ease-out both;
}

.landing-card {
  width: 100%;
  background: var(--sera-card);
  border-radius: var(--landing-radius);
  padding: 1.15rem 1.15rem 1.45rem;
  text-align: center;
  box-shadow: 0 18px 40px rgba(8, 40, 70, 0.28);
  animation: card-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.landing-hero {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #1a5d94 0%, #124a78 100%);
  margin-bottom: 1.15rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.landing-card h1 {
  margin: 0 auto 0.85rem;
  max-width: 16.5rem;
  font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sera-ink);
}

.landing-card h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: var(--sera-navy-soft);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.7rem;
  background: var(--sera-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 18px rgba(15, 69, 112, 0.28);
  animation: cta-pulse 2.8s ease-in-out 1.1s infinite;
}

.landing-cta:hover {
  background: var(--sera-navy-deep);
  transform: translateY(-1px);
}

.landing-cta:focus-visible {
  outline: 3px solid #9ec9ea;
  outline-offset: 3px;
}

.landing-cta:active {
  transform: translateY(0);
}

.landing-footer {
  max-width: 22rem;
  text-align: center;
  color: var(--sera-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.landing-footer p {
  margin: 0 0 0.85rem;
}

.landing-copy {
  margin-bottom: 0 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

@keyframes landing-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(15, 69, 112, 0.28);
  }
  50% {
    box-shadow: 0 10px 24px rgba(15, 69, 112, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-stage,
  .landing-card,
  .landing-cta {
    animation: none;
  }
}

@media (min-width: 640px) {
  .landing-stage {
    max-width: 26rem;
  }

  .landing-card {
    padding: 1.25rem 1.25rem 1.6rem;
  }
}
