/**
 * Landing / index — logo palette (royal blue + lime)
 * Muundo: picha juu, maandishi + vitufe chini (simu na desktop)
 */
:root {
  --w-blue: #0a3d91;
  --w-blue-bright: #0d4fbf;
  --w-green: #76ba1b;
  --w-green-dark: #5f9815;
  --w-black: #0a0e14;
  --w-white: #ffffff;
  --w-radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  height: -webkit-fill-available;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.welcome-page {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--w-black);
  color: var(--w-white);
}

.welcome-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.welcome-hero-bg {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  background-color: #051838;
  height: min(48vh, 100vw * 0.62);
  min-height: 200px;
  max-height: 400px;
}

.welcome-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% 42%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.welcome-hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Ishushe gradient: iwe na ufunikaji mdogo juu, nguvu chini */
  height: 50%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 24, 56, 0) 0%,
    rgba(10, 14, 20, 0) 35%,
    rgba(10, 14, 20, 0.75) 60%,
    rgba(10, 14, 20, 1) 100%
  );
}

.welcome-hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  padding: 1.5rem 1.25rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  text-align: left;
  /* Gradient ipo kwenye "background ya chini" pekee (hakuna overlay juu ya picha) */
  background: linear-gradient(
    180deg,
    rgba(13, 31, 61, 0.25) 0%,
    #0d1f3d 18%,
    #0a1628 52%,
    var(--w-black) 100%
  );
  border-top: 1px solid rgba(118, 186, 27, 0.2);
}

.welcome-brand {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--w-green);
}

.welcome-headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.welcome-sub {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 22rem;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.35rem;
  border-radius: var(--w-radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.welcome-btn:active {
  transform: scale(0.98);
}

.welcome-btn-primary {
  background: var(--w-white);
  color: var(--w-black);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.welcome-btn-primary:hover {
  box-shadow: 0 10px 36px rgba(13, 79, 191, 0.35);
  text-decoration: none;
}

.welcome-btn-icon {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--w-blue-bright) 0%, var(--w-blue) 100%);
  color: var(--w-white);
  border-radius: 50%;
  border: 2px solid var(--w-green);
}

.welcome-btn-arrows {
  margin-left: auto;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  opacity: 0.85;
}

.welcome-btn-ghost {
  background: transparent;
  color: var(--w-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.welcome-btn-ghost:hover {
  border-color: var(--w-green);
  color: var(--w-green);
  text-decoration: none;
}

/* Desktop: kipande cha picha kikubwa kidogo, maandishi na vitufe katikati */
@media (min-width: 769px) {
  .welcome-hero-bg {
    height: min(56vh, 720px);
    min-height: 280px;
    max-height: 620px;
  }

  .welcome-hero-bg-img {
    object-position: center 42%;
  }

  .welcome-hero-content {
    padding: 2.5rem 2rem 3.5rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
    align-items: center;
    text-align: center;
  }

  .welcome-headline {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome-brand {
    margin-left: auto;
    margin-right: auto;
  }

  .welcome-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
    font-size: 1.05rem;
  }

  .welcome-actions {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (max-width: 768px) and (max-height: 480px) {
  .welcome-hero-bg {
    height: min(36vh, 220px);
    min-height: 160px;
    max-height: 280px;
  }

  .welcome-hero-bg-img {
    object-position: center 40%;
  }
}
