@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --forest: #064e3b;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(16, 185, 129, 0.12);
  --shadow-lg: 0 20px 35px -10px rgba(16, 185, 129, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.header-scrolled {
  height: 75px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo i {
  font-size: 38px;
  color: var(--primary);
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.logo h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.5px;
}

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

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 8%;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
}

.badge {
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pill {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-button {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-button button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.start:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.learn {
  background: white;
  color: var(--text-primary);
  border: 2px solid #e2e8f0;
}

.learn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* STATS SECTION */
.stats {
  max-width: 1200px;
  margin: -30px auto 70px;
  padding: 35px;
  background: white;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-main);
}

.stat-card i {
  font-size: 36px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 16px;
  border-radius: var(--radius-md);
}

.stat-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--forest);
}

.stat-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-card span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* HOW IT WORKS SECTION */
.how-it-works-section {
  padding: 80px 8%;
  background: white;
  text-align: center;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 45px auto 0;
}

.how-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: left;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  position: relative;
}

.how-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: white;
  border-color: var(--primary-light);
}

.how-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.how-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 12px;
}

.how-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* BERANDA MINI CALCULATOR */
.mini-calc-section {
  padding: 80px 8%;
  background: var(--bg-main);
}

.mini-calc-box {
  max-width: 1100px;
  margin: 40px auto 0;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--primary-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mini-calc-inputs h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 20px;
}

.form-group-home {
  margin-bottom: 16px;
}

.form-group-home label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group-home input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group-home input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.mini-calc-output {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.mini-calc-output h4 {
  font-size: 16px;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.calc-res-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.calc-res-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

.calc-res-item strong {
  font-size: 26px;
  color: #5eead4;
}

/* FEATURE SECTION */
.feature {
  text-align: center;
  padding: 80px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

.feature h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  color: var(--forest);
  margin-bottom: 12px;
}

.feature > p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 650px;
  margin: 0 auto 50px;
}

.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card i {
  font-size: 36px;
  color: var(--primary);
  background: var(--primary-light);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  flex: 1;
}

.card a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.card a:hover {
  color: var(--primary);
  gap: 12px;
}

/* GAME CTA BANNER */
.game-cta-section {
  padding: 60px 8%;
  background: white;
}

.game-cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
}

.game-cta-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  margin-bottom: 14px;
}

.game-cta-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.game-cta-box button {
  padding: 16px 36px;
  background: white;
  color: var(--forest);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.game-cta-box button:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}

/* JURNAL & DOKUMENTASI KEGIATAN */
.jurnal-section {
  padding: 80px 8%;
  background: white;
}

.jurnal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1300px;
  margin: 45px auto 0;
}

.jurnal-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.jurnal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.jurnal-img-box {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.jurnal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.jurnal-card:hover .jurnal-img-box img {
  transform: scale(1.08);
}

.jurnal-date-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.jurnal-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jurnal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.jurnal-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.jurnal-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.jurnal-link:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* TESTIMONIALS SECTION */
.testimonial-section {
  padding: 80px 8%;
  background: var(--bg-main);
  text-align: center;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 45px auto 0;
}

.testi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  text-align: left;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testi-stars {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 16px;
}

.testi-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.testi-author h4 {
  font-size: 16px;
  color: var(--text-primary);
}

.testi-author span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* FAQ SECTION */
.faq-section {
  padding: 80px 8%;
  background: white;
}

.faq-accordion {
  max-width: 900px;
  margin: 45px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-main);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 16px;
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-body {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* FOOTER */
footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 35px 20px;
  margin-top: 80px;
  font-size: 15px;
}

/* TOAST NOTIFICATION STYLES */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-left: 5px solid var(--primary);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-success { border-left-color: #10b981; }
.toast-success .toast-icon { color: #10b981; }

.toast-error { border-left-color: #ef4444; }
.toast-error .toast-icon { color: #ef4444; }

.toast-warning { border-left-color: #f59e0b; }
.toast-warning .toast-icon { color: #f59e0b; }

.toast-icon { font-size: 22px; margin-top: 2px; }

.toast-body strong { display: block; color: var(--text-primary); margin-bottom: 2px; }
.toast-body p { margin: 0; color: var(--text-secondary); font-size: 14px; }

.toast-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  margin-left: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================
   MOBILE & IPHONE 12 PRO RESPONSIVE STYLES
   ========================================== */

@media (max-width: 900px) {
  header {
    padding: 0 5%;
    height: 75px;
  }

  .hamburger-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--primary-light);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  nav.nav-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    font-size: 17px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 5%;
    gap: 40px;
  }

  .hero-text {
    width: 100%;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 30px;
  }

  .hero-button {
    justify-content: center;
  }

  .mini-calc-box, .game-cta-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

/* SPECIFIC FOR MOBILE & IPHONE 12 PRO (<= 480px / 390px) */
@media (max-width: 480px) {
  header {
    padding: 0 16px;
    height: 70px;
  }

  .logo i {
    font-size: 30px;
  }

  .logo h2 {
    font-size: 22px;
  }

  .hero {
    padding: 35px 16px 40px;
  }

  .badge {
    font-size: 13px;
    padding: 6px 14px;
    max-width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-button {
    flex-direction: column;
    width: 100%;
  }

  .hero-button button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .hero-image img, .hero-icon {
    max-width: 220px;
    height: 220px;
  }

  .hero-icon i {
    font-size: 80px;
  }

  .stats {
    padding: 20px 16px;
    margin: -20px 16px 50px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-card h2 {
    font-size: 24px;
  }

  .how-it-works-section, .mini-calc-section, .feature, .game-cta-section, .jurnal-section, .testimonial-section, .faq-section {
    padding: 50px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .how-grid, .feature-container, .jurnal-grid, .testi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-card, .card, .jurnal-card, .testi-card {
    padding: 24px 18px;
  }

  .game-cta-text h2 {
    font-size: 24px;
  }

  .game-cta-box button {
    width: 100%;
    justify-content: center;
  }

  .calc-res-item strong {
    font-size: 22px;
  }

  .modal-content {
    width: 92% !important;
    padding: 24px 18px !important;
  }

  #toast-container {
    right: 12px;
    left: 12px;
    bottom: 20px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}