* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --color-primary: #673ab7;
  --color-primary-soft: rgba(103, 58, 183, 0.08);
  --color-bg: #fdfcfe;
  --color-text: #1a1a1a;
  --color-muted: #6e6e6e;
  --color-primary-bg: #ede7f6;
  --color-secondary-bg: #f3e5f5;
  --color-blob: #e1bee7;
  --color-white: #fff;

  --color-chat-bg: #ffffff;
  --color-user-bubble: #decbff;
  --color-ai-bubble: #f8f6ff;
  --color-bubble-text: #2a215a;

  --color-letter-bg: #f3efff;
  --color-letter-quote: #5b4b90;
  --color-letter-badge-bg: #ffffff;
  --color-letter-badge-text: #8c80a9;

  --color-tone-bg: #faf9fe;
  --tone-hangat: #fff3f4;
  --tone-mindful: #f2f9f6;
  --tone-ceria: #f6f0ff;
  --tone-tegas: #fffde7;
  --tone-tajam: #fbe9e7;
  --tone-inspiratif: #ede7f6;
  --tone-text: #444;

  --font-base: "Inter", sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.2rem;
  --font-size-xl: 2rem;

  --radius-full: 999px;
  --radius-md: 16px;
  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 6px 24px rgba(0, 0, 0, 0.05);
  --shadow-deep: 0 8px 28px rgba(103, 58, 183, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root[data-theme="dark"] {
  --color-primary: #b39ddb;
  --color-primary-bg: #2f2a3f;
  --color-secondary-bg: #3a2f4f;
  --color-blob: #452d63;
  --color-bg: #1a1b24;
  --color-text: #e2e2f0;
  --color-muted: #a9a9c2;
  --color-white: #2b2c3b;

  --color-chat-bg: #2a2a3a;
  --color-user-bubble: #4c3f78;
  --color-ai-bubble: #3b3552;
  --color-bubble-text: #e0dfff;

  --color-letter-bg: #2d273f;
  --color-letter-quote: #cabff2;
  --color-letter-badge-bg: #3b3453;
  --color-letter-badge-text: #c2b9dd;

  --color-tone-bg: #201f2d;
  --tone-hangat: #3e2d30;
  --tone-mindful: #2b3a35;
  --tone-ceria: #3a3052;
  --tone-tegas: #3f3b2d;
  --tone-tajam: #4a2c2c;
  --tone-inspiratif: #3a3350;
  --tone-text: #d8d8dd;

  --color-tone-bg: #201f2d; /* Dark background for the section */
  --color-white: #2b2c3b; /* Dark background for cards */
  --color-text: #e2e2f0; /* Light text color */
  --color-muted: #a9a9c2; /* Muted color for quote */

  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 6px 24px rgba(0, 0, 0, 0.2);
  --shadow-deep: 0 8px 28px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .feature-card {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .letter-image img {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Khusus untuk area konten terang yang perlu digelapkan */
.hero-text-only h1,
.why-content h2,
.features-title,
.testimonial-title,
.cta-title,
.letter-title {
  color: var(--color-text);
}

.hero-text-only p,
.why-content p,
.why-conclusion,
.features-subtitle,
.feature-card p,
.letter-content p,
.letter-content .quote,
.cta-subtitle,
.quote,
.author {
  color: var(--color-muted);
}

.feature-card,
.testimonial-card,
.chat-box {
  background: var(--color-white);
  color: var(--color-text);
}

.site-footer {
  background-color: var(--color-white);
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  margin-left: 1rem;
}

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

/* Desktop default */
.nav-menu {
  display: flex;
  gap: 1.5rem;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

body,
header,
section,
.feature-card,
.chat-box,
.site-footer {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
  }
}

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #5e35b1;
}

.chat-preview-section {
  padding: 6rem 1.5rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.chat-preview-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.chat-preview-section p {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.chat-box {
  background: var(--color-chat-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(103, 58, 183, 0.08);
  position: relative;
}

.user-bubble {
  background: var(--color-user-bubble);
  color: var(--color-bubble-text);
}

.ai-bubble {
  background: var(--color-ai-bubble);
  color: var(--color-bubble-text);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #f8f6ff;
  border-radius: var(--radius-full);
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #bbb;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-new {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--color-secondary-bg),
    var(--color-white)
  );
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-text-only {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-text-only h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

.hero-text-only p {
  font-size: 1.15rem;
  color: #6e6a86;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  z-index: 0;
  filter: blur(1px);
}

.blob-1 {
  width: 260px;
  height: 260px;
  background: var(--color-blob);
  top: -100px;
  left: -100px;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: var(--color-blob);
  top: -80px;
  right: -60px; /* pindah ke kanan atas */
  animation: blobFloat 10s ease-in-out infinite;
}

.blob-3 {
  width: 140px;
  height: 140px;
  background: var(--color-primary-bg);
  top: 30%;
  left: 60px;
  animation: blobFloat 14s ease-in-out infinite;
}

.blob-4 {
  width: 100px;
  height: 100px;
  background: var(--color-blob);
  top: 60%;
  left: 5%; /* pindah ke kiri tengah */
  animation: blobFloat 11s ease-in-out infinite;
}

.blob-5 {
  width: 160px;
  height: 160px;
  background: #ce93d8;
  bottom: 10%;
  right: 15%;
  animation: blobFloat 13s ease-in-out infinite;
}

.blob-6 {
  width: 150px;
  height: 150px;
  background: var(--color-secondary-bg);
  top: 20%;
  right: 20%; /* dari kiri ke kanan */
  animation: blobFloat 19s ease-in-out infinite;
}

.blob-7 {
  width: 180px;
  height: 180px;
  background: #e0d7f9;
  bottom: 20%;
  left: 10%; /* pindah dari kiri ke kiri bawah */
  animation: blobWiggle 21s ease-in-out infinite;
}

.blob-8 {
  width: 130px;
  height: 130px;
  background: #f8bbd0;
  bottom: 5%;
  right: 5%;
  animation: blobFloat 17s ease-in-out infinite;
}

.blob-9 {
  width: 100px;
  height: 100px;
  background: var(--color-blob);
  top: 10%;
  left: 35%;
  animation: blobWiggle 20s ease-in-out infinite;
}

.blob-10 {
  width: 220px;
  height: 220px;
  background: var(--color-primary-bg);
  bottom: 30%;
  right: 45%;
  animation: blobFloat 23s ease-in-out infinite;
}

@keyframes blobWiggle {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  15% {
    transform: translate(25px, -20px) scale(1.08) rotate(3deg);
  }
  30% {
    transform: translate(-20px, 15px) scale(1.05) rotate(-2deg);
  }
  50% {
    transform: translate(30px, 10px) scale(1.07) rotate(4deg);
  }
  70% {
    transform: translate(-15px, -25px) scale(1.03) rotate(-3deg);
  }
  85% {
    transform: translate(10px, 20px) scale(1.06) rotate(2deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@media (max-width: 768px) {
  .hero-text-only {
    padding: 0 1.2rem;
    text-align: center;
  }

  .hero-text-only h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero-text-only p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}

.why-section {
  padding: 6rem 1.5rem;
  background: var(--color-bg);
}

.why-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.why-content {
  flex: 1 1 720px;
  padding: 0 1rem;
}

.why-content h2 {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.why-content h2 .highlight {
  color: var(--color-primary);
}

.why-content p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.why-features {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0 1rem;
}

.why-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.why-conclusion {
  font-size: 1.1rem;
  color: #5f518c;
  font-weight: 500;
  margin-top: 2rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .why-content {
    padding: 0;
    text-align: center;
  }

  .why-content h2 {
    font-size: 1.6rem;
  }

  .why-content p,
  .why-conclusion {
    font-size: 1rem;
  }

  .why-features {
    text-align: left;
    margin-left: 0;
  }
}

.features-section {
  background: var(--color-primary-bg);
  padding: 5rem 1.5rem;
}

.features-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.features-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.features-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.letter-section {
  background: var(--color-letter-bg);
  padding: 6rem 1.5rem;
}

.letter-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.letter-content {
  flex: 1 1 500px;
}

.letter-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.letter-content p {
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.letter-content .quote {
  color: var(--color-letter-quote);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.letter-image {
  flex: 1 1 500px;
  position: relative;
}

.letter-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(103, 58, 183, 0.07);
}

.letter-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--color-letter-badge-bg);
  color: var(--color-letter-badge-text);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-section {
  padding: 6rem 1.5rem;
  background: var(--color-tone-bg); /* Sesuaikan dengan tema */
}

.testimonial-container {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.testimonial-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.testimonial-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 2rem;
  background: var(--color-white); /* White for light mode, dark for dark mode */
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-muted); /* Adjusted for better contrast in dark mode */
  line-height: 1.8;
}

.author {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.testimonial-nav:hover {
  color: #673ab7;
}

.testimonial-nav.prev {
  left: 0;
}

.testimonial-nav.next {
  right: 0;
}

.cta-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(
    120deg,
    var(--color-primary-bg),
    var(--color-secondary-bg)
  );
  text-align: center;
  border-top: 1px solid #ddd;
}

.cta-container {
  max-width: 640px;
  margin: 0 auto;
}

.cta-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--color-text);
  font-weight: 600;
}

.cta-subtitle {
  color: #6e6a86;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.blob-cta-1,
.blob-cta-2,
.blob-cta-3 .blob-cta-4 .blob-cta-5 .blob-cta-6 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  z-index: 0;
  filter: blur(3px);
  animation: blobWiggle 24s ease-in-out infinite;
}

/* Blob CTA 1 */
.blob-cta-1 {
  width: 240px;
  height: 240px;
  background: #f8bbd0;
  top: -80px;
  left: -100px;
  position: absolute;
  border-radius: 50%; /* Membuatnya berbentuk bulat */
}

/* Blob CTA 2 */
.blob-cta-2 {
  width: 180px;
  height: 180px;
  background: #f8bbd0;
  bottom: -60px;
  right: -60px;
  position: absolute;
  border-radius: 50%;
}

/* Blob CTA 3 */
.blob-cta-3 {
  width: 160px;
  height: 160px;
  background: #f8bbd0;
  top: 30%;
  left: 70%;
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Blob CTA 4 */
.blob-cta-4 {
  width: 180px;
  height: 180px;
  background: var(--color-blob);
  top: 20%;
  right: 20%;
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Blob CTA 5 */
.blob-cta-5 {
  width: 160px;
  height: 160px;
  background: #e0d7f9;
  top: 70%;
  left: 15%;
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Blob CTA 6 */
.blob-cta-6 {
  width: 140px;
  height: 140px;
  background: #e0d7f9;
  bottom: 20px;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* For the tone section */
.tone-section {
  padding: 6rem 1.5rem;
  background: var(--color-tone-bg);
  color: var(--color-text);
}

.tone-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.tone-section p {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* Tone boxes */
.tone-box {
  flex: 1 1 280px;
  max-width: 300px;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.tone-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tone-box p {
  font-size: 0.98rem;
  color: var(--tone-text);
}

/* Tone colors */
.tone-hangat {
  background: var(--tone-hangat);
}

.tone-mindful {
  background: var(--tone-mindful);
}

.tone-ceria {
  background: var(--tone-ceria);
}

.tone-tegas {
  background: var(--tone-tegas);
}

.tone-tajam {
  background: var(--tone-tajam);
}

.tone-inspiratif {
  background: var(--tone-inspiratif);
}

.google-play-badge {
  height: 60px;
  transition: transform 0.2s ease;
}

.google-play-badge:hover {
  transform: scale(1.05);
}
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  background-color: var(--color-bg);
}

.site-footer strong {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #673ab7;
}
