@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --navy: #081423;
  --orange: #ff862e;
  --white: #f8fafc;
  --muted: #c2d1df;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-family: Inter, system-ui, sans-serif;
  color: var(--white);
  background: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; isolation: isolate; }
button, input { font: inherit; }
p, h1 { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
::selection { color: var(--navy); background: var(--orange); }

.backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #081423 0%, #081423 21%, #081423e8 36%, #08142360 55%, #0814230f 82%),
    linear-gradient(0deg, #081423 0%, #08142354 22%, transparent 65%, #08142335 100%),
    radial-gradient(ellipse at 85% 25%, #5a301e25 0%, transparent 62%),
    url("/wako-countdown.webp") right center / auto min(80vh, 610px) no-repeat;
}
.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
}
.wrap {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
  min-width: 0;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: max(30px, env(safe-area-inset-top)) 21px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font: 800 1.875rem/1 var(--display);
  letter-spacing: .015em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--orange);
}
.brand img { height: auto; width: 130px; }
.header-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: .75rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .09em;
  border: 1px solid #ffffff30;
  background-color: #081423a6;
  border-radius: 6px;
}
.header-tag span {
  width: 8px;
  height: 8px;
  background-color: var(--orange);
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px #ff862e29;
}
.main {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(40px, 6vh, 76px);
}
.intro { width: min(100%, 680px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-size: .825rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 29px;
  height: 3px;
  background: var(--orange);
  content: "";
  flex: none;
}
h1 {
  margin-block: 18px 20px;
  font: 800 clamp(4.3rem, 6.6vw, 6.65rem)/.89 var(--display);
  letter-spacing: -.022em;
  text-transform: uppercase;
  text-wrap: initial;
}
h1 em { color: var(--orange); font-style: normal; }
.description {
  max-width: 505px;
  color: #e0e8ef;
  font-size: clamp(1rem, 1.15vw, 1.06rem);
  line-height: 1.7;
}
.countdown-section { margin-top: 39px; max-width: 510px; }
.launch-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .825rem;
  font-weight: 700;
}
.launch-date time { color: #f8fafc; font-weight: 700; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.countdown-unit {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 5px 13px;
  min-height: 114px;
  background: linear-gradient(155deg, #192b3be8, #0c1c2ae0);
  border: 1px solid #ffffff27;
  border-radius: 8px;
}
.countdown-unit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 13px;
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.number {
  display: block;
  color: white;
  font: 700 clamp(2.5rem, 4.8vw, 4rem)/.9 var(--display);
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}
.unit {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .11em;
  color: #cbd7e3;
  text-transform: uppercase;
}
.launch-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
.launch-status:empty, .login-message:empty { display: none; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-top: 1px solid #ffffff24;
  padding-block: 20px max(27px, env(safe-area-inset-bottom));
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 500;
}
.flag {
  width: 20px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(#ae1c28 33.333%, #fff 33.333% 66.666%, #21468b 66.666%);
  flex: none;
}
.preview { width: min(100%, 314px); }
.preview-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
}
.preview-label svg { width: 15px; height: 15px; flex: none; }
.preview-fields { display: flex; gap: 6px; }
.preview input,
.preview button {
  min-height: 43px;
  border: 1px solid #ffffff35;
  border-radius: 5px;
  font-size: .83rem;
}
.preview input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  color: white;
  background: #0b1929e6;
}
.preview input::placeholder { color: #aebfce; opacity: 1; }
.preview button {
  padding: 8px 12px;
  background: #182a3a;
  color: #f4f7fa;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.preview button:hover { background: #263d51; border-color: #ff862e; }
.login-message {
  color: #ffbf9b;
  font-size: .8rem;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.5;
}
.preview:has(.login-message:not(:empty)) input { border-color: #ff9573; }

@media (min-width: 721px) and (max-width: 960px) {
  .wrap { width: calc(100% - 72px); }
  .backdrop {
    background:
      linear-gradient(90deg, #081423 0%, #081423f5 22%, #081423ca 40%, #08142370 68%, #08142336 100%),
      linear-gradient(0deg, #081423 0%, #08142354 22%, transparent 65%),
      url("/wako-countdown.webp") right center / auto min(78vh, 590px) no-repeat;
  }
}
@media (max-width: 720px) {
  .backdrop {
    background:
      linear-gradient(180deg, #081423 0%, #081423a0 5%, #0814230a 10%, #08142312 24%, #0814237a 33%, #081423 44%),
      url("/wako-countdown.webp") center calc(60px + env(safe-area-inset-top, 0px)) / 100% auto no-repeat;
  }
  .wrap { width: calc(100% - 40px); }
  .header {
    padding-block: max(20px, env(safe-area-inset-top)) 15px;
  }
  .brand { gap: 9px; font-size: 1.4rem; }
  .brand img { width: 91px; }
  .header-tag { font-size: .63rem; gap: 7px; padding: 7px 8px; letter-spacing: .06em; }
  .header-tag span { width: 6px; height: 6px; }
  .main {
    align-items: end;
    padding-block: clamp(170px, 64vw, 300px) 27px;
  }
  .eyebrow { font-size: .72rem; letter-spacing: .13em; }
  .eyebrow::before { width: 23px; }
  h1 {
    font-size: clamp(2.7rem, 11vw, 5.5rem);
    margin-block: 12px 15px;
    text-wrap: initial;
  }
  .description { line-height: 1.65; }
  .countdown-section { margin-top: 27px; }
  .countdown { gap: 6px; }
  .countdown-unit { min-height: 84px; padding: 13px 3px 10px; gap: 5px; }
  .countdown-unit::before { left: 8px; width: 18px; }
  .number { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .unit { font-size: .75rem; letter-spacing: .025em; }
  .footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-block: 17px max(16px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .footer-copy { min-height: 24px; font-size: .72rem; }
  .preview-label { margin-bottom: 5px; }
  .preview input { font-size: 1rem; }
}
@media (max-width: 480px) {
  .header-tag { display: none; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 30px); }
  .brand { gap: 7px; font-size: 1.25rem; }
  .brand img { width: 81px; }
  .header-tag { font-size: .55rem; gap: 5px; padding-inline: 6px; }
  .main { padding-top: clamp(170px, 64vw, 245px); }
  h1 { font-size: clamp(2.4rem, 10.8vw, 3.45rem); }
  .unit { font-size: .55rem; }
}
@media (max-height: 820px) and (min-width: 721px) {
  .main { padding-block: 36px; }
  h1 { font-size: clamp(3.75rem, 5.7vw, 5.6rem); }
  .countdown-section { margin-top: 28px; }
  .countdown-unit { min-height: 104px; }
  .footer { padding-block: 17px max(20px, env(safe-area-inset-bottom)); }
}
@media (max-height: 620px) and (min-width: 721px) {
  .main { padding-block: 28px; }
  h1 { font-size: clamp(3.65rem, 6.3vw, 5.9rem); }
  .countdown-section { margin-top: 24px; }
}
