/* Dukify — coming soon. Palette anchored to logo accent #8E4200. */

:root {
  --bg: #141210;
  --bg2: #1C1712;
  --amber: #8E4200;
  --ember: #C25E0A;
  --text: #F5EFE8;
  --muted: #A89F93;
  --card: #221B14;
  --card-border: rgba(142, 66, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(52vw 42vh at 12% 8%, rgba(142, 66, 0, 0.28), transparent 62%),
    radial-gradient(48vw 46vh at 88% 88%, rgba(194, 94, 10, 0.20), transparent 60%),
    linear-gradient(160deg, var(--bg2), var(--bg) 55%);
  background-color: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- fixed atmosphere layers ---------------------------------------- */

#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  font-size: 88vh;
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -52%);
  animation: watermark-drift 80s ease-in-out infinite alternate;
}

@keyframes watermark-drift {
  from { transform: translate(-53%, -54%) rotate(-1.2deg); }
  to   { transform: translate(-47%, -50%) rotate(1.2deg); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* --- language toggle -------------------------------------------------- */

.lang-toggle {
  position: fixed;
  top: clamp(0.9rem, 2.5vw, 1.4rem);
  right: clamp(0.9rem, 2.5vw, 1.4rem);
  z-index: 5;
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(28, 23, 18, 0.7);
  backdrop-filter: blur(6px);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: clamp(0.68rem, 1.6vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn.active {
  background: var(--amber);
  color: var(--text);
}

.lang-btn:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

/* --- main scene -------------------------------------------------------- */

.scene {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.6vh, 1.6rem);
  text-align: center;
  padding: clamp(3.2rem, 8vh, 5rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 3vh, 2rem);
}

.brand-logo {
  width: clamp(84px, 14vh, 128px);
  height: auto;
  filter: drop-shadow(0 6px 28px rgba(194, 94, 10, 0.35));
}

.headline {
  font-size: clamp(1.7rem, 5.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(142, 66, 0, 0.45);
}

.subline {
  font-size: clamp(0.92rem, 2.1vw, 1.12rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: balance;
}

/* --- countdown --------------------------------------------------------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.8vw, 1rem);
  margin-top: clamp(0.3rem, 1.4vh, 0.9rem);
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: clamp(64px, 17vw, 118px);
  padding: clamp(0.7rem, 2.2vh, 1.15rem) clamp(0.4rem, 1.4vw, 0.9rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: clamp(10px, 1.6vw, 16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(245, 239, 232, 0.04);
}

.cd-value {
  font-size: clamp(1.9rem, 6.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ember);
  text-shadow: 0 0 26px rgba(194, 94, 10, 0.55);
}

.cd-label {
  font-size: clamp(0.56rem, 1.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

#live-msg {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--text);
  text-shadow: 0 0 30px rgba(194, 94, 10, 0.5);
}

#live-msg[hidden] {
  display: none;
}

/* --- marquee ------------------------------------------------------------ */

.marquee {
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  padding: clamp(0.5rem, 1.4vh, 0.8rem) 0;
  background: rgba(20, 18, 16, 0.55);
  backdrop-filter: blur(4px);
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--amber);
  animation: marquee-scroll 46s linear infinite;
}

.marquee-track span {
  padding-right: 2rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* --- footer -------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(0.9rem, 2.4vh, 1.4rem);
  font-size: clamp(0.7rem, 1.7vw, 0.82rem);
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text);
}

.footer-sep {
  color: var(--amber);
}

/* --- motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .watermark {
    animation: none;
  }
  .grain {
    opacity: 0;
  }
}
