/* ============================================
   ALARA — Foundation styles
   ============================================ */

/* Reset: strip browser defaults so we control everything */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #070707;          /* near-black canvas */
  --silver: #c8ccd4;      /* divider + point */
  --text: #e9eaec;        /* tagline */
  --wordmark: #f4f5f7;    /* fallback logo color before clouds */
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Inter", "Geist", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* no scroll — single cinematic screen */
}

/* ---- Hero layout ---- */
.hero {
  height: 100vh;
  width: 100%;
  display: grid;
  /* three zones: brand | divider | tagline */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 0 clamp(2rem, 6vw, 7rem);
}

/* ---- Left: the wordmark ---- */
.hero__brand {
  display: flex;
  justify-content: flex-end;
}

/* ---- Left: the cloud-masked wordmark ---- */

.wordmark-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wordmark {
  position: relative;
  width: clamp(20rem, 56vw, 73rem);
  aspect-ratio: 900 / 320;
  user-select: none;

  /* An SVG copy of the text acts as the mask for the whole box */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 320'><text x='468' y='235' text-anchor='middle' font-family='Helvetica Neue, Inter, Arial, sans-serif' font-weight='700' font-size='300' letter-spacing='-8' fill='white'>Alara</text></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 320'><text x='468' y='235' text-anchor='middle' font-family='Helvetica Neue, Inter, Arial, sans-serif' font-weight='700' font-size='300' letter-spacing='-8' fill='white'>Alara</text></svg>");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.wordmark__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35) translate(-4%, 4%);
  animation: cloudDrift 60s ease-in-out infinite alternate;
}

/* The inline SVG is now only a fallback; hide it visually */
.wordmark__svg {
  display: none;
}

@keyframes cloudDrift {
  from { transform: scale(1.35) translate(-4%, 4%); }
  to   { transform: scale(1.35) translate(4%, -4%); }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark__video { animation: none; }
}

/* ---- Center: divider + illuminated point ---- */
.divider {
  position: relative;
  width: 1px;
  height: 55vh;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(200, 204, 212, 0.35) 20%,
    rgba(200, 204, 212, 0.35) 80%,
    transparent
  );
}

.divider__point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.7);
}

/* ---- Right: the tagline ---- */
.hero__tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.tagline {
  font-size: clamp(0.7rem, 1vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  margin-bottom: 2.25rem;
}

/* ---- Waitlist ---- */
.waitlist {
  margin-top: 0;
  max-width: 22rem;

  /* Hidden until revealed; fades in gently */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  pointer-events: none;
}

.waitlist.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.waitlist__label {
  display: block;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.6rem;
}

/* The field: no box, just a thin underline — part of the typography */
.waitlist__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(200, 204, 212, 0.25);
  padding-bottom: 0.6rem;
  transition: border-color 0.4s ease;
}

.waitlist__field:focus-within {
  border-color: rgba(200, 204, 212, 0.7);
}

.waitlist__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.02em;
}

.waitlist__input::placeholder {
  color: rgba(233, 234, 236, 0.35);
  letter-spacing: 0.05em;
}

.waitlist__submit {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.waitlist__submit:hover {
  opacity: 1;
  transform: translateX(3px);
}

.waitlist__message {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(233, 234, 236, 0.6);
  min-height: 1.2em;
}
/* ============================================
   RESPONSIVE — Tablet & Mobile
   ============================================ */

/* ---- Tablet (portrait) and below ---- */
@media (max-width: 900px) {
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
    text-align: center;
    gap: clamp(2rem, 5vh, 3.5rem);
    padding: clamp(3rem, 8vw, 5rem) 2rem;
  }

  .hero__brand {
    justify-content: center;
  }

  .wordmark {
    width: min(80vw, 34rem);
    
  }

  /* Divider becomes a short horizontal line under the wordmark */
  .divider {
    width: 40vw;
    max-width: 14rem;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(200, 204, 212, 0.35) 20%,
      rgba(200, 204, 212, 0.35) 80%,
      transparent
    );
  }

  .hero__tagline {
    align-items: center;
    text-align: center;
  }

  .tagline {
    margin-bottom: 2rem;
  }

  .waitlist {
    max-width: 20rem;
    margin-inline: auto;
  }

  .waitlist__label {
    text-align: center;
  }
}

/* ---- Mobile (phones) ---- */
@media (max-width: 520px) {
  body {
    overflow-y: hidden;
  }

  .hero {
    min-height: 100vh;
    height: 100vh;
    padding: clamp(2rem, 5vh, 3rem) 1.5rem;
    gap: clamp(1.5rem, 3.5vh, 2.5rem);
  }

  .wordmark {
    width: min(90vw, 26rem);
    
  }

  .tagline {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
  }

  .waitlist__label {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
  }
  .waitlist__input {
    font-size: 16px;
  }
}