:root {
  --bg: #050507;
  --bg-elevated: rgba(14, 15, 24, 0.72);
  --panel: rgba(18, 20, 32, 0.55);
  --panel-strong: rgba(24, 27, 43, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(199, 166, 255, 0.35);
  --text: #f7f5fb;
  --muted: rgba(238, 234, 248, 0.72);
  --muted-soft: rgba(238, 234, 248, 0.48);
  --violet: #8e59ff;
  --violet-bright: #b590ff;
  --violet-shadow: rgba(142, 89, 255, 0.28);
  --success: #8ff0bb;
  --error: #ff8b9f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --display: "Archivo", sans-serif;
  --body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(108, 47, 210, 0.12), transparent 36%),
    linear-gradient(180deg, #08090f 0%, #050507 100%);
  color: var(--text);
  font-family: var(--body);
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(202, 175, 255, 0.95);
  outline-offset: 3px;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene__photo,
.scene__veil,
.scene__noise,
.scene__glow,
.scene__grid {
  position: absolute;
  inset: 0;
}

.scene__photo {
  background:
    linear-gradient(180deg, rgba(9, 3, 4, 0.14), rgba(6, 3, 5, 0.46)),
    url("../images/ezgif.com-crop.gif") center center / cover no-repeat;
  filter: grayscale(1) sepia(0.22) saturate(0.82) hue-rotate(-10deg) contrast(1.14) brightness(0.58);
  transform: scale(1.18);
  opacity: 0.64;
}

.scene__veil {
  background:
    radial-gradient(circle at 50% 35%, rgba(152, 26, 36, 0.12), transparent 34%),
    radial-gradient(circle at 55% 78%, rgba(70, 10, 14, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(16, 4, 5, 0.18), rgba(5, 2, 4, 0.48));
}

.scene__noise {
  opacity: 0.46;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, rgba(255, 248, 248, 0.34) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 80% 30%, rgba(255, 116, 116, 0.18) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 2px, transparent 2px 5px);
  background-size: 180px 180px, 220px 220px, 4px 4px, 5px 5px;
  animation: grainShift 0.24s steps(2) infinite;
}

.scene__glow {
  filter: blur(18px);
  animation: pulse 10s ease-in-out infinite;
}

.scene__glow--left {
  inset: auto auto -12% -18%;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 16, 32, 0.22), transparent 66%);
}

.scene__glow--right {
  inset: -18% -12% auto auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 22, 36, 0.14), transparent 68%);
  animation-delay: -4s;
}

.scene__grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 18%, black 55%, transparent 100%);
}

.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 24px;
}

.hero {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.35rem;
  animation: reveal 1s ease-out both;
}

.hero__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--muted-soft);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 19vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  text-shadow:
    0 0 26px rgba(183, 142, 255, 0.18),
    0 0 80px rgba(132, 79, 235, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.button {
  min-width: 11.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #09070d;
  background: linear-gradient(135deg, #ffffff 0%, #ece9f2 100%);
  box-shadow:
    0 12px 32px rgba(255, 255, 255, 0.14),
    0 0 30px rgba(255, 255, 255, 0.1);
}

.button--primary:hover {
  box-shadow:
    0 16px 44px rgba(255, 255, 255, 0.18),
    0 0 38px rgba(255, 255, 255, 0.14);
}

.button--secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button--secondary:hover {
  border-color: rgba(198, 166, 255, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  width: min(100%, 34rem);
  margin-top: 0.15rem;
}

.platform {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(14, 16, 25, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.platform i {
  font-size: 1.1rem;
}

.platform:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(142, 89, 255, 0.18);
}

.signup {
  width: min(100%, 40rem);
  margin-top: 0.35rem;
}

.signup__honeypot,
.signup__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.signup__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.signup__shell:focus-within {
  border-color: rgba(200, 168, 255, 0.42);
  box-shadow:
    var(--shadow),
    0 0 0 5px rgba(142, 89, 255, 0.12);
}

.signup__input {
  width: 100%;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.signup__input::placeholder {
  color: rgba(247, 245, 251, 0.4);
}

.signup__button {
  border: 0;
  border-radius: 999px;
  padding: 0.98rem 1.45rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 229, 239, 0.94));
  color: #09070d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.signup__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.signup__button:disabled {
  opacity: 0.68;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.signup__message {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.signup__message.is-success {
  color: var(--success);
}

.signup__message.is-error {
  color: var(--error);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p,
.footer a {
  margin: 0;
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

.logic-templates {
  width: min(100%, 980px);
  margin: 3rem auto 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
}

.logic-templates__eyebrow,
.logic-templates__title {
  margin: 0;
}

.logic-templates__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.logic-templates__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.logic-templates__link {
  margin-top: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.logic-templates__link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 1;
  }

  50% {
    transform: scale(1.04) translate3d(0, -1%, 0);
    opacity: 0.82;
  }
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-1.5%, 1%);
  }

  50% {
    transform: translate(1%, -1%);
  }

  75% {
    transform: translate(-1%, -0.5%);
  }

  100% {
    transform: translate(0.8%, 1.2%);
  }
}

@media (max-width: 760px) {
  .landing {
    padding-top: 24px;
  }

  .hero {
    gap: 1.15rem;
  }

  .hero__actions {
    width: 100%;
  }

  .button {
    width: min(100%, 19rem);
  }

  .hero__title {
    font-size: clamp(4rem, 21vw, 7rem);
    letter-spacing: 0.14em;
    text-indent: 0.14em;
  }

  .signup__shell {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 1.45rem;
  }

  .signup__button,
  .signup__input {
    border-radius: 1rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .landing {
    padding-inline: 16px;
    padding-bottom: 20px;
  }

  .hero__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.32em;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .platform {
    width: 3.2rem;
    height: 3.2rem;
  }

  .signup__input {
    padding: 0.9rem 1rem;
  }

  .signup__button {
    width: 100%;
  }
}
