:root {
  --forest: #1a3c2e;
  --gold: #c8a96e;
  --cream: #f5f0e8;
  --sage: #d4e0d8;
  --gold-light: #e8d4aa;
  --forest-light: #2d5c45;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--forest);
  line-height: 1.6;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.text-forest {
  color: var(--forest);
}

.text-gold {
  color: var(--gold);
}

.bg-cream {
  background: var(--cream);
}

.bg-forest {
  background: var(--forest);
}

.bg-sage {
  background: var(--sage);
}

/* =========================================
   TYPOGRAPHY UTILITIES
   ========================================= */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold)/40;
  border-color: rgba(200, 169, 110, .35);
  padding: .35rem .9rem;
  border-radius: 100px;
  background: rgba(200, 169, 110, .08);
}

.section-tag-light {
  color: var(--gold);
  border-color: rgba(200, 169, 110, .3);
  background: rgba(200, 169, 110, .1);
}

/* =========================================
   REVEAL ANIMATIONS (Intersection Observer)
   ========================================= */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* =========================================
   NAVBAR
   ========================================= */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(245, 240, 232, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 60, 46, .08);
}

.nav-link {
  color: var(--forest);
  opacity: .65;
  transition: opacity .2s;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 1;
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all .3s;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
  background: rgba(245, 240, 232, .98);
  backdrop-filter: blur(20px);
}

.mobile-menu.open {
  max-height: 400px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: white;
  font-size: .85rem;
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(26, 60, 46, .25);
}

.btn-primary:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 60, 46, .3);
}

.btn-primary.btn-lg {
  padding: .85rem 2rem;
  font-size: .95rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(26, 60, 46, .25);
  color: var(--forest);
  font-size: .85rem;
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
}

.btn-outline:hover {
  border-color: var(--forest);
  background: rgba(26, 60, 46, .05);
  transform: translateY(-2px);
}

.btn-outline.btn-lg {
  padding: .85rem 2rem;
  font-size: .95rem;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
  font-size: .95rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(200, 169, 110, .4);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 169, 110, .5);
}

/* =========================================
   HERO
   ========================================= */
.hero-section {
  background: linear-gradient(135deg, var(--cream) 60%, rgba(212, 224, 216, .5) 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.shape-1 {
  width: 500px;
  height: 500px;
  right: -100px;
  top: -100px;
  background: radial-gradient(circle, rgba(200, 169, 110, .18) 0%, transparent 70%);
}

.shape-2 {
  width: 350px;
  height: 350px;
  left: -80px;
  bottom: 50px;
  background: radial-gradient(circle, rgba(26, 60, 46, .12) 0%, transparent 70%);
}

.shape-3 {
  width: 250px;
  height: 250px;
  right: 30%;
  top: 40%;
  background: radial-gradient(circle, rgba(212, 224, 216, .5) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 169, 110, .1);
  border: 1px solid rgba(200, 169, 110, .3);
  padding: .4rem 1rem;
  border-radius: 100px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(1.4);
  }
}

/* HERO STATS */
.hero-stats .stat-number {
  transition: all .2s;
}

/* HERO VISUAL / BUDGET CARD */
.hero-visual {
  position: relative;
}

.budget-card {
  background: linear-gradient(135deg, #1a3c2e 0%, #0d2318 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(26, 60, 46, .4), 0 0 0 1px rgba(200, 169, 110, .15);
  padding: 28px;
  position: relative;
  z-index: 2;
}

.budget-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, .15) 0%, transparent 70%);
  pointer-events: none;
}

.budget-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.budget-total {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: 20px;
  margin-bottom: 4px;
}

.bar-track {
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  width: var(--w);
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1);
}

.bar-food {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.bar-utility {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.bar-savings {
  background: linear-gradient(90deg, #c8a96e, #e8d4aa);
}

.bar-fun {
  background: linear-gradient(90deg, #f472b6, #ec4899);
}

.budget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.badge-green {
  font-size: .7rem;
  font-weight: 700;
  background: rgba(74, 222, 128, .15);
  color: #4ade80;
  padding: .25rem .7rem;
  border-radius: 100px;
}

/* Float cards */
.float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(26, 60, 46, .15), 0 0 0 1px rgba(26, 60, 46, .06);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.float-card-1 {
  bottom: -20px;
  left: -30px;
  animation-delay: 0s;
}

.float-card-2 {
  top: 10px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {

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

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

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(26, 60, 46, .3), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: .4;
    transform: scaleY(.7);
  }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.section-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.blob-left {
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(200, 169, 110, .12) 0%, transparent 70%);
}

.blob-right {
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(26, 60, 46, .1) 0%, transparent 70%);
}

.about-stat {
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26, 60, 46, .06);
}

/* About illustration */
.about-illustration {
  position: relative;
  min-height: 420px;
}

.illus-circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 224, 216, .8) 0%, transparent 70%);
}

.illus-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(26, 60, 46, .12), 0 0 0 1px rgba(26, 60, 46, .05);
}

.illus-card-1 {
  top: 20px;
  left: 0;
  width: 240px;
}

.illus-card-2 {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 200px;
}

.illus-card-3 {
  bottom: 20px;
  left: 30px;
  width: 220px;
}

.illus-rule-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 40px;
}

.rule-bar {
  border-radius: 6px 6px 0 0;
  flex: 0 0 auto;
}

