:root {
  --bg: #0a0d12;
  --panel: #262d39;
  --border: #2a333f;
  --text: #e7ecf2;
  --muted: #aab4c0;
  --muted-2: #6f7b88;
  --green: #6cc24a;
  --green-bright: #82d85f;
  --green-dark: #4f9a34;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 28px 0 72px;
  display: flex;
}

.hero__bg { position: absolute; inset: 0; background: var(--bg); }
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 14%, #0a0d12e0 32%, #0a0d1255 52%, transparent 72%),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  align-self: stretch;
  padding: 0 28px 0 clamp(24px, 5vw, 80px);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.brand__logo { width: 42px; height: 42px; display: block; filter: drop-shadow(0 3px 6px #0007); }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: .2px; }

.hero__content { max-width: 540px; }

.hero__title {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.18;
  margin: 0 0 26px;
  letter-spacing: 1px;
}
.hero__title-white, .hero__title-green { display: block; }
.hero__title-white { color: #fff; text-shadow: 4px 4px 0 #00000055; }
.hero__title-green { color: var(--green-bright); text-shadow: 4px 4px 0 #00000055; }

.hero__subtitle { color: var(--muted); font-size: 19px; margin: 0 0 26px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff08;
  color: var(--green-bright);
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 34px;
}
.badge__icon { font-size: 16px; }

/* ============ SIGNUP — Minecraft GUI panel ============ */
.signup {
  position: relative;
  background: var(--panel);
  border: 3px solid #0b0e13;
  border-radius: 4px;
  padding: 30px 28px 28px;
  max-width: 470px;
  box-shadow:
    inset 3px 3px 0 #3b4654,
    inset -3px -3px 0 #161b24,
    0 26px 55px -20px #000000cc;
  transform-origin: center;
  transition: transform .42s cubic-bezier(.36, -0.2, .3, 1), opacity .34s ease;
}
/* "Poof" — box shrinks away as it bursts into potions */
.signup.is-closing {
  transform: scale(.34) rotate(-2deg);
  opacity: 0;
  pointer-events: none;
}
.signup::before,
.signup-success::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px;
  height: 6px;
  background: var(--green);
  box-shadow: inset 0 2px 0 #8fe06a, inset 0 -2px 0 #3c7a3c;
}

/* ============ SIGNUP SUCCESS ============ */
.signup-success {
  position: relative;
  max-width: 470px;
  background: var(--panel);
  border: 3px solid #0b0e13;
  border-radius: 4px;
  padding: 36px 28px 32px;
  text-align: center;
  box-shadow:
    inset 3px 3px 0 #3b4654,
    inset -3px -3px 0 #161b24,
    0 26px 55px -20px #000000cc;
}
.signup-success[hidden] { display: none; }
.signup-success.is-shown { animation: successPop .5s cubic-bezier(.2, .8, .25, 1.35) both; }
.signup-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: #14210f;
  border: 2px solid #3f6a33;
  border-radius: 3px;
  color: var(--green-bright);
  font-size: 32px;
  font-weight: 700;
  box-shadow: inset 2px 2px 0 #2a4a1e, inset -2px -2px 0 #0c1607;
}
.signup-success.is-shown .signup-success__icon { animation: iconPop .55s .12s cubic-bezier(.2, .8, .25, 1.6) both; }
.signup-success__title { font-size: 23px; margin: 0 0 8px; font-weight: 700; }
.signup-success__text { color: var(--muted); font-size: 15px; margin: 0; }

@keyframes successPop {
  0%   { transform: scale(.72); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes iconPop {
  0%   { transform: scale(0) rotate(-30deg); }
  70%  { transform: scale(1.18) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .signup { transition: opacity .2s ease; }
  .signup.is-closing { transform: none; }
  .signup-success.is-shown,
  .signup-success.is-shown .signup-success__icon { animation: none; }
}
.signup__title { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.signup__sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.signup__form { display: flex; flex-direction: column; gap: 14px; }

.signup__field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #11151c;
  border: 2px solid #05070a;
  border-radius: 3px;
  padding: 0 14px;
  box-shadow: inset 2px 2px 0 #00000080, inset -1px -1px 0 #2a3340;
  transition: box-shadow .15s ease;
}
.signup__field:focus-within {
  box-shadow: inset 2px 2px 0 #00000080, 0 0 0 2px var(--green);
}
.signup__field-icon { color: var(--muted-2); font-size: 16px; }
.signup__field input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 16px;
  padding: 14px 0;
  font-family: inherit;
}
.signup__field input::placeholder { color: var(--muted-2); }

.btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .8px;
}
.btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  margin-top: 2px;
  color: #0c1a0c;
  background: var(--green);
  border: 2px solid #1d3a1d;
  border-radius: 3px;
  box-shadow:
    inset 2px 2px 0 #8fe06a,
    inset -2px -2px 0 #3c7a3c,
    0 5px 0 #2f5e2f;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.btn--primary:hover { background: var(--green-bright); }
.btn--primary:active {
  transform: translateY(4px);
  box-shadow: inset 2px 2px 0 #8fe06a, inset -2px -2px 0 #3c7a3c, 0 1px 0 #2f5e2f;
}
.btn__arrow { font-size: 18px; }

.signup__note { color: var(--muted-2); font-size: 13.5px; margin: 16px 0 0; }
.signup__note.is-success { color: var(--green-bright); }

/* Hidden host for the real MailerLite form — rendered (not display:none) so its
   script initializes, but kept off-screen and out of the layout/tab order. */
.ml-host {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  background: #0b0e13;
  text-align: center;
  padding: 40px 28px 48px;
}
.footer__logo { width: 34px; height: 34px; margin-bottom: 16px; filter: drop-shadow(0 2px 5px #0007); }
.footer__made { font-weight: 600; margin: 0 0 4px; }
.footer__copy { color: var(--muted-2); margin: 0 0 20px; font-size: 14px; }
.footer__social { display: flex; gap: 22px; justify-content: center; font-size: 18px; }
.footer__social a { color: var(--muted); transition: color .15s ease, transform .15s ease; }
.footer__social a:hover { color: var(--green-bright); transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 560px) {
  .hero__inner { padding: 0 18px; }
  .signup { padding: 22px; }
  .brand { margin-bottom: 36px; }
  .hero__subtitle { font-size: 17px; }
}
