/*======================================
    Landing page (before login)
    One white screen: logos on top, title + description + login buttons on
    the left, a yellow BSC diagram on the right, address at the bottom.
========================================*/

:root {
  --lp-yellow: #f6db00;
  --lp-yellow-dark: #e8cf00;
  --lp-yellow-soft: #fff7c2;
  --lp-ink: #16181d;
  --lp-ink-2: #3a3e47;
  --lp-muted: #6b7180;
  /* Same grey as the form-field and card border of the logged-in pages */
  --lp-line: #dee2e6;
}

body.landing {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--lp-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.lp-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 20px;
}

/* Yellow top bar; the shadow + clip-path stretch its background to the full
   window width while the logos stay aligned with the content below */
.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
  background: var(--lp-yellow);
  box-shadow: 0 0 0 100vmax var(--lp-yellow);
  clip-path: inset(0 -100vmax);
}

/* Hero */
.lp-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 32px 0;
}

.lp-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* Yellow marker under the second half of the title */
.lp-title mark {
  padding: 0;
  color: inherit;
  background: linear-gradient(transparent 60%, var(--lp-yellow) 60%, var(--lp-yellow) 92%, transparent 92%);
}

.lp-lead {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--lp-ink-2);
  margin-bottom: 2rem;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-btn-primary,
.lp-btn-outline {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lp-btn-primary {
  background: var(--lp-yellow);
  border: 1px solid var(--lp-yellow);
  color: var(--lp-ink);
}

.lp-btn-primary:hover,
.lp-btn-primary:focus-visible {
  background: var(--lp-yellow-dark);
  border-color: var(--lp-yellow-dark);
  color: var(--lp-ink);
}

.lp-btn-outline {
  background: #fff;
  border: 1px solid var(--lp-line);
  color: var(--lp-ink);
}

.lp-btn-outline:hover,
.lp-btn-outline:focus-visible {
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}

.lp-btn-primary:active,
.lp-btn-outline:active {
  transform: translateY(1px);
}

/* BSC diagram: yellow disc, dark core, four perspectives around it */
.lp-visual {
  display: flex;
  justify-content: center;
}

.lp-orbit {
  position: relative;
  width: min(440px, 38vw, 58vh);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lp-yellow);
  box-shadow: 0 0 0 28px var(--lp-yellow-soft);
}

/* Dashed ring linking the four perspectives */
.lp-orbit::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px dashed rgba(22, 24, 29, 0.25);
  animation: lp-spin 40s linear infinite;
}

.lp-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32%;
  aspect-ratio: 1;
  padding: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--lp-ink);
  color: var(--lp-yellow);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  animation: lp-pulse 3s ease-in-out infinite;
}

.lp-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 10.5rem;
  padding: 8px 14px 8px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px -16px rgba(22, 24, 29, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  /* `translate` composes with the positioning `transform` below */
  animation: lp-float 4s ease-in-out infinite;
}

.lp-node i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lp-ink);
  color: var(--lp-yellow);
  font-size: 1rem;
  font-weight: normal;
}

/* Nodes sit on the dashed ring */
.lp-node-top    { top: 14%;    left: 50%;  transform: translate(-50%, -50%); }
.lp-node-bottom { bottom: 14%; left: 50%;  transform: translate(-50%, 50%); }
/* Side nodes sit just outside the ring so their longer labels clear the core */
.lp-node-right  { top: 50%;    right: 6%;  transform: translate(50%, -50%); }
.lp-node-left   { top: 50%;    left: 6%;   transform: translate(-50%, -50%); }

/* Stagger the float so the nodes move one after another */
.lp-node-right  { animation-delay: -1s; }
.lp-node-bottom { animation-delay: -2s; }
.lp-node-left   { animation-delay: -3s; }

.lp-orbit {
  animation: lp-appear 0.8s ease-out both;
}

@keyframes lp-spin {
  to { transform: rotate(360deg); }
}

@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 24, 29, 0.25); }
  50%      { box-shadow: 0 0 0 12px rgba(22, 24, 29, 0); }
}

@keyframes lp-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

@keyframes lp-appear {
  from { opacity: 0; scale: 0.9; }
  to   { opacity: 1; scale: 1; }
}

/* Four perspective icons, shown only on phone/tablet */
.lp-mini {
  display: none;
  margin-bottom: 1.25rem;
}

.lp-mini-icons {
  display: flex;
  gap: 10px;
}

.lp-mini-item {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--lp-ink);
  color: var(--lp-yellow);
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--lp-yellow-soft);
  cursor: pointer;
  animation: lp-appear 0.5s ease-out both;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lp-mini-item:nth-child(2) { animation-delay: 0.1s; }
.lp-mini-item:nth-child(3) { animation-delay: 0.2s; }
.lp-mini-item:nth-child(4) { animation-delay: 0.3s; }
.lp-mini-item:nth-child(5) { animation-delay: 0.4s; }

/* The highlighted objective: yellow tile, lifted */
.lp-mini-item.is-active {
  background: var(--lp-yellow);
  color: var(--lp-ink);
  transform: translateY(-4px);
}

.lp-mini-item:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}

.lp-mini-caption {
  margin-top: 0.6rem;
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lp-ink-2);
}

.lp-mini-caption.is-shown {
  animation: lp-caption 0.35s ease-out;
}

@keyframes lp-caption {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.lp-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 16px;
  border-top: 1px solid var(--lp-line);
  font-size: 0.85rem;
  color: var(--lp-muted);
}

.lp-bottom .fw-semibold {
  color: var(--lp-ink);
}

/* Tablet and phone: one column, buttons right after the text */
@media (max-width: 991.98px) {
  .lp-page {
    padding: 0 32px 20px;
  }

  .lp-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 28px 0;
  }

  .lp-title {
    font-size: 1.9rem;
  }

  .lp-lead {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .lp-visual {
    display: none;
  }

  .lp-mini {
    display: block;
  }

  .lp-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 575.98px) {
  .lp-top-unggul {
    display: none;
  }

  .lp-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing *,
  .landing *::before {
    transition: none !important;
    animation: none !important;
  }
}