.rule-bar-50 {
  width: 28px;
  height: 40px;
  background: var(--forest);
}

.rule-bar-30 {
  width: 28px;
  height: 24px;
  background: var(--gold);
}

.rule-bar-20 {
  width: 28px;
  height: 16px;
  background: var(--sage);
}

.pill {
  font-size: .6rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 100px;
}

.pill-need {
  background: rgba(26, 60, 46, .1);
  color: var(--forest);
}

.pill-want {
  background: rgba(200, 169, 110, .2);
  color: var(--gold);
}

.pill-save {
  background: var(--sage);
  color: var(--forest);
}

/* =========================================
   PILLARS
   ========================================= */
.pillars-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 169, 110, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.pillar-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: default;
}

.pillar-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(200, 169, 110, .3);
  transform: translateY(-4px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 110, .4), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  font-size: 2.5rem;
}

.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(200, 169, 110, .5);
  letter-spacing: .1em;
}

.pillar-arrow {
  margin-top: 20px;
  font-size: 1.2rem;
  color: rgba(200, 169, 110, .4);
  transition: color .3s, transform .3s;
}

.pillar-card:hover .pillar-arrow {
  color: var(--gold);
  transform: translateX(6px);
}

/* =========================================
   TOOLS
   ========================================= */
.tool-card {
  background: white;
  border: 1px solid rgba(26, 60, 46, .08);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transition: box-shadow .3s, transform .3s;
}

.tool-card:hover {
  box-shadow: 0 20px 60px rgba(26, 60, 46, .12);
  transform: translateY(-6px);
}

.tool-card-featured {
  background: var(--forest);
  border-color: rgba(200, 169, 110, .2);
  box-shadow: 0 12px 40px rgba(26, 60, 46, .25);
}

.tool-card-featured h3,
.tool-card-featured p {
  color: white;
}

.tool-card-featured p {
  opacity: .6;
}

.tool-card-featured .tool-feature {
  color: rgba(255, 255, 255, .7);
}

.tool-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--forest);
  padding: .25rem .7rem;
  border-radius: 100px;
}

.tool-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(26, 60, 46, .06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-featured .tool-icon-wrap {
  background: rgba(255, 255, 255, .1);
}

.tool-feature {
  font-size: .82rem;
  color: rgba(26, 60, 46, .6);
  font-weight: 500;
}

/* =========================================
   TIPS
   ========================================= */
.sticky-tips {
  position: sticky;
  top: 120px;
  align-self: start;
}

.tip-item {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(26, 60, 46, .06);
  transition: box-shadow .3s, transform .3s;
}

.tip-item:hover {
  box-shadow: 0 8px 30px rgba(26, 60, 46, .1);
  transform: translateY(-2px);
}

.tip-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(26, 60, 46, .12);
  min-width: 40px;
  line-height: 1;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial-card {
  background: white;
  border: 1px solid rgba(26, 60, 46, .07);
  border-radius: 24px;
  padding: 32px;
  transition: box-shadow .3s, transform .3s;
}

.testimonial-card:hover {
  box-shadow: 0 16px 48px rgba(26, 60, 46, .1);
  transform: translateY(-4px);
}

.testimonial-card-dark {
  background: var(--forest);
  border-color: rgba(200, 169, 110, .15);
}

.stars {
  color: rgba(200, 169, 110, .5);
  font-size: 1rem;
  letter-spacing: 2px;
}

.stars-gold {
  color: var(--gold);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: white;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar-light {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--forest);
}

/* =========================================
   FAQ
   ========================================= */
.faq-item {
  background: white;
  border: 1px solid rgba(26, 60, 46, .07);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .3s;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(26, 60, 46, .08);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest);
  text-align: left;
  gap: 16px;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform .3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

.faq-a p {
  padding: 0 28px 22px;
  font-size: .9rem;
  color: rgba(26, 60, 46, .65);
  line-height: 1.7;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest) 0%, #0d2318 100%);
  z-index: 0;
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 169, 110, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.cta-bg::after {
  content: '';
  position: absolute;
  top: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, .2) 0%, transparent 65%);
  filter: blur(60px);
}

.cta-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 169, 110, .3);
  background: rgba(200, 169, 110, .1);
  padding: .4rem 1rem;
  border-radius: 100px;
}

.cta-form-inner {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-input {
  flex: 1;
  min-width: 240px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 100px;
  font-size: .95rem;
  font-family: 'Manrope', sans-serif;
  outline: none;
  transition: border-color .2s, background .2s;
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.cta-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, .15);
}

.form-success {
  transition: opacity .3s;
}

.form-success.hidden {
  display: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-link {
  text-decoration: none;
  color: rgba(255, 255, 255, .5);
  transition: color .2s;
}

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

/* =========================================
   COUNTER HERO
   ========================================= */
.counter-hero {
  transition: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .float-card-1 {
    left: 0;
    bottom: -30px;
  }

  .float-card-2 {
    right: 0;
    top: -20px;
  }

  .sticky-tips {
    position: static;
  }

  .illus-card-2 {
    right: 0;
  }

  .scroll-hint {
    display: none;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .cta-form-inner {
    flex-direction: column;
  }

  .cta-input,
  .btn-gold {
    width: 100%;
    border-radius: 16px;
  }
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 60, 46, .3);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--forest);
}