:root {
  --gold-1: #7f5311;
  --gold-2: #b57a16;
  --gold-3: #dbad3f;
  --gold-4: #f4d882;
  --gold-5: #fff2bd;
  --ink: #17120a;
  --ink-soft: #4b3a1e;
  --cream: #fffaf0;
  --cream-2: #f8efda;
  --line: rgba(164, 111, 24, 0.28);
  --shadow: 0 20px 54px rgba(76, 47, 8, 0.22);
}

* {
  box-sizing: border-box;
}

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

html {
  background: #f7efdd;
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

.launch-page {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #fffdf7 0%, #f8efd9 48%, #fffaf1 100%);
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-image {
  position: absolute;
  inset: -7%;
  background: url("../assets/titan-plus-launch-poster.jpg") center center / cover no-repeat;
  filter: blur(34px) saturate(0.82) brightness(1.12);
  transform: scale(1.08);
  opacity: 0.56;
}

.ambient-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.93) 0%, rgba(255, 250, 238, 0.62) 26%, rgba(255, 252, 244, 0.36) 50%, rgba(255, 250, 238, 0.62) 74%, rgba(255, 250, 238, 0.93) 100%),
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(243,225,182,.2));
}

.ambient-glow {
  position: absolute;
  width: min(38vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(8px);
  background: radial-gradient(circle, rgba(230, 179, 67, 0.24) 0%, rgba(230, 179, 67, 0) 68%);
}

.glow-left {
  left: -10vw;
  top: 8vh;
}

.glow-right {
  right: -10vw;
  bottom: 4vh;
}

.gold-line {
  position: absolute;
  top: 8%;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg, transparent, rgba(179, 123, 28, 0.5), transparent);
  opacity: 0.5;
}

.gold-line-left { left: 8vw; }
.gold-line-right { right: 8vw; }

.launch-stage {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(100%, 1900px);
  margin: 0 auto;
  padding: clamp(10px, 1.5vh, 18px) clamp(12px, 3vw, 54px) max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vh, 18px);
}

.poster-wrap {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: clamp(12px, 1.3vw, 20px);
}

.poster-glow {
  position: absolute;
  inset: 3% -6%;
  z-index: -1;
  border-radius: 28px;
  background: rgba(255, 233, 172, 0.62);
  filter: blur(28px);
  opacity: 0.66;
}

.poster {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 790px);
  max-height: 72svh;
  object-fit: contain;
  border-radius: clamp(10px, 1vw, 16px);
  box-shadow:
    0 0 0 1px rgba(126, 79, 5, 0.18),
    0 18px 54px rgba(57, 36, 5, 0.24),
    0 4px 12px rgba(61, 36, 0, 0.12);
}

.countdown-shell {
  flex: 0 0 auto;
  width: min(100%, 980px);
  padding: clamp(10px, 1.35vh, 15px) clamp(12px, 2vw, 24px) clamp(11px, 1.4vh, 16px);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 1.5vw, 24px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,248,228,.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.countdown-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(9px, 1.2vw, 18px);
  margin-bottom: clamp(7px, .9vh, 11px);
  white-space: nowrap;
}

.eyebrow {
  color: #8a5b0f;
  font-size: clamp(9px, .75vw, 12px);
  font-weight: 900;
  letter-spacing: .18em;
}

.countdown-heading h1 {
  margin: 0;
  color: #2d210e;
  font-size: clamp(12px, 1.03vw, 17px);
  font-weight: 850;
  letter-spacing: .04em;
}

.countdown-heading h1 span {
  color: #c28a22;
  margin: 0 .25em;
}

.countdown {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr) auto minmax(86px, 1fr) auto minmax(86px, 1fr);
  align-items: stretch;
  gap: clamp(6px, .8vw, 12px);
}

.time-card {
  position: relative;
  min-width: 0;
  min-height: clamp(62px, 8.7vh, 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(172, 117, 22, .24);
  border-radius: clamp(11px, 1vw, 16px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,239,187,.92), transparent 62%),
    linear-gradient(180deg, #fffdf7 0%, #f8e8b8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 7px 20px rgba(106, 68, 7, .11);
}

.time-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d19b31, transparent);
}

.time-card strong {
  display: block;
  color: #1a140a;
  font-size: clamp(28px, 2.9vw, 50px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 #fff6d9;
}

.time-card strong.tick {
  animation: tick .24s ease-out;
}

.time-card span {
  margin-top: 5px;
  color: #76511a;
  font-size: clamp(8px, .65vw, 10px);
  font-weight: 900;
  letter-spacing: .16em;
}

.separator {
  align-self: center;
  color: #b67812;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 900;
  line-height: 1;
  transform: translateY(-2px);
}

.live-state {
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7dc, #edca76);
  border: 1px solid rgba(155, 98, 11, .25);
}

.live-state[hidden] {
  display: none;
}

.live-state strong {
  display: block;
  color: #191107;
  font-size: clamp(20px, 2vw, 34px);
  letter-spacing: .03em;
}

.live-state span {
  color: #6e4a12;
  font-size: 13px;
  font-weight: 700;
}

@keyframes tick {
  0% { transform: translateY(-3px) scale(1.06); filter: brightness(1.08); }
  100% { transform: none; filter: none; }
}

/* Desktop / laptop landscape composition */
@media (min-width: 821px) and (orientation: landscape) {
  .launch-stage {
    justify-content: center;
  }

  .poster {
    max-height: min(72svh, 810px);
  }

  .countdown-shell {
    max-height: 20svh;
  }
}

/* Portrait tablets and phones: poster remains portrait and dominant */
@media (max-width: 820px), (orientation: portrait) {
  .ambient-image {
    filter: blur(26px) saturate(.78) brightness(1.14);
    opacity: .38;
  }

  .ambient-wash {
    background: linear-gradient(180deg, rgba(255,251,241,.9), rgba(249,238,212,.88));
  }

  .gold-line {
    display: none;
  }

  .launch-stage {
    padding: max(7px, env(safe-area-inset-top)) 7px max(7px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .poster {
    max-width: calc(100vw - 14px);
    max-height: 69svh;
    border-radius: 10px;
  }

  .countdown-shell {
    width: min(100%, 640px);
    padding: 8px;
    border-radius: 14px;
  }

  .countdown-heading {
    display: block;
    margin-bottom: 7px;
    text-align: center;
    white-space: normal;
  }

  .eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 8px;
    letter-spacing: .16em;
  }

  .countdown-heading h1 {
    font-size: 10px;
    line-height: 1.25;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .separator {
    display: none;
  }

  .time-card {
    min-height: 58px;
    padding: 6px 3px;
    border-radius: 10px;
  }

  .time-card strong {
    font-size: clamp(24px, 8.2vw, 34px);
  }

  .time-card span {
    margin-top: 4px;
    font-size: clamp(6px, 2vw, 8px);
    letter-spacing: .09em;
  }
}

@media (max-width: 430px) and (max-height: 740px) {
  .poster {
    max-height: 65svh;
  }

  .countdown-heading {
    margin-bottom: 5px;
  }

  .time-card {
    min-height: 51px;
  }

  .time-card strong {
    font-size: 25px;
  }

  .countdown-shell {
    padding: 6px;
  }
}

@media (max-width: 390px) and (max-height: 680px) {
  .poster {
    max-height: 61svh;
  }

  .eyebrow {
    display: none;
  }

  .countdown-heading h1 {
    font-size: 9px;
  }

  .time-card {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
