@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --color-bg: #0c0d12;
  --color-surface: #0f1019;
  --color-accent: #7c6fff;
  --color-accent-hover: #6b5cff;
  --color-text: #eeecea;
  --color-muted: rgba(238, 236, 234, 0.4);
  --font-jakarta: "Plus Jakarta Sans";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* Brand */
.brand {
  position: relative;
  z-index: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  animation: rise-in 0.6s ease both;
}

.brand {
  gap: 0.75rem;
}

.brand .mark {
  width: 60px;
  height: 60px;
}

.brand .wordmark {
  font-size: 2.15rem;
  letter-spacing: -0.02em;
}

.brand .wordmark b {
  font-weight: 800;
}

.brand .wordmark span {
  font-weight: 500;
  color: rgba(238, 236, 234, 0.7);
}

/* Hero visual */
.visual {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: rise-in 0.9s ease both;
}

.flowlines {
  width: 100%;
  height: auto;
  display: block;
}

/* Copy */
.copy {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 460px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  color: var(--color-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  animation: rise-in 0.7s ease both;
  animation-delay: 0.1s;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: pulse 2s infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  animation: rise-in 0.7s ease both;
  animation-delay: 0.2s;
}

h1 .accent {
  color: var(--color-accent);
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.55;
  color: rgba(238, 236, 234, 0.62);
  animation: rise-in 0.7s ease both;
  animation-delay: 0.3s;
}

/* Form */
.signup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  margin: 1.5rem auto 0;
  text-align: center;
  animation: rise-in 0.7s ease both;
  animation-delay: 0.4s;
}

.waitlist {
  margin: 0 auto;
  display: flex;
  gap: 0.55rem;
  max-width: 420px;
  animation: rise-in 0.7s ease both;
  animation-delay: 0.4s;
}

.waitlist input,
.waitlist button {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  padding: 0.82rem 1.1rem;
  font-family: inherit;
}

.waitlist input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-text);
}

.waitlist input::placeholder {
  color: rgba(238, 236, 234, 0.4);
}

.waitlist button {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.waitlist button:hover {
  transform: translateY(-1px);
  background: var(--color-accent-hover);
  box-shadow: 0 0 24px rgba(124, 111, 255, 0.4);
}

.waitlist input:focus,
.waitlist button:focus {
  outline: none;
  border-color: rgba(124, 111, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(124, 111, 255, 0.25);
}

.waitlist input.invalid {
  border-color: rgba(255, 120, 120, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.18);
}

.form-msg {
  margin: 0.7rem 0 0;
  min-height: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-msg.error {
  color: #ff9b9b;
}

.form-msg.success {
  color: #9ff0c4;
  font-weight: 600;
}

.micro {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: rgba(238, 236, 234, 0.4);
  animation: rise-in 0.7s ease both;
  animation-delay: 0.5s;
}

/* ============ FlowLines: motion ============ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fl-flow {
    to {
      stroke-dashoffset: -200;
    }
  }
  .fl-flow-slow {
    stroke-dasharray: 3 18;
    animation: fl-flow 8s linear infinite;
  }
  .fl-flow-med {
    stroke-dasharray: 4 22;
    animation: fl-flow 5.5s linear infinite;
  }
  .fl-flow-fast {
    stroke-dasharray: 2 26;
    animation: fl-flow 3.5s linear infinite;
  }
  .fl-delay-1 { animation-delay: -0.7s; }
  .fl-delay-2 { animation-delay: -1.6s; }
  .fl-delay-3 { animation-delay: -2.4s; }
  .fl-delay-4 { animation-delay: -3.1s; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 111, 255, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(124, 111, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 111, 255, 0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet y mobile: stack centrado con espaciado parejo */
@media (max-width: 860px) {
  .shell {
    justify-content: center;
    gap: 2.25rem;
    padding: 1.75rem clamp(1.25rem, 5vw, 3rem);
  }
  .hero {
    flex: 0 1 auto;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .visual {
    max-width: 440px;
    margin: 0 auto;
  }
  .copy {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .signup {
    margin-top: 0;
  }
  .waitlist {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Celulares */
@media (max-width: 600px) {
  .shell {
    gap: 1.75rem;
  }
  .brand .mark {
    width: 50px;
    height: 50px;
  }
  .brand .wordmark {
    font-size: 1.8rem;
  }
  .visual {
    max-width: 360px;
  }
}

/* Celulares angostos */
@media (max-width: 440px) {
  .waitlist {
    flex-direction: column;
  }
  .visual {
    max-width: 300px;
  }
}
