:root {
  --ink: #102018;
  --ink-soft: #3a5245;
  --leaf: #1a6b4a;
  --leaf-deep: #0f4532;
  --leaf-bright: #2a8f63;
  --sand: #f3f6f4;
  --paper: #fbfcfb;
  --line: #c5d4cb;
  --danger: #a33a3a;
  --ok: #1a6b4a;
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --narrow: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  color: #f7faf8;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(42, 143, 99, 0.35), transparent 60%),
    linear-gradient(160deg, #0d2a1e 0%, #163528 45%, #1a4a35 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero--has-image {
  background-image:
    linear-gradient(180deg, rgba(8, 24, 18, 0.35) 0%, rgba(8, 24, 18, 0.78) 55%, rgba(8, 24, 18, 0.92) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 18, 0.25), transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    );
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 720px);
  margin-inline: auto 0;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
  animation: rise 0.9s ease both;
}

.hero__brand {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8e0cb;
  animation: rise 0.9s ease 0.08s both;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: rise 0.9s ease 0.16s both;
}

.hero__lead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(247, 250, 248, 0.88);
  max-width: 36ch;
  animation: rise 0.9s ease 0.24s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: rise 0.9s ease 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: #e8f5ee;
  color: var(--leaf-deep);
}

.btn--primary:hover {
  background: #fff;
}

.btn--ghost {
  background: transparent;
  color: #f7faf8;
  border-color: rgba(247, 250, 248, 0.35);
}

.btn--ghost:hover {
  border-color: #f7faf8;
  background: rgba(255, 255, 255, 0.06);
}

.btn--block {
  width: 100%;
  background: var(--leaf);
  color: #fff;
  padding: 1rem;
  font-size: 1.05rem;
}

.btn--block:hover {
  background: var(--leaf-deep);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--manifesto {
  background: var(--paper);
}

.section--sign {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, #d9ebe1, transparent 55%),
    var(--sand);
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section__sub {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.manifesto {
  font-size: 1.08rem;
  color: var(--ink-soft);
  white-space: normal;
}

.manifesto p,
.manifesto {
  line-height: 1.7;
}

/* Counter + form */
.counter {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.counter__label {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.counter__label strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--leaf-deep);
}

.progress {
  height: 8px;
  background: #d5e3db;
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf-deep), var(--leaf-bright));
  transition: width 0.6s ease;
}

.counter__meta {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.sign-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.88rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.15);
}

.form-msg {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

.form-msg.is-error {
  background: #fdecec;
  color: var(--danger);
}

.form-msg.is-ok {
  background: #e6f4ec;
  color: var(--ok);
}

.thanks {
  text-align: center;
  padding: 2rem 0 1rem;
  animation: rise 0.55s ease both;
}

.thanks h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--leaf-deep);
}

.thanks p {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .hero__content {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
