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

:root {
  --color-primary: #606C38;
  --color-secondary: #283618;
  --color-background: #FEFAE0;
  --color-accent: #DDA15E;
  --color-accent-dark: #BC6C25;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-border: #e0d8c0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --header-height: 72px;
}

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

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-dark);
}

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

ul, ol {
  list-style: none;
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
}

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

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-secondary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--color-secondary);
}

.logo svg {
  width: 40px;
  height: 40px;
}

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

.nav a {
  padding: 8px 16px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background-color: rgba(96, 108, 56, 0.08);
  color: var(--color-primary);
}

.nav a.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav .btn {
  margin-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-background) 0%, rgba(96, 108, 56, 0.06) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  max-width: 500px;
  width: 100%;
}

/* ===== Features ===== */
.features {
  background-color: var(--color-white);
}

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

.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: rgba(96, 108, 56, 0.1);
  border-radius: 50%;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== How It Works ===== */
.how-it-works {
  background-color: var(--color-background);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  padding: 32px 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.step-arrow {
  display: none;
}

/* ===== Pricing ===== */
.pricing {
  background-color: var(--color-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  background-color: var(--color-background);
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.pricing-card.featured {
  border-color: var(--color-primary);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price {
  margin-bottom: 24px;
}

.pricing-price .amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--color-secondary);
}

.pricing-price .period {
  color: var(--color-text-light);
  font-size: 1rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features li.disabled {
  color: #999;
}

.pricing-features li.disabled svg {
  opacity: 0.3;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pricing-toggle span {
  font-weight: 500;
  color: var(--color-text-light);
}

.pricing-toggle span.active {
  color: var(--color-secondary);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  background-color: var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-switch.active {
  background-color: var(--color-primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: var(--color-white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.toggle-switch.active::after {
  transform: translateX(22px);
}

.pricing-save {
  display: inline-block;
  background-color: rgba(96, 108, 56, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ===== FAQ ===== */
.faq {
  background-color: var(--color-background);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background-color: var(--color-white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-secondary);
  gap: 16px;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: rgba(96, 108, 56, 0.04);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Legal / Content Pages ===== */
.page-content {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  min-height: 60vh;
}

.page-content h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.page-content .updated {
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.page-content h2 {
  font-size: 1.35rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p,
.page-content li {
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content ul {
  padding-left: 24px;
  list-style: disc;
}

.page-content a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ===== 404 Page ===== */
.error-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.error-page h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page svg {
  max-width: 200px;
  margin: 0 auto 32px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--color-background);
    padding: 100px 32px 40px;
    gap: 4px;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    align-items: stretch;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    padding: 12px 16px;
    font-size: 1.1rem;
  }

  .nav .btn {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

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

  .hero .tagline {
    font-size: 1.1rem;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 48px 0;
  }

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

  .page-content h1 {
    font-size: 1.75rem;
  }

  .error-page h1 {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .pricing-card {
    padding: 32px 20px;
  }

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