/* ===============================
   HOME PUBLIC
   Interaktif + Responsive
   =============================== */

*{ font-family:'Poppins', sans-serif; margin:0; padding:0; box-sizing:border-box; }

:root{
  --bg:#f6f7fb;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#0d6efd;
  --primaryDark:#003a79;
  --primary2:#005bbb;
  --ring: rgba(13,110,253,.18);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow2: 0 18px 50px rgba(15, 23, 42, .12);
}

body{ background: var(--bg); color: var(--text); }
#content{ opacity:0; transition: opacity .35s ease; }



/* ===== NAVBAR ===== */
.public-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
}
.navbar .nav-link{
  color: var(--text);
  font-weight: 500;
  padding: .6rem .9rem;
  border-radius: 12px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.navbar .nav-link:hover{
  background: rgba(13,110,253,.08);
  color: var(--primary);
  transform: translateY(-1px);
}
.navbar .nav-link.active{
  background: rgba(13,110,253,.12);
  color: var(--primary) !important;
}

.btn-login{
  border-radius: 14px;
  padding: .65rem 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-login:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15,23,42,.10);
}

/* ===== HERO ===== */
.home-hero{
  padding: 70px 0 60px;
  position: relative;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(600px 280px at 15% 20%, rgba(13,110,253,.14), transparent 65%),
    radial-gradient(520px 260px at 80% 20%, rgba(0,58,121,.10), transparent 65%);
  pointer-events:none;
}
.home-hero .container{ position: relative; z-index: 1; }

.tagline{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(13,110,253,.10);
  color: var(--primaryDark);
  font-weight: 800;
}

.hero-title{
  letter-spacing: .4px;
  line-height: 1.1;
}

.hero-desc{
  line-height: 1.7;
}

.btn-cta{
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(15,23,42,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(15,23,42,.16);
}
.btn-ghost{
  border-radius: 14px;
}

/* hero stats */
.hero-stats{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat{
  background: #fff;
  border: 1px solid rgba(2,6,23,.06);
  border-radius: 18px;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: rgba(13,110,253,.18);
}
.stat-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(13,110,253,.10);
  color: var(--primaryDark);
}
.stat-label{
  font-size: .85rem;
  color: var(--muted);
  font-weight: 700;
}
.stat-value{
  font-weight: 900;
  color: var(--text);
}

/* ===== HERO IMAGE + FLOAT BADGES ===== */
.hero-illus{
  position: relative;
  display: inline-block;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(2,6,23,.06);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  backdrop-filter: blur(8px);
}
.hero-img{
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
  border: 6px solid rgba(255,255,255,.85);
}

.rotating-img{
  animation: rotate 18s linear infinite;
}
@keyframes rotate{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.float-badge{
  position:absolute;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(13,110,253,.12);
  color: var(--primaryDark);
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(15,23,42,.10);
  backdrop-filter: blur(8px);
  animation: floaty 3.8s ease-in-out infinite;
}
.b1{ top: 14px; left: 14px; }
.b2{ bottom: 18px; left: 20px; animation-delay: .4s; }
.b3{ top: 18px; right: 18px; animation-delay: .8s; }

@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

/* ===== FOOTER ===== */
.kromora-footer{
  background: #003A79;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 28px rgba(15,23,42,.06);
}

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 992px){
  .home-hero{ padding: 58px 0 50px; }
  .navbar .nav-link{ padding: .55rem .75rem; }
  .hero-img{ width: 260px; height: 260px; }
}

/* ===== RESPONSIVE HP ===== */
@media (max-width: 576px){
  .hero-text{ text-align:center !important; }
  .tagline{ justify-content:center; }
  .hero-title{ font-size: 1.6rem; }
  .hero-img{ width: 200px; height: 200px; }
  .float-badge{ font-size: .85rem; }
  .hero-stats{ justify-content: center; }
}
@media (max-width: 576px){
  /* ...yang sudah ada... */

  /* tombol hero diperkecil di HP */
  .home-hero .btn-cta,
  .home-hero .btn-ghost{
    font-size: .95rem;
    padding: .6rem 1rem !important;   /* override px-5 py-3 */
    border-radius: 12px;
  }

  /* opsional: kalau mau 2 tombol full lebar dan rapi */
  .home-hero .hero-text .d-flex.gap-2{
    justify-content: center;
  }
  .home-hero .hero-text .d-flex.gap-2 > a{
    width: 100%;
    max-width: 320px; /* biar nggak kepanjangan */
  }
}
