/* ---------- CSS Variables ---------- */
:root {
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --purple-50:  #faf5ff;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --pink-50:    #fdf2f8;
  --green-100:  #dcfce7;
  --green-500:  #22c55e;
  --green-700:  #15803d;
  --green-800:  #166534;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --white:      #ffffff;

  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

.font-display {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--indigo-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--indigo-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--white);
  color: var(--indigo-600);
  border: 2px solid var(--indigo-600);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--indigo-50);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--indigo-600);
  color: var(--white);
  box-shadow: var(--shadow-md);
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
}

.btn-secondary:hover {
  background-color: var(--indigo-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-white {
  background-color: var(--white);
  color: var(--indigo-600);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  background-color: var(--indigo-50);
  box-shadow: var(--shadow-xl);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-xl);
}

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

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

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--indigo-50) 0%, var(--purple-50) 50%, var(--pink-50) 100%);
  padding: 5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

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

.fade-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: var(--green-100);
  color: var(--green-800);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.hero-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  width: 100%;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--indigo-600);
  text-align: center;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
  text-align: center;
}

.hero-stat-divider {
  width: 1px;
  height: 2.5rem;
  background-color: var(--gray-200);
}

/* Hero image */
.phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.phone-image-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.06);
  max-width: 780px;
  width: 100%;
}

.phone-display-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Section Shared ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.875rem;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
  padding: 5rem 0;
  background-color: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  margin-bottom: 0.25rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Stats / Demo ---------- */
.stats {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.stats-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .stats-title { font-size: 2.5rem; }
}

.stats-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background-color: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--radius-3xl);
  padding: 2.25rem;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card-default:hover {
  border-color: var(--indigo-200);
}

.pricing-card-popular {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px var(--indigo-100), var(--shadow-lg);
}

.pricing-card-popular:hover {
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 4px var(--indigo-100), var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
  color: var(--white);
  padding: 0.3125rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-soalan {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--indigo-600);
  background-color: var(--indigo-50);
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
}

.pricing-features {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-500);
}

.pricing-feature-check svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--green-500);
}

.pricing-feature-text {
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.pricing-btn {
  margin-top: auto;
}

/* ---------- CTA ---------- */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .cta-title { font-size: 2.5rem; }
}

.cta-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0;
  background-color: var(--gray-50);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.open {
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-item.open .faq-question {
  color: var(--indigo-600);
}

.faq-icon {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--indigo-600);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer a {
  color: var(--indigo-600);
  font-weight: 600;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--indigo-700);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--gray-900);
  padding: 2.5rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

footer .logo-icon {
  background: linear-gradient(135deg, var(--indigo-500), var(--purple-600));
}

footer .logo-text {
  color: var(--white);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--white);
}

/* ---------- Email Popup ---------- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.popup-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

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

.popup-container {
  background: var(--white);
  border-radius: var(--radius-3xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.popup-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.popup-content {
  text-align: center;
}

.popup-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
}

.popup-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.popup-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-input:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px var(--indigo-100);
}

.popup-input::placeholder {
  color: var(--gray-400);
}

.popup-submit {
  width: 100%;
  padding: 0.9375rem 1.5rem;
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-600));
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-md);
}

.popup-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.popup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.popup-success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}
/* Hide section "Apa Kata Mereka?" */
section.testimonials { 
  display: none !important; 
}
