:root {
  --bg: #faf7f2;
  --ink: #2c2c2c;
  --muted: #6e6a63;
  --faint: #8a857d;
  --placeholder: #9b968e;
  --accent: #c9a96e;
  --gold-text: #9a7535;
  --line: #e8dcc6;
  --white: #ffffff;
  --error: #b4493a;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-text); }
a:hover { color: #7a5a24; }

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

/* ---------- Page (Desktop board: 1440 × 900) ---------- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 120px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

/* ---------- Shooting stars & twinkles ---------- */

.sky { position: absolute; inset: 0; pointer-events: none; }

.shoot {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation-name: shoot;
  animation-timing-function: cubic-bezier(.25, .1, .35, 1);
  animation-iteration-count: infinite;
}
.shoot i {
  position: relative;
  display: block;
  width: 260px;
  height: 1.2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201,169,110,.95), rgba(201,169,110,.35) 35%, rgba(201,169,110,0));
}
.shoot i::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6cf9f;
  box-shadow: 0 0 12px 4px rgba(201,169,110,.45);
}
@keyframes shoot {
  0%   { opacity: 0;  transform: rotate(-22deg) translateX(0); }
  6%   { opacity: .9; }
  30%  { opacity: .9; }
  42%  { opacity: 0;  transform: rotate(-22deg) translateX(-900px); }
  100% { opacity: 0;  transform: rotate(-22deg) translateX(-900px); }
}
@keyframes shoot-sm {
  0%   { opacity: 0;  transform: rotate(-22deg) translateX(0); }
  6%   { opacity: .9; }
  30%  { opacity: .9; }
  42%  { opacity: 0;  transform: rotate(-22deg) translateX(-460px); }
  100% { opacity: 0;  transform: rotate(-22deg) translateX(-460px); }
}

.tw {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  animation: tw 5s ease-in-out infinite;
}
@keyframes tw {
  0%, 100% { opacity: .12; }
  50%      { opacity: .75; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.logo {
  display: block;
  width: 360px;
  height: auto;
  mix-blend-mode: multiply;
}

.headline {
  margin: 52px 0 0;
  font-family: var(--serif);
  font-size: 55px;
  line-height: 1.12;
  font-weight: 600;
  color: var(--ink);
  display: grid;
}
.headline em { font-style: italic; color: var(--accent); }
/* Full sentence reserves the space; typed text sits on top so nothing jumps. */
.headline__ghost,
.headline__typed { grid-area: 1 / 1; }
.headline__ghost { visibility: hidden; }

.caret {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  margin-left: 3px;
  vertical-align: -0.04em;
  background: var(--accent);
}
.caret.is-off { opacity: 0; }

.lede {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Waitlist form ---------- */

.waitlist {
  position: relative;
  margin-top: 36px;
  width: 560px;
  max-width: 100%;
  padding: 6px 6px 6px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.waitlist[hidden] { display: none; }

.waitlist input {
  flex-grow: 1;
  min-width: 0;
  height: 48px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.waitlist input::placeholder { color: var(--placeholder); }

.waitlist button {
  flex-shrink: 0;
  height: 48px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--accent);
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s ease;
}
.waitlist button:hover { opacity: .9; }
.waitlist button:disabled { opacity: .6; cursor: default; }
.waitlist:focus-within { box-shadow: 0 0 0 3px rgba(201,169,110,.2); }

.form-message {
  margin: 10px 0 0;
  min-height: 0;
  font-size: 14px;
  color: var(--muted);
}
.form-message:empty { display: none; }
.form-message.is-error { color: var(--error); }

.success {
  margin-top: 36px;
  width: 560px;
  max-width: 100%;
  padding: 18px 26px;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 24px;
}
.success[hidden] { display: none; }
.success__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}
.success__text { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.arriving {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-text);
}
.arriving__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.8); }
  50%      { transform: scale(1.9); }
}

/* ---------- Feature cards ---------- */

.features {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 24px 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--gold-text);
}
.card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.card__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.footer {
  position: relative;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--faint);
}

/* ---------- Tablet ---------- */

@media (max-width: 1200px) {
  .page { padding: 56px 48px 32px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile (Mobile v2 board: 390 wide, scrolls) ---------- */

@media (max-width: 720px) {
  .page {
    padding: 56px 24px 32px;
    justify-content: flex-start;
    gap: 0;
  }

  /* Shorter trails and a shorter run so the stars fit a phone screen. */
  .shoot { animation-name: shoot-sm; }
  .shoot i { width: 140px; }

  .logo { width: 200px; }

  .headline {
    margin-top: 44px;
    font-size: 30px;
    line-height: 1.22;
  }

  .lede {
    margin-top: 14px;
    max-width: 300px;
    font-size: 15px;
    line-height: 1.6;
  }

  .waitlist {
    margin-top: 32px;
    width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: none;
    border: none;
    border-radius: 0;
  }
  .waitlist:focus-within { box-shadow: none; }
  .waitlist input {
    height: 54px;
    padding: 0 22px;
    background: var(--white);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 15px;
  }
  .waitlist input:focus { box-shadow: 0 0 0 3px rgba(201,169,110,.2); }
  .waitlist button { height: 54px; padding: 0; }

  .success { margin-top: 32px; width: 100%; }

  .arriving {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 2px;
  }

  .features {
    margin-top: 44px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 18px 20px;
    border-radius: 18px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .card__num { font-size: 14px; }
  .card__title { font-size: 17px; line-height: 1.3; }
  .card__text { display: none; }

  .footer {
    margin-top: auto;
    padding-top: 32px;
    font-size: 11px;
  }
}
