:root {
  --ink: #001f07;
  --forest: #00380f;
  --panel: rgba(0, 35, 10, 0.82);
  --lime: #cfff00;
  --green: #00a61b;
  --mint: #92ff3a;
  --cream: #f4ffd6;
  --line: rgba(207, 255, 0, 0.28);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(207, 255, 0, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 78%, rgba(0, 166, 27, 0.22), transparent 28rem),
    linear-gradient(135deg, #001404 0%, #002d0b 48%, #001705 100%);
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  padding: clamp(18px, 3vw, 34px);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    url("assets/casa-loca-logo.png") center 36% / min(920px, 118vw) auto no-repeat,
    radial-gradient(ellipse at 50% 28%, rgba(207, 255, 0, 0.18) 0 12%, transparent 34%),
    radial-gradient(ellipse at 50% 46%, transparent 0 28%, rgba(207, 255, 0, 0.12) 29%, transparent 31%),
    radial-gradient(ellipse at 50% 46%, transparent 0 42%, rgba(0, 166, 27, 0.22) 43%, transparent 46%);
  opacity: 0.22;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 56, 15, 0.24), rgba(0, 20, 3, 0.72) 58%, rgba(0, 14, 3, 0.94) 100%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(207, 255, 0, 0.035) 18px 20px);
}

.hero__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 72px;
  width: 100%;
}

.brand-bar span,
.eyebrow {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__copy {
  align-self: center;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(48px, 8vh, 86px) 0 clamp(30px, 6vh, 58px);
}

.hero__logo {
  width: clamp(270px, 50vw, 560px);
  margin-bottom: clamp(18px, 3vw, 32px);
  filter:
    drop-shadow(0 0 14px rgba(207, 255, 0, 0.48))
    drop-shadow(0 0 34px rgba(0, 166, 27, 0.42));
}

.eyebrow {
  margin: 0 0 16px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 1080px;
  margin-bottom: 26px;
  color: #f7ffd5;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.35rem, 9.6vw, 8.35rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #006915,
    0 0 26px rgba(207, 255, 0, 0.22);
}

.intro {
  position: relative;
  display: block;
  width: min(100%, 780px);
  min-height: 2.7em;
  margin-bottom: 0;
  color: var(--lime);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.32;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(0, 105, 21, 0.8),
    0 0 14px rgba(207, 255, 0, 0.14);
}

.intro span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  opacity: 0;
  animation: rotateIntroLine 12s infinite;
}

.intro span:nth-child(2) {
  animation-delay: 3s;
}

.intro span:nth-child(3) {
  animation-delay: 6s;
}

.intro span:nth-child(4) {
  animation-delay: 9s;
}

@keyframes rotateIntroLine {
  0%,
  7% {
    opacity: 0;
    transform: translateY(8px);
  }

  12%,
  30% {
    opacity: 1;
    transform: translateY(0);
  }

  36%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.signup {
  width: min(100%, 1040px);
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(16px);
}

.ml-form-embedWrapper,
.ml-form-embedBody,
.ml-block-form,
.ml-form-formContent {
  width: 100%;
}

.ml-form-formContent {
  display: grid;
  gap: 16px;
}

.ml-form-embedBody .ml-block-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(210px, 1.2fr) auto;
  column-gap: 18px;
  row-gap: 18px;
  align-items: end;
}

.ml-form-fieldRow {
  min-width: 0;
}

.signup__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
}

