/* ============================================================
   HOME.CSS
   Khusus untuk landing page (index.php).
   Semua selector di-scope lewat body.home biar tidak bentrok
   dengan style.css yang dipakai halaman login/dashboard/kuesioner.
   ============================================================ */

body.home {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2937;
  background: #fbfbfe;
  overflow-x: hidden;
}

body.home * { box-sizing: border-box; }

body.home a { text-decoration: none; }

body.home ::selection {
  background: #16a34a;
  color: #fff;
}

/* ---------- variabel warna: hijau kampus + biru matematika ---------- */
body.home {
  --uni-green: #0e6b3a;
  --uni-green-dark: #094d29;
  --math-blue: #1e3a8a;
  --math-blue-light: #2563eb;
  --ink: #14181f;
  --muted: #5b6472;
  --surface: #ffffff;
  --surface-soft: #f3f6fb;
  --ring: rgba(14, 107, 58, 0.16);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.home-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.08);
  padding: 12px 5%;
}

.home-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-nav .brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: transform .3s ease;
}

.home-nav .brand:hover img { transform: rotate(-6deg) scale(1.06); }

.home-nav .brand-text {
  line-height: 1.15;
  color: #fff;
  transition: color .35s ease;
}

.home-nav.scrolled .brand-text { color: var(--ink); }

.home-nav .brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: .2px;
}

.home-nav .brand-text span {
  display: block;
  font-size: .74rem;
  opacity: .85;
}

.home-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.home-nav .nav-links a.nav-link {
  color: #fff;
  font-weight: 600;
  font-size: .93rem;
  position: relative;
  padding: 4px 0;
  transition: color .3s ease;
}

.home-nav.scrolled .nav-links a.nav-link { color: var(--ink); }

.home-nav .nav-links a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--uni-green);
  transition: width .3s ease;
}

.home-nav .nav-links a.nav-link:hover::after { width: 100%; }
.home-nav.scrolled .nav-links a.nav-link::after { background: var(--uni-green); }

.home-nav .nav-cta-mobile {
  display: none;
}

.home-nav .nav-cta {
  background: var(--uni-green);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 6px 18px rgba(14,107,58,0.35);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.home-nav .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14,107,58,0.45);
  background: var(--uni-green-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}
.home-nav.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0b2e1c;
}

.hero-home .hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(6,32,19,0.72) 0%, rgba(8,28,20,0.82) 55%, rgba(5,18,13,0.95) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.16); }
}

.hero-home .hero-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-home .symbol {
  position: absolute;
  color: rgba(255,255,255,0.14);
  font-weight: 700;
  animation: floatSymbol 9s ease-in-out infinite;
  user-select: none;
}

@keyframes floatSymbol {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}

.hero-home .content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
  color: #fff;
}

.hero-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp .8s ease .1s forwards;
}

.hero-home .eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-home h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  opacity: 0;
  animation: fadeUp .8s ease .25s forwards;
  color: #4ade80;

}

.hero-home h1 .accent {
  color: #4ade80;
}

.hero-home p.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
  margin: 0 auto 34px;
  max-width: 620px;
  opacity: 0;
  animation: fadeUp .8s ease .4s forwards;
}

.hero-home .hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s ease .55s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-home.primary {
  background: var(--uni-green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(14,107,58,0.45);
}
.btn-home.primary:hover {
  transform: translateY(-3px);
  background: #0c8046;
  box-shadow: 0 14px 32px rgba(14,107,58,0.55);
}

.btn-home.ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-home.ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  letter-spacing: .5px;
}

.scroll-cue .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s ease infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ============================================================
   REVEAL ON SCROLL (dipakai berulang di banyak section)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: .1s; }
.reveal-delay-2.in-view { transition-delay: .2s; }
.reveal-delay-3.in-view { transition-delay: .3s; }
.reveal-delay-4.in-view { transition-delay: .4s; }

/* Pengaman: kalau JS/IntersectionObserver telat atau gagal load,
   section tetap kelihatan setelah beberapa saat, tidak nyangkut transparan */
.reveal {
  animation: revealFallback 0s 1.2s forwards;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION UMUM
   ============================================================ */
.section-home {
  padding: 100px 6% 90px;
  position: relative;
}

.section-home.alt { background: var(--surface-soft); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  color: var(--uni-green);
  background: var(--ring);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.4px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
  margin: 0;
}

/* ============================================================
   CARA KERJA — STEPS
   ============================================================ */
.steps-wrap {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.steps-line {
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ring) 0 10px, transparent 10px 18px);
  z-index: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}

.step-card {
  background: var(--surface);
  border: 1px solid #eef1f6;
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.09);
  border-color: transparent;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--uni-green), #16a34a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 18px;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(14,107,58,0.35);
  transition: transform .35s ease;
}
.step-card:hover .step-num { transform: scale(1.1) rotate(-6deg); }

.step-card h4 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ============================================================
   KEUNGGULAN — FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 26px;
  border: 1px solid #eef1f6;
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--uni-green), var(--math-blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15,23,42,0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ring);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: transform .35s ease;
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }

.feature-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

/* ============================================================
   METODE (AHP & TOPSIS)
   ============================================================ */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.method-card {
  padding: 34px;
  border-radius: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .4s ease;
}

.method-card:hover { transform: translateY(-6px); }

.method-card.ahp { background: linear-gradient(135deg, var(--uni-green-dark), var(--uni-green)); }
.method-card.topsis { background: linear-gradient(135deg, #0f2f66, var(--math-blue-light)); }

.method-card .method-glyph {
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 6.4rem;
  font-weight: 800;
  opacity: .16;
  line-height: 1;
  animation: floatSymbol 7s ease-in-out infinite;
}

.method-card .method-badge {
  align-self: flex-start;
  background: rgba(255,255,255,0.18);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.method-card h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.method-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   STATISTIK
   ============================================================ */
.stats-band {
  background: linear-gradient(120deg, var(--uni-green-dark), var(--uni-green) 55%, #0d7a44);
  padding: 64px 6%;
  position: relative;
  overflow: hidden;
}

.stats-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
}

.stats-grid {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .num {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  display: block;
}

.stat-item .num::after { content: attr(data-suffix); }

.stat-item .label {
  color: rgba(255,255,255,0.85);
  font-size: .88rem;
  margin-top: 6px;
}

/* ============================================================
   CTA PENUTUP
   ============================================================ */
.cta-band {
  background: var(--surface);
  padding: 90px 6%;
  text-align: center;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #10233f, var(--math-blue));
  border-radius: 26px;
  padding: 56px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-box .blob {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -100px;
  right: -80px;
  animation: floatSymbol 10s ease-in-out infinite;
}

.cta-box h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

.cta-box .hero-actions { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-home {
  background: #0b1b14;
  color: rgba(255,255,255,0.7);
  padding: 34px 6% 26px;
  text-align: center;
  font-size: .86rem;
}

.footer-home strong { color: #fff; }

.footer-home .foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-home .foot-brand img { height: 28px; width: 28px; object-fit: contain; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .steps-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .steps-line { display: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 72%;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transition: right .4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  .home-nav .nav-links a.nav-link { color: var(--ink) !important; }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .home-nav .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; }
  .steps-grid, .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
