:root {
  --cream: #f2ebdd;
  --beige: #d9c9af;
  --brown: #8c6e4e;
  --brown-mid: #6e563c;
  --earth: #443a2c;
  --bg: #14110e;
  --bg-deep: #0c0a08;
  --text: #f2ebdd;
  --muted: #a89880;
}

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

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

body {
  font-family: "Sarabun", "Prompt", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* —— Atmosphere —— */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 48% at 50% 18%, rgba(242, 235, 221, 0.1), transparent 58%),
    radial-gradient(ellipse 55% 40% at 80% 88%, rgba(140, 110, 78, 0.18), transparent 55%),
    linear-gradient(180deg, #1a1612 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(217, 201, 175, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 201, 175, 0.35) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 68% 58% at 50% 38%, black 18%, transparent 76%);
  animation: grid-drift 48s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 52px 52px; }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.glow-cream {
  width: 320px;
  height: 320px;
  background: rgba(242, 235, 221, 0.22);
  top: 8%;
  left: 50%;
  margin-left: -160px;
  animation: pulse-glow 6s ease-in-out infinite;
}

.glow-earth {
  width: 380px;
  height: 380px;
  background: rgba(140, 110, 78, 0.28);
  bottom: 4%;
  right: 4%;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

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

.plot-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.plot {
  fill: rgba(140, 110, 78, 0.12);
  stroke: rgba(217, 201, 175, 0.28);
  stroke-width: 0.35;
  stroke-linejoin: round;
}

.plot-a { animation: plot-drift 18s ease-in-out infinite; }
.plot-b { animation: plot-drift 22s ease-in-out infinite reverse; }
.plot-c { animation: plot-drift 26s ease-in-out infinite; }

@keyframes plot-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
  50% { transform: translate(1.2%, -1.4%) rotate(3deg); opacity: 1; }
}

.dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(242, 235, 221, 0.65);
  border-radius: 50%;
  animation: float-dust linear infinite;
}

@keyframes float-dust {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}

/* —— Stage —— */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) 1.25rem 2.25rem;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

/* —— Seal / logo —— */
.seal {
  position: relative;
  width: min(280px, 68vw);
  height: min(280px, 68vw);
  display: grid;
  place-items: center;
}

.seal-orbit {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 201, 175, 0.42);
  animation: orbit-spin 48s linear infinite;
  pointer-events: none;
}

.seal-orbit-inner {
  inset: -4%;
  border-width: 1px;
  border-style: dotted;
  opacity: 0.7;
  animation-duration: 72s;
  animation-direction: reverse;
}

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

.logo-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: logo-fade-in 1.1s ease 0.2s forwards;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

@keyframes logo-fade-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* —— Copy —— */
.copy {
  text-align: center;
  max-width: 28rem;
  animation: fade-up 0.75s ease 0.7s both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.7rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beige);
  box-shadow: 0 0 0 0 rgba(217, 201, 175, 0.55);
  animation: blink-dot 1.6s ease infinite;
}

@keyframes blink-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 201, 175, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(217, 201, 175, 0); opacity: 0.65; }
}

.copy h1 {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.1rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.brand-en {
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.85rem;
}

.headline {
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}

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

/* —— Countdown —— */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.3rem, 2vw, 0.8rem);
  animation: fade-up 0.75s ease 0.95s both;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3.5rem, 15vw, 5rem);
}

.cd-value {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, var(--beige) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.cd-value::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -5px;
  height: 2px;
  background: var(--brown);
  border-radius: 1px;
  opacity: 0.9;
}

.cd-label {
  margin-top: 0.8rem;
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.cd-sep {
  font-family: "Prompt", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  color: var(--brown);
  line-height: 1;
  padding-top: 0.12em;
  animation: colon-pulse 1s steps(1) infinite;
}

@keyframes colon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.22; }
}

.launch-date {
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  animation: fade-up 0.75s ease 1.1s both;
}

@media (max-width: 520px) {
  .seal {
    width: min(220px, 64vw);
    height: min(220px, 64vw);
  }

  .plot-field {
    opacity: 0.7;
  }
}

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

  .logo-main,
  .copy,
  .countdown,
  .launch-date {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .seal-orbit,
  .dust {
    animation: none !important;
  }
}
