/* MingalaCredit — Home (load after theme.css) */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.4rem) 5vw clamp(2.75rem, 5vw, 3.6rem);
  background:
    radial-gradient(ellipse 1000px 620px at 10% -22%, rgba(255, 236, 185, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse 720px 580px at 98% 35%, rgba(255, 132, 62, 0.36) 0%, transparent 50%),
    radial-gradient(ellipse 500px 380px at 40% 105%, rgba(120, 38, 0, 0.2) 0%, transparent 45%),
    linear-gradient(172deg, #ff4f0a 0%, #ff7318 36%, #ffa238 68%, #ffc85d 100%);
  color: #fff;
}

.hero::before {
  content: "M";
  position: absolute;
  right: -3%;
  top: 5%;
  font-family: Lexend, sans-serif;
  font-weight: 800;
  font-size: clamp(10rem, 38vw, 22rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.068);
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 118%, transparent 35%, rgba(60, 22, 6, 0.2) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 100px,
      rgba(255, 255, 255, 0.02) 100px,
      rgba(255, 255, 255, 0.02) 102px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.38rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.32rem, 3.9vw, 2.12rem);
  line-height: 1.26;
  max-width: 34ch;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 48px rgba(0, 0, 0, 0.14);
}

.hero-text {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  font-size: 1.03rem;
  opacity: 0.97;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.93rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    filter 0.22s ease;
}

.btn-primary {
  color: var(--orange-950);
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 46%, var(--gold-600) 100%);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(180, 90, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate .kicker {
  animation: hero-rise 0.68s ease backwards;
}

.hero-animate .hero-animate-el {
  animation: hero-rise 0.78s var(--ease-out) backwards;
}

.hero-animate .delay-1 {
  animation-delay: 0.07s;
}

.hero-animate .delay-2 {
  animation-delay: 0.15s;
}

.hero-animate .delay-3 {
  animation-delay: 0.26s;
}

.hero-animate .delay-4 {
  animation-delay: 0.42s;
}

.device-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 11px;
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.08) 45%,
      rgba(255, 200, 120, 0.06) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    var(--shadow-xl),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 20px rgba(120, 50, 0, 0.12);
}

.device-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 200, 100, 0.08) 100%
  );
  mix-blend-mode: soft-light;
}

.device-frame-inner {
  position: relative;
  border-radius: calc(var(--radius-xl) - 7px);
  overflow: hidden;
  background: #060504;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.device-frame-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.section-overlap {
  margin-top: -44px;
  padding-top: calc(44px + 2rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding-inline: 5vw;
  max-width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, var(--white) 32%);
  box-shadow:
    0 -20px 60px rgba(42, 21, 5, 0.08),
    0 0 0 1px rgba(255, 200, 150, 0.25);
  position: relative;
  z-index: 6;
}

@media (max-width: 640px) {
  .section-overlap {
    margin-top: -28px;
    padding-top: calc(28px + 1.5rem);
    border-radius: 28px 28px 0 0;
  }
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  margin: 0 0 1.1rem;
}

.section-head::before {
  content: "";
  width: 7px;
  height: 1.6rem;
  border-radius: 5px;
  background: linear-gradient(185deg, var(--gold-400), var(--orange-600));
  box-shadow: 0 3px 16px rgba(232, 90, 0, 0.4);
}

.section-overlap h2 {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--orange-950);
  letter-spacing: -0.024em;
}

.shell {
  margin-top: 0.25rem;
  padding: 1.65rem 1.85rem;
  background:
    radial-gradient(400px 200px at 100% -20%, rgba(255, 200, 120, 0.12), transparent),
    #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(232, 90, 0, 0.09);
}

.shell p:first-of-type {
  margin-top: 0;
}

.note {
  margin-top: 1.5rem;
  padding: 1.18rem 1.4rem;
  border-radius: var(--radius-lg);
  font-size: 0.94rem;
  color: var(--muted);
  background: linear-gradient(135deg, var(--cream-2) 0%, #fff 58%);
  border: 1px solid rgba(255, 159, 64, 0.22);
  box-shadow: var(--shadow-xs);
  border-left: 4px solid var(--gold-500);
}

.note strong {
  color: var(--orange-900);
}

footer .inner {
  max-width: 760px;
}
