/* ---------------------------------------------
   Aether Acoustics — landing (rascunho v1)
--------------------------------------------- */

:root {
  --cream: #f3ede1;
  --cream-dim: rgba(243, 237, 225, 0.62);
  --cream-faint: rgba(243, 237, 225, 0.38);
  --line: rgba(243, 237, 225, 0.32);
  --line-strong: rgba(243, 237, 225, 0.85);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0b0a08;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- background scene ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.scene__image {
  position: absolute;
  inset: -4%;
  background-image: url("assets/ambiente@2x.jpg");
  background-size: cover;
  background-position: 62% 42%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transform-origin: 62% 42%;
  animation: breathe 36s var(--ease) infinite alternate;
  will-change: transform, translate;
}

@keyframes breathe {
  from { transform: scale(1.06); }
  to   { transform: scale(1.12); }
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,5,4,0.58) 0%, rgba(6,5,4,0.22) 18%, rgba(6,5,4,0.07) 34%, rgba(6,5,4,0.06) 55%, rgba(6,5,4,0.62) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 45%, rgba(4,3,2,0.35) 100%);
  pointer-events: none;
}

.scene__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

/* ---------- content layout ---------- */

.content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 6vh, 64px) clamp(20px, 6vw, 48px);
  text-align: center;
}

/* ---------- wordmark ---------- */

.mark {
  position: relative;
  opacity: 0;
  transform: translateY(-10px);
  animation: reveal 1.3s var(--ease) 0.15s forwards;
}

/* soft scrim behind the wordmark only — guarantees legibility no matter
   what's directly behind it in the photo (e.g. the horn's light/dark
   cells), without reading as a hard box */
.mark::before {
  content: "";
  position: absolute;
  inset: -14px -32px;
  background: radial-gradient(
    60% 100% at 50% 40%,
    rgba(5, 4, 3, 0.5) 0%,
    rgba(5, 4, 3, 0.22) 55%,
    rgba(5, 4, 3, 0) 80%
  );
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

.mark__word {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mark__tag {
  margin: 0.55em 0 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(9.5px, 1.05vw, 11.5px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ---------- newsletter ---------- */

.notify {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  text-align: right;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 1.3s var(--ease) 0.45s forwards;
}

.notify__label {
  margin: 0 0 18px;
  font-size: clamp(10px, 1.05vw, 11.5px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.notify__form {
  width: 100%;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify__field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  transition: border-color 0.5s var(--ease);
}

.notify__field:focus-within {
  border-color: var(--line-strong);
}

.notify__field input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-align: right;
  padding: 2px 0;
}

.notify__field input::placeholder {
  color: var(--cream-faint);
  font-weight: 300;
}

.notify__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  transform: translateY(7px);
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    color 0.45s var(--ease),
    transform 0.45s var(--ease);
}

.notify__submit:hover,
.notify__submit:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: #0b0a08;
  transform: translateY(7px) scale(1.05);
}

.notify__submit svg { display: block; width: 13px; height: 6px; }

.notify__success {
  display: none;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cream-dim);
  padding-top: 4px;
}

.notify.is-sent .notify__form { display: none; }
.notify.is-sent .notify__success { display: block; animation: reveal 0.9s var(--ease) forwards; }

/* ---------- motion helpers ---------- */

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

@media (prefers-reduced-motion: reduce) {
  .scene__image { animation: none; }
  .mark, .notify { animation: none; opacity: 1; transform: none; }
}

/* ---------- portrait / phones & small tablets ----------
   Full-bleed image, as on desktop — just a lighter file, a tighter
   crop centered on the product (a landscape photo covering a tall
   narrow screen only ever shows a ~26% vertical sliver, so the
   framing is chosen to keep the whole speaker in that sliver rather
   than an arbitrary close-up), and no extra zoom overscan beyond
   what "cover" already needs — mobile has no cursor parallax to
   leave headroom for, so every extra % was cropping for nothing. */

@media (orientation: portrait) and (max-width: 900px) {
  .scene__image {
    inset: 0;
    background-image: url("assets/ambiente_mobile.jpg");
    background-position: 65% 42%;
    transform: scale(1);
    animation: breathe-soft 30s var(--ease) infinite alternate;
  }

  .notify {
    max-width: 260px;
  }

  /* >=16px keeps iOS Safari from auto-zooming the page on focus */
  .notify__field input {
    font-size: 16px;
  }

  /* comfortable touch target */
  .notify__submit {
    width: 40px;
    height: 40px;
    transform: translateY(9px);
  }

  .notify__submit:hover,
  .notify__submit:focus-visible {
    transform: translateY(9px) scale(1.05);
  }
}

@keyframes breathe-soft {
  from { transform: scale(1); }
  to   { transform: scale(1.035); }
}

@media (max-width: 340px) {
  .notify { max-width: 220px; }
}

/* ---------- ultra-wide monitors ----------
   cover crops hard from the top at very wide aspect ratios,
   pushing the horn right up against the viewport edge. Nudge
   the vertical anchor up a bit to restore breathing room. */
@media (min-aspect-ratio: 2/1) {
  .scene__image { background-position: 62% 28%; }
}
