:root {
  --bg: #0e0e0e;
  --yellow: #f5ef0f;
  --orange: #e8401c;
  --white: #ffffff;
  --grey-100: #bdbdbd;
  --grey-200: #9a9a9a;
  --grey-300: #6b6b6b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.35);
  --surface: rgba(255, 255, 255, 0.06);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Loader ---------- */
.is-loading { overflow: hidden; }
.is-loading .reveal { animation-play-state: paused; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__mark {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: loader-pulse 1.6s ease-in-out infinite;
}

.loader__ring {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
  animation: loader-spin 1.1s linear infinite;
}

.loader__ring circle {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: 120;
  opacity: 0.85;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__ring, .loader__logo { animation: none; }
}

/* subtle film-grain overlay for depth */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 80px;
  gap: 48px;
  overflow: hidden;
}

/* ambient glow behind hero */
.page::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -8%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(245, 239, 15, 0.14) 0%, rgba(245, 239, 15, 0) 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  animation: fade-down 0.7s ease both;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__logo {
  width: 56px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.brand__text { display: flex; flex-direction: column; }

.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.56px;
  line-height: 1;
}

.brand__tag {
  margin: 0;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--grey-200);
}

.header__actions { display: flex; align-items: center; gap: 24px; }

.header__visit {
  margin: 0;
  font-size: 14px;
  color: var(--grey-100);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}

.btn:active { transform: scale(0.96); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
  padding: 12px 22px;
  font-size: 13px;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--sm { padding: 8px 16px; font-size: 12px; }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--white);
  padding: 16px 28px;
}

.btn--outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn--outline .btn__icon { transition: transform 0.25s ease; }
.btn--outline:hover .btn__icon { transform: translateX(4px); }

.btn__icon { width: 18px; height: 18px; }

/* ---------- Reveal-on-load animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-up 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s + 0.15s);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Main ---------- */
.main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  flex: 1;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 680px;
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 239, 15, 0.12);
  border: 1px solid rgba(245, 239, 15, 0.5);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.72px;
  white-space: nowrap;
}

.eyebrow__dot {
  font-size: 10px;
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 88px;
  line-height: 0.96;
  letter-spacing: 0;
}

.headline .line { display: block; }
.accent { color: var(--yellow); }

.subcopy {
  margin: 0;
  max-width: 580px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--grey-100);
}

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 12px; }

.count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 96px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}

.count__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.count__num.tick {
  animation: tick-flip 0.5s cubic-bezier(.2,.8,.2,1);
}

@keyframes tick-flip {
  0% { transform: translateY(-14px); opacity: 0; }
  60% { transform: translateY(2px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.count__label {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.88px;
  color: var(--grey-200);
}

/* ---------- Visual ---------- */
.visual {
  position: relative;
  width: 560px;
  height: 580px;
  flex-shrink: 0;
}

.visual__ring {
  position: absolute;
  left: 0;
  top: 20px;
  width: 560px;
  height: 560px;
}

.ring-spin {
  width: 100%;
  height: 100%;
  animation: ring-rotate 40s linear infinite;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.visual__badge {
  position: absolute;
  left: 0;
  top: 20px;
  width: 560px;
  height: 560px;
  animation: disc-float 5s ease-in-out infinite;
}

.visual__fill {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

.visual__fill img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes disc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.visual__logo {
  position: absolute;
  left: 70px;
  top: 40px;
  width: 420px;
  height: 482px;
}

.visual__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.float-tag {
  position: absolute;
  left: -10px;
  top: 420px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: tag-float 4s ease-in-out infinite;
}

@keyframes tag-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1.5deg); }
}

.float-tag__label {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.88px;
  color: var(--grey-300);
}

.float-tag__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--bg);
}

.float-badge {
  position: absolute;
  left: 380px;
  top: 60px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(232, 64, 28, 0.4);
  animation: badge-float 3.2s ease-in-out infinite 0.4s;
}

.float-badge p {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.84px;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.03); }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  animation: fade-up-footer 0.8s ease both 0.6s;
}

@keyframes fade-up-footer {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer__copy { margin: 0; font-size: 13px; color: var(--grey-200); }

.social { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 24px);
  background: var(--yellow);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .page { padding: 32px 48px; }
  .copy { width: 100%; }
  .headline { font-size: 64px; }
  .visual { width: 440px; height: 460px; transform: scale(0.85); transform-origin: top right; }
}

@media (max-width: 1024px) {
  .main { flex-direction: column-reverse; gap: 40px; }
  .copy { width: 100%; align-items: center; text-align: center; }
  .subcopy { max-width: 100%; }
  .headline { width: 100%; }
  .notify__row { flex-wrap: wrap; justify-content: center; }
  .header__visit { display: none; }
  .eyebrow, .notify { align-self: center; }
}

@media (max-width: 640px) {
  .page { padding: 20px; gap: 28px; }

  .header__actions { display: none; }

  .brand__logo { width: 44.8px; height: 51.2px; }
  .brand__name { font-size: 22.4px; }
  .brand__tag { font-size: 8px; }

  .main { gap: 28px; }

  .visual {
    width: 308px;
    height: 319px;
    transform: none;
    margin: 0 auto;
  }
  .visual__ring { top: 11px; width: 308px; height: 308px; }
  .visual__badge { top: 11px; width: 308px; height: 308px; }
  .visual__fill { left: 11px; top: 11px; width: 286px; height: 286px; }
  .visual__logo { left: 38.5px; top: 22px; width: 231px; height: 265.1px; }
  .float-tag {
    left: -5.5px;
    top: 231px;
    padding: 8.8px;
    border-radius: 7.7px;
    gap: 1.1px;
  }
  .float-tag__label { font-size: 6px; letter-spacing: 0.48px; }
  .float-tag__value { font-size: 16.5px; }
  .float-badge { left: 209px; top: 33px; padding: 6.6px 8.8px; }
  .float-badge p { font-size: 7.7px; letter-spacing: 0.46px; }

  .copy { gap: 20px; }
  .headline { font-size: 44px; }
  .subcopy { font-size: 15px; }

  .countdown { width: 100%; gap: 8px; }
  .count { flex: 1; width: auto; padding: 12px 4px; }
  .count__num { font-size: 28px; }

  .notify__row { flex-direction: column; width: 100%; }
  .notify__input, .btn--primary, .btn--outline { width: 100%; }

  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__copy { width: 100%; }
}
