/* ============================================================
   onOctave Landing Page — styles.css
   ============================================================ */

/* ----- Reset / Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #05080f;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Background — fixed pseudo-element so it can animate
   independently of the page content
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('2560px Assets/01-Bkg-2560.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% center;

  /* 1. Reveal: fades in + zooms out from slightly larger */
  /* 2. Pan:    after reveal, drifts gently left ↔ right forever */
  animation:
    bgReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) both,
    bgPan    22s  ease-in-out 2.8s infinite;
}

/* ============================================================
   Keyframes
   ============================================================ */

@keyframes bgReveal {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.0);
  }
}

@keyframes bgPan {
  0%   { background-position: 47% center; }
  50%  { background-position: 53% center; }
  100% { background-position: 47% center; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Page layout
   ============================================================ */

.page-wrapper {
  position: relative;
}

/* ----- Header ----- */
.site-header {
  padding: 2.2rem 2.6rem;
}

.site-logo {
  height: 22px;
  width: auto;
  display: block;
  animation: fadeIn 0.9s ease-out 0.8s both;
}

/* ----- Hero ----- */
.hero {
  padding-top: 7vh;
}

.hero-content {
  width: 100%;
  max-width: 480px;
  padding: 0 1.5rem;
}

/* ----- Welcome Heading (SVG asset) ----- */
/*
  The SVG is 420×78. "Welcome to onOctave" occupies only the top ~26px.
  aspect-ratio: 420/26 on the wrapper + overflow:hidden clips everything below.
*/
.welcome-svg-wrap {
  width: clamp(240px, 34vw, 420px);
  aspect-ratio: 420 / 26;
  overflow: hidden;
  margin: 0 auto 1.6rem;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

.welcome-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Waitlist Form ----- */
.waitlist-form {
  display: inline-block;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.7s both;
}

.form-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 0.4rem;
  gap: 1.8rem;
}

.email-input {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: 180px;
  padding: 0.2rem 0;
  caret-color: rgba(255, 255, 255, 0.6);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.email-input:focus {
  color: rgba(255, 255, 255, 0.8);
}

.join-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.80);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  white-space: nowrap;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.join-btn:hover,
.join-btn:focus-visible {
  color: #ffffff;
}

/* ----- Success Message ----- */
.success-msg {
  margin-top: 1.2rem;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  min-height: 1.2em;
}

/* ----- Footer ----- */
.site-footer {
  padding: 1.6rem 1rem 2rem;
  animation: fadeIn 1s ease-out 2.1s both;
}

.footer-logo {
  height: 9px;
  width: auto;
  opacity: 0.75;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 575.98px) {
  .site-header {
    padding: 1.5rem 1.5rem;
  }

  .site-logo {
    height: 18px;
  }

  .hero {
    padding-top: 5vh;
  }

  .hero-content {
    max-width: 340px;
  }

  .welcome-title {
    font-size: clamp(0.95rem, 5vw, 1.1rem);
    margin-bottom: 1.4rem;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    border-bottom: none;
  }

  .email-input {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 0.4rem;
  }

  .join-btn {
    padding-bottom: 0.2rem;
  }

  .footer-logo {
    height: 7px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .email-input {
    width: 160px;
  }
}

@media (min-width: 1920px) {
  .site-logo {
    height: 26px;
  }

  .welcome-title {
    font-size: 1.6rem;
  }

  .email-input,
  .join-btn {
    font-size: 0.65rem;
  }

  .footer-logo {
    height: 11px;
  }
}
