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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d2d2d;
  background: #fafaf8;
  -webkit-font-smoothing: antialiased;
}

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

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

/* === Layout === */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  padding: 24px 0;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2d2d2d;
}

.logo span {
  color: #5b7a8c;
  font-weight: 400;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: #4a6d7c;
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(0.88);
}

/* === Chameleon animation === */
.btn--chameleon {
  animation: chameleon 12s ease-in-out infinite;
}

@keyframes chameleon {
  0%   { background: #4a6d7c; }  /* blue-gray  */
  25%  { background: #5c7a6a; }  /* muted sage */
  50%  { background: #6b5c7a; }  /* muted violet */
  75%  { background: #7a6b5c; }  /* muted taupe */
  100% { background: #4a6d7c; }
}

/* === Hero === */
.hero {
  padding: 100px 0 80px;
}

.hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #5e5e5e;
  max-width: 520px;
  margin-bottom: 36px;
}

/* === Section titles === */
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 32px;
}

/* === Features === */
.features {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.feature {
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eaeae6;
}

.feature__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.feature__text {
  font-size: 15px;
  color: #5e5e5e;
  line-height: 1.6;
}

/* === Services === */
.services {
  padding: 80px 0 100px;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.service__num {
  font-size: 13px;
  font-weight: 500;
  color: #8aa0aa;
  flex-shrink: 0;
  padding-top: 4px;
}

.service h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.service p {
  font-size: 15px;
  color: #5e5e5e;
  line-height: 1.6;
}

/* === Contact === */
.contact {
  padding: 80px 0 100px;
  background: #fff;
  border-top: 1px solid #eaeae6;
  border-bottom: 1px solid #eaeae6;
}

.contact__intro {
  font-size: 16px;
  color: #5e5e5e;
  margin-bottom: 36px;
}

/* === Form === */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__field label {
  font-size: 13px;
  font-weight: 500;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form__field input,
.form__field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #dcdcd6;
  border-radius: 6px;
  background: #fafaf8;
  color: #2d2d2d;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: #7a9aaa;
  box-shadow: 0 0 0 3px rgba(74, 109, 124, 0.1);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: #b0b0a8;
}

.form__hint {
  font-size: 13px;
  color: #aaa;
}

.form .btn--primary {
  align-self: flex-start;
}

/* === Footer === */
.footer {
  padding: 24px 0;
  font-size: 13px;
  color: #aaa;
}

/* === Honeypot === */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* === Success / Error states === */
.form__success {
  font-size: 16px;
  color: #3c6e4f;
  padding: 16px;
  background: #eef5f0;
  border-radius: 6px;
  display: none;
}

.form__error {
  font-size: 14px;
  color: #8c4a4a;
  padding: 12px 16px;
  background: #faf0f0;
  border-radius: 6px;
  display: none;
}

/* === Responsive === */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 48px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .services {
    padding: 48px 0 64px;
  }

  .contact {
    padding: 48px 0 64px;
  }
}
