:root {
  --ink: #12161c;
  --ink-soft: #1c232c;
  --paper: #f4f1eb;
  --paper-muted: rgba(244, 241, 235, 0.72);
  --accent: #c9852f;
  --accent-deep: #a66a1f;
  --line: rgba(244, 241, 235, 0.18);
  --success: #2f9e6b;
  --font-sans: "Sora", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.35) 0%, rgba(18, 22, 28, 0.55) 42%, rgba(18, 22, 28, 0.92) 100%),
    linear-gradient(90deg, rgba(18, 22, 28, 0.55) 0%, rgba(18, 22, 28, 0.15) 55%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 3rem));
  margin: 0 auto 0 8vw;
  padding: 6rem 0 4.5rem;
  animation: riseIn 1s var(--ease) both;
}

.hero__brand {
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--paper);
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--paper-muted);
  animation: riseIn 1.1s var(--ease) 0.12s both;
}

/* —— Notify form —— */
.notify {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  width: min(100%, 28rem);
  animation: riseIn 1.15s var(--ease) 0.22s both;
}

.notify__input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(18, 22, 28, 0.45);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.notify__input::placeholder {
  color: rgba(244, 241, 235, 0.45);
}

.notify__input:focus {
  border-color: var(--accent);
  background: rgba(18, 22, 28, 0.7);
}

.notify__button {
  min-height: 3.15rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #1a1208;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notify__button:hover {
  background: var(--accent-deep);
  color: var(--paper);
}

.notify__button:active {
  transform: translateY(1px);
}

.notify__feedback {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--success);
}

.notify__feedback.is-error {
  color: #e07a6a;
}

/* —— Launch / countdown section —— */
.launch {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 70vh;
  background: var(--ink-soft);
}

.launch__media {
  overflow: hidden;
}

.launch__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.launch__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(201, 133, 47, 0.12), transparent 55%),
    var(--ink-soft);
}

.launch__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.launch__text {
  margin: 0 0 2.25rem;
  max-width: 28ch;
  color: var(--paper-muted);
  line-height: 1.6;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 28rem);
}

.countdown__unit {
  padding: 1rem 0.5rem 0.85rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.countdown__value {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.countdown__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.countdown__done {
  margin: 1rem 0 0;
  color: var(--accent);
  font-weight: 500;
}

/* —— Footer —— */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 8vw;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.site-footer__socials {
  display: flex;
  gap: 1.35rem;
}

.site-footer__link {
  color: var(--paper-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.site-footer__link:hover {
  color: var(--paper);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(244, 241, 235, 0.45);
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 900px) {
  .hero__inner {
    margin: 0 auto;
    width: min(40rem, calc(100% - 2.5rem));
    padding-bottom: 3.5rem;
    text-align: left;
  }

  .launch {
    grid-template-columns: 1fr;
  }

  .launch__media {
    min-height: 42vw;
    max-height: 280px;
  }
}

@media (max-width: 560px) {
  .notify {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 0.4rem;
  }

  .countdown__unit {
    padding: 0.85rem 0.25rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.25rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .hero__lead,
  .notify,
  .hero__image {
    animation: none;
  }

  .hero__image {
    transform: none;
  }
}
