:root {
  color-scheme: dark;
  --blue: #06192b;
  --blue-soft: #0b2e4f;
  --green: #0fcf82;
  --green-dark: #08724d;
  --gold: #d7b76b;
  --ivory: #f6f4ec;
  --muted: rgba(246, 244, 236, 0.72);
  --line: rgba(246, 244, 236, 0.22);
  --danger: #ffb39f;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: var(--blue);
  color: var(--ivory);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(22px, env(safe-area-inset-top)) clamp(20px, 4vw, 68px) max(18px, env(safe-area-inset-bottom));
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  background: var(--blue) url("assets/revomusic-hero.webp") center / cover no-repeat;
  transform: scale(1.015);
  animation: breathe 14s ease-in-out infinite alternate;
}

.hero__veil {
  z-index: -1;
  background: rgba(3, 15, 27, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  width: fit-content;
}

.brand__mark {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 24px;
  height: 24px;
}

.brand__mark i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
  animation: equalize 1.5s ease-in-out infinite alternate;
}

.brand__mark i:nth-child(1) { height: 38%; animation-delay: -0.4s; }
.brand__mark i:nth-child(2) { height: 84%; animation-delay: -0.9s; }
.brand__mark i:nth-child(3) { height: 56%; animation-delay: -0.2s; }
.brand__mark i:nth-child(4) { height: 100%; animation-delay: -0.7s; }

.brand__name { font-size: 18px; font-weight: 760; }
.brand__by { color: var(--muted); font-size: 11px; text-transform: uppercase; }

.hero__content {
  align-self: center;
  width: min(760px, 100%);
  margin: clamp(36px, 8vh, 88px) auto 24px;
  text-align: center;
}

.chapter,
.signup__eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.launch-line {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 94px));
  justify-content: center;
  gap: 0;
  margin: clamp(30px, 5vh, 52px) auto;
}

.countdown > div {
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.countdown > div:last-child { border-right: 0; }

.countdown strong,
.countdown span { display: block; }

.countdown strong {
  min-height: 42px;
  font-size: clamp(26px, 4vw, 42px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.signup {
  width: min(650px, 100%);
  margin: 0 auto;
}

.signup__intro p:last-child {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.55;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(5, 22, 38, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-row:focus-within { border-color: var(--green); }

.form-row input {
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory);
  padding: 0 16px;
}

.form-row input::placeholder { color: rgba(246, 244, 236, 0.58); }

.form-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  border: 0;
  border-radius: 3px;
  padding: 0 21px;
  background: var(--green);
  color: #031b12;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.form-row button:hover { background: #4de9aa; }
.form-row button:active { transform: scale(0.98); }
.form-row button:disabled { cursor: wait; opacity: 0.72; }
.button-arrow { font-size: 18px; line-height: 1; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: min(600px, 100%);
  margin: 12px auto 0;
  color: rgba(246, 244, 236, 0.66);
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

.consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
.consent a { color: var(--ivory); text-underline-offset: 2px; }

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 610px;
  margin: 4px auto 0;
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: rgba(5, 22, 38, 0.76);
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.success[hidden] { display: none; }
.success__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 7px rgba(15, 207, 130, 0.14); }
.success strong { font-size: 18px; }
.success p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(246, 244, 236, 0.58);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.soundline {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid rgba(215, 183, 107, 0.24);
  background: #081f35;
  color: var(--gold);
}

.soundline__track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 48px;
  animation: soundtrack 28s linear infinite;
}

.soundline span {
  padding-inline: 28px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.soundline i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(15, 207, 130, 0.8);
}

.origin {
  position: relative;
  padding: clamp(78px, 10vw, 150px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background: #06192b;
  color: var(--ivory);
}

.origin::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 183, 107, 0.78), transparent);
}

.origin__atmosphere {
  position: absolute;
  z-index: -1;
  inset: -8%;
  background: url("assets/revomusic-hero.webp") center / cover no-repeat;
  opacity: 0.11;
  filter: saturate(1.15) contrast(1.08);
  animation: atmosphere 22s ease-in-out infinite alternate;
}

.origin__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 25, 43, 0.42), #06192b 38%, #08233a 72%, #06192b);
}

