:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --orange: #ff6a1a;
  --orange-dark: #e85c10;
  --blue: #2a1ffb;
  --cyan: #2fd1f5;
  --beige: #ede8df;
  --purple: #8c12f0;
  --text-dark: #111111;
  --text-muted: #5a5a5a;
  --font-display: 'Bai Jamjuree', sans-serif;
  --font-body: 'Bai Jamjuree', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}

p { margin: 0 0 16px; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.beige { background: var(--beige); }

.centered { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-white { background: var(--white); color: var(--text-dark); }

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
}
.main-nav a { color: var(--white); }
.main-nav a.active { color: var(--cyan); }
.main-nav a.login { color: var(--orange); }

/* Hero */
.hero {
  display: flex;
  min-height: 480px;
}
.hero-text {
  flex: 0 0 42%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  clip-path: polygon(0 0, 75% 0, 80% 50%, 75% 100%, 0 100%);
}
.hero-text h1 { font-size: 48px; }
.hero-text .highlight { color: var(--orange); }
.hero-text p { max-width: 420px; font-size: 16px; opacity: 0.9; }
.hero-image {
  flex: 1;
  margin-left: -8%;
}
.image-placeholder {
  height: 100%;
  min-height: 480px;
  width: 100%;
  background: repeating-linear-gradient(45deg, #d8d4ca, #d8d4ca 10px, #e6e2d8 10px, #e6e2d8 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.hero-photo {
  height: 100%;
  min-height: 480px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Recognized by */
.recognized {
  text-align: center;
  padding: 40px 32px;
}
.recognized-label {
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 24px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.logo-chip {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

/* Split section */
.split { padding: 80px 0; }
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.split-inner h2 { font-size: 32px; }
.split-right p { max-width: 420px; }

/* How it works */
.how-it-works {
  background: var(--cyan);
  padding: 72px 0;
}
.how-it-works h2 { font-size: 32px; margin-bottom: 48px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  text-align: center;
}
.step .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}
.step .icon svg { width: 100%; height: 100%; }
.step h3 { font-size: 18px; margin-bottom: 12px; }
.step p { font-size: 14px; color: #1a1a1a; max-width: 300px; margin: 0 auto; }

/* Impact block */
.impact-block { padding: 80px 0 0; }
.impact-block h2 { font-size: 30px; max-width: 800px; margin: 0 auto 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.two-col p { font-size: 15px; }
.logo-row.municipalities {
  background: var(--white);
  padding: 32px;
  margin-top: 56px;
}

/* Testimonial */
.testimonial { padding: 64px 0; }
.testimonial-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.avatar-placeholder {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  background: #d8d4ca;
}
.testimonial-text p { font-size: 18px; font-style: italic; }
.testimonial-text .attribution {
  font-style: normal;
  font-weight: 600;
  color: var(--orange-dark);
  font-size: 15px;
}

/* Benefits */
.benefits {
  display: flex;
  min-height: 340px;
}
.benefits-left {
  background: var(--purple);
  color: var(--white);
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  padding: 48px;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  margin-right: -8%;
  z-index: 1;
}
.benefits-left h2 { font-size: 32px; margin: 0; }
.benefits-right {
  background: var(--orange);
  color: var(--white);
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 48px 48px 15%;
}
.benefits-right ul {
  margin: 0;
  padding-left: 20px;
}
.benefits-right li { margin-bottom: 12px; font-size: 15px; }

/* Download bar */
.download-bar {
  background: var(--black);
  text-align: center;
  padding: 18px 16px;
}
.download-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

/* CTA */
.cta { padding: 72px 0; }
.cta h2 { font-size: 32px; }
.cta p { max-width: 620px; margin: 0 auto 32px; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 0 0;
}
.back-to-top {
  display: block;
  text-align: center;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 48px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand address {
  font-style: normal;
  margin-top: 16px;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.7;
}
.footer-brand address a { color: var(--white); font-weight: 600; }
.footer-legal { text-align: right; font-size: 14px; }
.footer-legal p { color: #cfcfcf; }
.footer-legal a { display: block; color: var(--orange); margin-top: 6px; }
hr { border: none; border-top: 1px solid #333; margin: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 40px 0 48px;
}
.newsletter h3 { font-size: 22px; }
.newsletter p { color: #cfcfcf; max-width: 320px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.newsletter-form input {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}
.newsletter-form input::placeholder { color: #eee; }
.newsletter-form .btn { border: none; }
.footer-links-title { font-weight: 700; margin-bottom: 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: underline; font-weight: 500; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero { flex-direction: column; }
  .hero-text { clip-path: none; padding: 48px 32px; }
  .hero-image { margin-left: 0; }
  .split-inner, .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .benefits { flex-direction: column; }
  .benefits-left { clip-path: none; margin-right: 0; padding: 32px; }
  .benefits-right { padding: 32px; }
  .footer-legal { text-align: left; }
  .newsletter-form { flex-direction: column; }
}
