/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4a7c59;
  --primary-dark: #3a6347;
  --primary-light: #e8f0e4;
  --bg: #fdf6ec;
  --accent: #91732f;
  --accent-light: #f5e6c0;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(44, 44, 44, 0.08);
  --shadow-hover: 0 8px 32px rgba(44, 44, 44, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-title em {
  color: var(--primary);
  font-style: italic;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 56px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 89, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline:disabled {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  cursor: not-allowed;
}


/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 124, 89, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

img.logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 380px;
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.floating-card strong {
  display: block;
  font-size: 0.85rem;
}

.floating-card small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.floating-icon {
  font-size: 1.6rem;
}

.floating-card-left {
  left: -10px;
  top: 30%;
  animation: floatLeft 3.5s ease-in-out infinite;
}

.floating-card-right {
  right: -10px;
  bottom: 25%;
  animation: floatRight 4s ease-in-out infinite 0.5s;
}

@keyframes floatLeft {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes floatRight {

  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

.bubble {
  position: absolute;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow);
  opacity: 0;
  animation: rise 6s ease-in-out infinite;
}

.bubble-1 {
  right: 10%;
  top: 10%;
  animation-delay: 0s;
}

.bubble-2 {
  left: 5%;
  top: 70%;
  animation-delay: 2s;
}

.bubble-3 {
  right: 20%;
  bottom: 5%;
  animation-delay: 4s;
}

.bubble-4 {
  left: 30%;
  top: 5%;
  animation-delay: 3s;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  15% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-8px);
  }

  45% {
    opacity: 0;
    transform: translateY(-24px);
  }

  100% {
    opacity: 0;
    transform: translateY(-24px);
  }
}


/* === FITUR === */
.fitur {
  background: var(--white);
}

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.card-highlight {
  background: var(--primary-light);
  border-color: rgba(74, 124, 89, 0.2);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === TIPS === */
.tips-section {
  background: var(--white);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tip-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-light);
}

.tip-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-light);
  position: absolute;
  top: -8px;
  right: 16px;
  line-height: 1;
  pointer-events: none;
}

.tip-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.tip-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
}

/* === FOOTER === */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 52px;
  height: 52px;

  border-radius: 50%;
  border: none;

  background: var(--primary);
  color: white;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  transition: all .3s ease;

  cursor: pointer;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  background: var(--accent);
}


/* ======================= */
/*      RESPONSIVE         */
/* ======================= */

/* Tablet / Medium */
@media (max-width: 900px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }

  .fitur-grid,
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chatbot-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .chatbot-intro {
    text-align: center;
  }

  .chatbot-intro .section-title {
    text-align: center !important;
  }

  .suggestion-chips {
    justify-content: center;
  }

  .chatbox {
    max-height: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 72px 0;
  }

  .tools-panel-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .amplop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .darurat-target-range {
    flex-direction: column;
    gap: 16px;
  }

  .darurat-target-divider {
    transform: rotate(90deg);
  }

  .calc-stats {
    gap: 12px;
  }

  .budget-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .budget-intro {
    text-align: center;
  }

  .budget-intro .section-title {
    text-align: center !important;
  }

  .budget-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .bar-label {
    width: 100px;
    font-size: 0.78rem;
  }

  .bar-value {
    width: 90px;
    font-size: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 246, 236, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid rgba(74, 124, 89, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(74, 124, 89, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }


  .hero {
    padding: 110px 0 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .fitur-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px 22px;
  }

  .tip-card {
    padding: 24px 22px;
  }

  .tip-number {
    font-size: 3rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  .chatbot-grid {
    gap: 28px;
  }

  .chatbox {
    max-height: 440px;
  }

  .chatbox-messages {
    min-height: 260px;
  }

  .chip {
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .bubble {
    display: none;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .budget-hero {
    padding: 110px 0 24px;
  }

  .budget-form-card {
    padding: 24px;
  }

  .budget-form-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .budget-chart-section {
    padding: 20px;
  }

  .bar-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .bar-label {
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
  }

  .bar-track {
    flex: 1;
  }

  .bar-value {
    width: auto;
  }

  .tools-tab,
  .darurat-tab,
  .hutang-tab {
    padding: 10px 18px;
    font-size: 0.84rem;
  }

  .tools-panel-form {
    padding: 20px;
  }

  .amplop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .calc-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calc-stat-value.calc-highlight {
    font-size: 1.3rem;
  }

  .strategy-checklist {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .budget-table th,
  .budget-table td {
    padding: 10px 12px;
  }

  .cell-catatan {
    display: none;
  }

  .budget-table th:nth-child(4) {
    display: none;
  }

  .skenario-grid {
    grid-template-columns: 1fr;
  }

  .darurat-progress-visual {
    gap: 24px;
  }

  .darurat-calc-card,
  .darurat-progress-card {
    padding: 24px;
  }

  .darurat-milestone-line {
    width: 24px;
  }

  .danger-question {
    padding: 12px 16px;
    gap: 10px;
  }

  .danger-result-card,
  .ratio-result-card {
    padding: 24px;
  }

  .ratio-details {
    grid-template-columns: 1fr;
  }

  .nego-chat-messages {
    min-height: 240px;
  }

  .darurat-breakdown {
    padding: 16px 20px;
  }

  .floating-card {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .floating-card-left {
    left: -5px;
    top: 20%;
  }

  .floating-card-right {
    right: -5px;
    bottom: 20%;
  }

  .scroll-top {
    width: 45px;
    height: 45px;

    bottom: 20px;
    right: 20px;
    font-size: 18px;
  }
}

/* Extra small */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .floating-card {
    display: none;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}