.origin__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.origin__eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.origin h2,
.origin h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-wrap: balance;
  color: var(--ivory);
}

.origin h2 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.origin h3 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.origin p {
  max-width: 750px;
  margin: 28px 0 0;
  color: rgba(246, 244, 236, 0.76);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.origin__lead {
  color: var(--ivory) !important;
  font-size: clamp(21px, 2.6vw, 28px) !important;
  line-height: 1.5 !important;
}

.origin__fragments {
  display: grid;
  gap: 13px;
  max-width: 720px;
  margin: 38px 0;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  color: rgba(246, 244, 236, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 25px);
  font-style: italic;
  line-height: 1.45;
}

.origin__statement {
  max-width: 820px !important;
  margin-block: clamp(54px, 8vw, 92px) !important;
  color: var(--ivory) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4.7vw, 52px) !important;
  line-height: 1.13 !important;
}

.origin__meaning {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(38px, 8vw, 110px);
  margin-top: clamp(72px, 10vw, 132px);
  padding-top: clamp(52px, 7vw, 84px);
  border-top: 1px solid rgba(246, 244, 236, 0.16);
}

.origin__meaning p:first-child { margin-top: 0; }

.origin__finale {
  margin-top: clamp(72px, 10vw, 132px);
  padding: clamp(46px, 7vw, 78px);
  border: 1px solid rgba(215, 183, 107, 0.28);
  background: rgba(4, 18, 31, 0.82);
  color: var(--ivory);
}

.origin__finale .origin__eyebrow { color: var(--gold); }
.origin__finale p { color: var(--muted); }
.origin__finale h3,
.origin__finale strong { color: var(--ivory); }

.origin__closing {
  color: var(--ivory) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px) !important;
  line-height: 1.15 !important;
}

.origin__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 24px;
  background: var(--green);
  color: #031b12;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.origin__cta:hover { background: #4de9aa; }
.origin__cta:active { transform: scale(0.98); }

.origin__signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
  margin-top: clamp(58px, 8vw, 96px);
}

.origin__signal i {
  display: block;
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 13px rgba(15, 207, 130, 0.36);
  animation: equalize 1.7s ease-in-out infinite alternate;
}

.origin__signal i:nth-child(3n) { height: 56px; animation-delay: -1.1s; }
.origin__signal i:nth-child(3n + 1) { height: 36px; animation-delay: -0.6s; }
.origin__signal i:nth-child(4n) { background: var(--gold); animation-delay: -1.4s; }

.reveal-ready .origin__inner > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-ready .origin__inner > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes breathe {
  from { transform: scale(1.015); }
  to { transform: scale(1.045); }
}

@keyframes equalize {
  from { transform: scaleY(0.58); }
  to { transform: scaleY(1); }
}

@keyframes soundtrack {
  to { transform: translateX(-50%); }
}

@keyframes atmosphere {
  from { transform: scale(1.02) translate3d(-0.5%, 0, 0); }
  to { transform: scale(1.08) translate3d(0.5%, -0.7%, 0); }
}

@media (max-width: 600px) {
  .hero { padding-inline: 18px; }
  .brand__by { display: none; }
  .hero__content { margin-top: 34px; }
  .countdown { grid-template-columns: repeat(4, 1fr); margin-block: 28px; }
  .countdown > div { padding-inline: 4px; }
  .form-row { grid-template-columns: 1fr; padding: 5px; }
  .form-row button { width: 100%; }
  .form-row input { text-align: center; }
  footer { margin-top: 18px; }
  .origin { padding-inline: 22px; }
  .origin__meaning { grid-template-columns: 1fr; }
  .origin__finale { margin-inline: -22px; padding-inline: 22px; }
  .origin__cta { width: 100%; }
}

@media (max-height: 720px) and (orientation: landscape) {
  .hero { min-height: 720px; }
  .hero__content { margin-top: 28px; }
  .countdown { margin-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready .origin__inner > * { opacity: 1; transform: none; }
}