.signup__heading h2 {
  margin-bottom: 0;
  color: var(--lime);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.signup__heading p {
  max-width: 380px;
  margin-bottom: 0;
  color: rgba(244, 255, 214, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ml-field-email {
  padding-top: 4px;
}

.field span {
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field label {
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(207, 255, 0, 0.34);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  background: rgba(0, 20, 3, 0.8);
  outline: none;
}

input[type="hidden"] {
  display: none;
}

input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(207, 255, 0, 0.14);
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  color: #001f07;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(207, 255, 0, 0.36);
  cursor: pointer;
}

.signup__submit {
  min-width: 0;
}

button:hover,
button:focus-visible {
  background: #e4ff4c;
}

.signup__note,
.signup__success {
  margin-bottom: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.signup__note {
  padding-top: 12px;
  color: rgba(244, 255, 214, 0.68);
}

.signup__success {
  color: var(--lime);
}

.signup__success h2 {
  margin-bottom: 8px;
  color: var(--lime);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.signup__success p {
  margin-bottom: 0;
  color: rgba(244, 255, 214, 0.82);
  font-weight: 700;
}

.recruiting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(100%, 1040px);
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(207, 255, 0, 0.34);
  border-radius: 8px;
  background: rgba(0, 24, 6, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.recruiting .eyebrow {
  margin-bottom: 8px;
}

.recruiting h2 {
  margin-bottom: 8px;
  color: var(--lime);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}

.recruiting p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(244, 255, 214, 0.82);
  font-weight: 700;
  line-height: 1.45;
}

.recruiting__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 6px;
  padding: 0 22px;
  color: #001f07;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(207, 255, 0, 0.34);
}

.recruiting__button:hover,
.recruiting__button:focus-visible {
  background: #e4ff4c;
}

.social-link {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.8fr);
  gap: 18px;
  align-items: center;
  width: min(100%, 1040px);
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(146, 255, 58, 0.32);
  border-radius: 8px;
  background: rgba(0, 31, 7, 0.7);
  backdrop-filter: blur(14px);
}

.social-link .eyebrow {
  margin-bottom: 8px;
}

.social-link h2 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}

.social-link p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(244, 255, 214, 0.78);
  font-weight: 700;
  line-height: 1.45;
}

.social-link__grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.social-link__button {
  flex: 0 0 min(220px, 72vw);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(146, 255, 58, 0.38);
  padding: 0 14px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(0, 20, 3, 0.74);
  box-shadow: 0 0 18px rgba(146, 255, 58, 0.16);
  scroll-snap-align: start;
  white-space: nowrap;
}

.social-link__icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #001f07;
  font-size: 0.68rem;
  line-height: 1;
  background: var(--mint);
}

.social-link__button:hover .social-link__icon,
.social-link__button:focus-visible .social-link__icon {
  color: var(--mint);
  background: #001f07;
}

.social-link__button:hover,
.social-link__button:focus-visible {
  color: #001f07;
  background: var(--mint);
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  width: min(100%, 1040px);
  margin-top: 18px;
  padding: 0;
  background: transparent;
}

.perks article {
  min-height: 230px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(207, 255, 0, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 8%, rgba(207, 255, 0, 0.12), transparent 9rem),
    rgba(0, 24, 6, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.perks span {
  color: var(--lime);
  font-weight: 900;
}

.perks h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.perks p {
  max-width: 360px;
  margin-bottom: 0;
  color: rgba(244, 255, 214, 0.76);
  font-weight: 600;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    background-size: min(760px, 150vw) auto, auto, auto, auto;
    background-position: center 20%, center, center, center;
  }

  .hero__content {
    width: 100%;
  }

  .signup,
  .signup__heading,
  .recruiting,
  .social-link {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ml-form-embedBody .ml-block-form {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .ml-form-formContent {
    gap: 22px;
  }

  .ml-field-email {
    padding-top: 6px;
  }

  .social-link__button {
    justify-self: stretch;
  }

  .recruiting__button {
    justify-self: stretch;
  }

  .perks {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 14px;
  }

  .brand-bar {
    align-items: center;
    justify-content: center;
    min-height: 62px;
  }

  .brand-bar span {
    font-size: 0.7rem;
  }

  .hero__copy {
    padding: 24px 0 22px;
  }

  .hero__logo {
    width: min(82vw, 330px);
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(2.55rem, 13.5vw, 3.85rem);
    line-height: 0.96;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .intro {
    width: min(100%, 22rem);
    min-height: 3.6em;
    font-size: 0.98rem;
    line-height: 1.34;
  }

  .signup {
    padding: 15px;
    border-radius: 7px;
  }

  .signup__heading {
    gap: 10px;
  }

  .signup__heading h2,
  .recruiting h2,
  .social-link h2 {
    font-size: 1.35rem;
  }

  .signup__heading p,
  .recruiting p:last-child,
  .social-link p:last-child {
    max-width: none;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  input,
  button,
  .social-link__button {
    min-height: 48px;
  }

  button {
    width: 100%;
    padding: 0 14px;
  }

  .recruiting,
  .social-link {
    gap: 14px;
    padding: 15px;
    text-align: center;
  }

  .recruiting__button,
  .social-link__button {
    width: 100%;
    padding: 0 14px;
  }

  .social-link__grid {
    gap: 9px;
    width: 100%;
  }

  .perks {
    display: flex;
    gap: 12px;
    padding: 16px;
    scroll-padding-inline: 16px;
  }

  .perks article {
    flex: 0 0 min(78vw, 300px);
    min-height: 0;
    min-width: 0;
    padding: 18px;
    scroll-snap-align: start;
  }

  .perks h2 {
    font-size: 1.08rem;
  }

  .perks p {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}
