/* ==========================================================================
   MOOVI — landing page theme
   Palette: biru + pink, warna solid (tanpa gradient), gaya color-blocking
   ========================================================================== */

:root {
  /* Biru */
  --blue-900: #24386b;
  --blue-700: #3b5fa8;
  --blue-500: #5b84e0;
  --blue-300: #a9c4f7;
  --blue-200: #c3ddfb;
  --blue-100: #eaf3ff;
  --sky-400: #7bd3f0;

  /* Pink */
  --pink-900: #7e2b4c;
  --pink-700: #b03a5b;
  --pink-500: #d9527e;
  --pink-300: #e091b4;
  --pink-200: #f6cbdd;
  --pink-100: #fdeef4;

  /* Peran */
  --primary: var(--blue-700);
  --accent: var(--pink-500);
  --bg: #f4f8ff;
  --surface: #ffffff;
  --ink: #16203c;
  --ink-muted: #5a6484;
  --line: #dfe7f7;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(22, 32, 60, 0.05);
  --shadow: 0 14px 34px -18px rgba(22, 32, 60, 0.3);
  --shadow-lg: 0 28px 56px -24px rgba(22, 32, 60, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 106px;
  gap: 16px;
}

.nav img {
  height: 76px;
  width: auto;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav nav a {
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-muted);
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.nav nav a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}

.nav nav a.nav-cta {
  margin-left: 10px;
  color: #fff;
  font-weight: 600;
  background: var(--pink-500);
}

.nav nav a.nav-cta:hover {
  color: #fff;
  background: var(--pink-700);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 0 112px;
  overflow: hidden;
}

/* Bidang warna solid sebagai dekorasi latar, bukan gradient */
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--blue-100);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--pink-100);
  z-index: -1;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 13px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pink-700);
  background: var(--pink-100);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-500);
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--blue-900);
}

/* Baris kedua judul memakai warna aksen solid */
.hero h1 .accent-text {
  color: var(--pink-500);
}

.hero p {
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 34px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Foto ditumpuk di atas bidang warna solid yang digeser (offset block) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border-radius: var(--radius-lg);
  background: var(--blue-200);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  animation: fadeIn 1.1s ease forwards;
}

/* ===== Tombol ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  background: var(--blue-700);
  border: 2px solid var(--blue-700);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--blue-900);
  border-color: var(--blue-900);
}

.btn-ghost {
  color: var(--pink-700);
  background: transparent;
  border-color: var(--pink-300);
}

.btn-ghost:hover {
  color: #fff;
  background: var(--pink-500);
  border-color: var(--pink-500);
}

/* ===== Section ===== */
section {
  padding: 96px 0;
}

#tentang {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-title h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--blue-900);
}

/* Dua batang warna solid, biru + pink, berdampingan */
.section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--blue-500);
  box-shadow: 22px 0 0 0 var(--pink-500);
  transform: translateX(-11px);
}

.section-title p {
  margin: 0;
  color: var(--ink-muted);
}

/* ===== Kartu ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card,
.team-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 34px 30px;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
}

/* Ikon: kotak warna solid, selang-seling biru dan pink */
.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 28px;
  border-radius: 18px;
  background: var(--blue-100);
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--pink-100);
}

.feature-card:nth-child(2):hover {
  border-color: var(--pink-300);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue-900);
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
}

/* ===== Tim ===== */
/* 5 anggota: kolom dibatasi lebarnya lalu grid-nya dipusatkan,
   supaya baris terakhir yang hanya berisi 2 kartu tetap seimbang */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: 24px;
}

.team-card {
  padding: 26px 22px;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
}

/* Bingkai avatar warna solid, selang-seling biru / pink */
.team-avatar {
  width: 152px;
  height: 182px;
  margin: 0 auto 18px;
  border-radius: 18px;
  padding: 5px;
  background: var(--blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card:nth-child(even) .team-avatar {
  background: var(--pink-200);
}

.team-card:nth-child(even):hover {
  border-color: var(--pink-300);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-900);
}

.team-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-500);
}

.team-card:nth-child(even) p {
  color: var(--blue-500);
}

/* ===== Info list (dipakai bila ada) ===== */
.info-list li {
  list-style: none;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-list li span {
  font-size: 20px;
}

.game-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.game-info ul {
  padding-left: 20px;
}

/* ===== Footer ===== */
footer {
  padding: 40px 0;
  color: #e6edff;
  background: var(--blue-900);
  border-top: 6px solid var(--pink-500);
}

footer p {
  text-align: center;
  margin: 0;
  opacity: 0.85;
  font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    padding: 64px 0 76px;
  }
  .hero-grid,
  .game-info {
    grid-template-columns: 1fr;
  }
  .hero p {
    max-width: none;
  }
  .hero-visual::before {
    inset: 18px -12px -12px 18px;
  }
  .team {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  }
  section {
    padding: 68px 0;
  }
}

@media (max-width: 640px) {
  .nav {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav img {
    height: 56px;
  }
  .nav nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav nav a {
    padding: 8px 13px;
    font-size: 14px;
  }
  .nav nav a.nav-cta {
    margin-left: 0;
  }
  .hero-actions {
    width: 100%;
  }
  .btn {
    flex: 1 1 200px;
  }
}

/* ===== Animasi ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate {
  opacity: 0;
  transform: translateY(28px);
}
.animate.show {
  animation: fadeUp 0.85s ease forwards;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.22s;
}
.delay-3 {
  animation-delay: 0.34s;
}

@media (prefers-reduced-motion: reduce) {
  .animate,
  .hero-visual img {
    opacity: 1;
    transform: none;
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
