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

:root {
  --bg-0: #0b0712;
  --bg-1: #1a0a18;
  --ink: #fff5e6;
  --ink-dim: rgba(255, 245, 230, 0.62);
  --ink-mute: rgba(255, 245, 230, 0.38);
  --red: #c91432;
  --red-deep: #7a0d1a;
  --gold: #f1c452;
  --gold-soft: #ffe1a0;
  --line: rgba(255, 225, 160, 0.16);
  --card: rgba(20, 8, 18, 0.55);
  --card-border: rgba(241, 196, 82, 0.18);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --maxw: 1100px;
}

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

body {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ----- BACKGROUND ----- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, #3b0f2a 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 10%, #1d0a2c 0%, transparent 60%),
    linear-gradient(180deg, #07050f 0%, #110718 45%, #2a0915 100%);
}
.bg__skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(180px, 28vh, 320px);
  filter: drop-shadow(0 -8px 24px rgba(0, 0, 0, 0.55));
  opacity: 0.95;
}
.bg__moon {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8dc 0%, #f1c452 55%, #b9892f 100%);
  box-shadow:
    0 0 60px rgba(241, 196, 82, 0.35),
    0 0 120px rgba(241, 196, 82, 0.2);
  filter: blur(0.2px);
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 35% 30%, #ffe7b5 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 72% 10%, #ffe7b5 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 32%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 45%, #fff 50%, transparent 51%);
  opacity: 0.85;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

/* ----- LAYOUT ----- */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand__chip {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  text-transform: uppercase;
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 225, 160, 0.06);
}
.brand__name {
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.route {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.route svg {
  width: 56px;
  height: 20px;
  color: var(--gold-soft);
  opacity: 0.85;
  transform: scaleX(-1); /* arrow points left in RTL */
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.hero__inner > * + * { margin-top: 36px; }

.kicker {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.title {
  margin: 6px 0 0;
  display: grid;
  gap: 6px;
}
.title__small {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--ink-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.title__big {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(72px, 14vw, 188px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff5e6 0%, #f1c452 55%, #c08027 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  direction: ltr;
}
.title__sub {
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.32em;
  color: var(--ink);
  direction: ltr;
}

/* ----- COUNTDOWN ----- */
.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 26px 22px;
  background:
    linear-gradient(180deg, rgba(255, 225, 160, 0.04), rgba(255, 225, 160, 0)) ,
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  direction: ltr;
}
.unit { text-align: center; }
.num {
  font-family: "Playfair Display", "Heebo", serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1;
  background: linear-gradient(180deg, #fff5e6 0%, #f1c452 60%, #8a5d1d 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease;
}
.num.flash { transform: translateY(-2px) scale(1.02); }
.lbl {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}
.sep {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 80px);
  color: var(--ink-mute);
  transform: translateY(-12px);
}

/* ----- MILESTONES ----- */
.milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px 200px at 100% 0%, rgba(241, 196, 82, 0.10), transparent 60%);
  pointer-events: none;
}
.card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c91432;
  box-shadow: 0 0 0 4px rgba(201, 20, 50, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
.dot--gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(241, 196, 82, 0.2); }
.dot--white { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); animation: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.card .date {
  margin: 4px 0 2px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 900;
  font-size: 34px;
  color: var(--ink);
  direction: ltr;
}
.card .rel {
  margin: 0;
  font-size: 13px;
  color: var(--gold-soft);
  font-weight: 600;
}
.card .muted {
  margin: 14px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
}
.bar {
  margin-top: 14px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 245, 230, 0.08);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5470, #c91432);
  border-radius: inherit;
  transition: width 0.6s ease;
}
.bar__fill--gold {
  background: linear-gradient(90deg, #ffe1a0, #f1c452, #b9892f);
}

/* crew card */
.avatar {
  margin-top: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241,196,82,0.18), rgba(201,20,50,0.18));
  border: 1px solid var(--card-border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar__fallback {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 900;
  font-size: 56px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  opacity: 0;
}
.avatar--empty .avatar__fallback { opacity: 1; }

/* ----- CHECKLIST ----- */
.checklist {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.checklist h3 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}
.checklist li {
  padding: 10px 12px 10px 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
  font-weight: 600;
  font-size: 14.5px;
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-block: 50%;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--ink-mute);
  background: transparent;
  transition: all 0.15s ease;
}
.checklist li:hover {
  background: rgba(255, 245, 230, 0.04);
  border-color: var(--card-border);
}
.checklist li.done {
  color: var(--ink-mute);
  text-decoration: line-through;
}
.checklist li.done::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(241, 196, 82, 0.18);
}
.checklist li.done::after {
  content: "";
  position: absolute;
  inset-block: 50%;
  inset-inline-end: 17px;
  transform: translateY(-65%) rotate(-45deg);
  width: 8px;
  height: 4px;
  border: 2px solid #1a0a18;
  border-top: 0;
  border-right: 0;
}
.checklist .small {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ----- FOOT ----- */
.foot {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sep-dot { padding: 0 8px; opacity: 0.6; }

/* ----- ARRIVED MODE ----- */
body.arrived .countdown {
  background: linear-gradient(135deg, rgba(241,196,82,0.25), rgba(201,20,50,0.25));
}
body.arrived .num { animation: arrivedPulse 1.4s ease-in-out infinite alternate; }
@keyframes arrivedPulse {
  from { filter: drop-shadow(0 0 0 rgba(241,196,82,0)); }
  to   { filter: drop-shadow(0 0 18px rgba(241,196,82,0.7)); }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 800px) {
  .milestones { grid-template-columns: 1fr; }
  .checklist ul { grid-template-columns: 1fr; }
  .countdown { padding: 18px 12px; gap: 4px; }
  .sep { transform: translateY(-8px); }
  .topbar { padding-top: 16px; }
  .hero { padding: 24px 18px 40px; }
}

@media (max-width: 480px) {
  .lbl { font-size: 9px; letter-spacing: 0.22em; }
  .route { font-size: 11px; }
  .brand__name { font-size: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stars, .dot { animation: none; }
}
