/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0e4934;
  color: #ffffff;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

/* ---------- Background treatment ---------- */
.field-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 600px at 18% -5%, rgba(242, 201, 76, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 2px,
      transparent 2px,
      transparent 90px
    ),
    linear-gradient(160deg, #125740 0%, #0e4934 55%, #0a3a29 100%);
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 2rem 4.5rem;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #f2c94c;
  border: 1.5px solid rgba(242, 201, 76, 0.5);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.05s forwards;
}

.site-name {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 55%, #d9d9d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.site-name-underline {
  width: 84px;
  height: 4px;
  border-radius: 4px;
  margin: 1.1rem 0 1.4rem;
  background: linear-gradient(90deg, #f2c94c, #fff3cf);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.25s forwards, widen 0.7s ease 0.25s forwards;
}

.tagline {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.03em;
  color: #ffffff;
  opacity: 0;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.32s forwards;
}

/* ---------- Call to action buttons ---------- */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.42s forwards;
}

.cta-button {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  padding: 0.95rem 2.4rem;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-primary {
  background: linear-gradient(180deg, #f6d675, #f2c94c);
  color: #0e4934;
  box-shadow: 0 10px 24px rgba(242, 201, 76, 0.22);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(242, 201, 76, 0.32);
}

.cta-patreon {
  background-color: transparent;
  color: #f2c94c;
  border-color: rgba(242, 201, 76, 0.6);
}

.cta-patreon:hover {
  background-color: #f2c94c;
  color: #0e4934;
  border-color: #f2c94c;
  transform: translateY(-2px);
}

.cta-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
  background-color: #ffffff;
  color: #125740;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

.hero-subnote {
  margin-top: 1.5rem;
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0;
  color: rgba(255, 255, 255, 0.55);
  animation: fadeUp 0.6s ease 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes widen {
  from {
    width: 0;
  }
  to {
    width: 84px;
  }
}

/* ---------- Features ---------- */
.features {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem 4.5rem;
}

.features-heading {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
  margin-bottom: 2rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.feature-grid .feature-card {
  flex: 1 1 220px;
  max-width: 270px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 201, 76, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(242, 201, 76, 0.14);
  color: #f2c94c;
}

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

.feature-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #f2c94c;
  border: 1.5px solid rgba(242, 201, 76, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-top: -0.2rem;
}

.feature-title {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.feature-desc {
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  opacity: 0.65;
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  padding: 2rem 2rem 2.25rem;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.footer-social-link:hover {
  background: #f2c94c;
  border-color: #f2c94c;
  color: #0e4934;
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 16px;
  height: 16px;
}

.site-footer p {
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  opacity: 0.55;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Password gate modal ---------- */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 19, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.gate-overlay[hidden] {
  display: none;
}

.gate-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #0e4934;
  border: 2px solid rgba(242, 201, 76, 0.3);
  border-radius: 14px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.gate-modal.gate-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

.gate-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s ease;
}

.gate-close:hover {
  color: #ffffff;
}

.gate-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #f2c94c;
  border: 1.5px solid rgba(242, 201, 76, 0.5);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.gate-title {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.gate-copy {
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gate-input {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.06em;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gate-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.gate-input:focus {
  outline: none;
  border-color: #f2c94c;
  background: rgba(255, 255, 255, 0.1);
}

.gate-error {
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.78rem;
  color: #ff9d8d;
  margin-top: -0.4rem;
}

.gate-submit {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #f6d675, #f2c94c);
  color: #0e4934;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(242, 201, 76, 0.3);
}

.gate-submit:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .hero {
    padding: 5rem 1.5rem 3.5rem;
  }

  .features {
    padding: 0.5rem 1.5rem 3.5rem;
  }

  .gate-modal {
    padding: 2rem 1.5rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .site-name,
  .site-name-underline,
  .tagline,
  .cta-group,
  .hero-subnote {
    animation: none;
    opacity: 1;
  }

  .site-name-underline {
    width: 84px;
  }
}
