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

:root {
  --brand: #64AF26;
  --brand-dark: #4d8a1c;
  --brand-light: #70BF2F;
  --text: #06112A;
  --text-muted: #7B7E97;
  --bg: #F8F9FD;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(6, 17, 42, 0.08);
  --radius: 12px;
  --cta: #131313;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

code {
  font-size: 0.9em;
  background: #eef2e8;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav-cta {
  background: var(--cta);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #2a2a2a;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

.hero {
  background: linear-gradient(135deg, #1a3d0a 0%, #2d6b14 40%, #64AF26 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 600px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #f0f0f0;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.btn-green:hover {
  background: var(--brand-dark);
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loan-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.loan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.loan-table th,
.loan-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.loan-table th {
  background: #f4f6f9;
  font-weight: 600;
}

.loan-table tr:last-child td {
  border-bottom: none;
}

.example-box {
  background: var(--white);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.example-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.example-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

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

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

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-back {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-back .container {
  padding: 0.75rem 0;
}

.page-back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.content-page h1 {
  margin: 0 0 0.5rem;
}

.content-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.content-page h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.content-page p,
.content-page li {
  color: var(--text-muted);
}

.content-page ul,
.content-page ol {
  padding-left: 1.25rem;
}

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--white);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
}

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

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

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }
}
