:root {
  --ink: #e8f1f7;
  --muted: #9bb0c0;
  --gold: #e0b84a;
  --gold2: #f0d078;
  --deep: #03080f;
  --sea: #0a1a28;
  --teal: #3a8ec8;
  --display: "Syne", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
body { min-height: 100vh; }

.face {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.face-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
}

.face-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 50% 40%, rgba(3, 8, 15, 0.82) 0%, rgba(3, 8, 15, 0.55) 45%, rgba(3, 8, 15, 0.28) 70%, transparent 100%),
    linear-gradient(180deg, rgba(3, 10, 18, 0.72) 0%, transparent 28%, transparent 62%, rgba(3, 8, 15, 0.88) 100%);
}

.face-sweep {
  position: absolute;
  inset: -20% -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(224, 184, 74, 0.07) 48%,
    rgba(58, 142, 200, 0.06) 52%,
    transparent 60%
  );
  animation: sweep 9s ease-in-out infinite;
}

@keyframes sweep {
  0%, 100% { transform: translateX(-12%) skewX(-8deg); opacity: 0.4; }
  50% { transform: translateX(12%) skewX(-8deg); opacity: 1; }
}

.face-lang {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 5;
  display: inline-flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid rgba(224, 184, 74, 0.28);
  background: rgba(3, 8, 15, 0.55);
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lang-btn.is-active {
  color: #141008;
  background: linear-gradient(180deg, #f0c85a, #c99620);
  border-color: transparent;
}

.face-center {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 72px 24px 96px;
  max-width: 920px;
  animation: riseIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.face-core {
  width: min(148px, 34vw);
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(224, 184, 74, 0.35),
    0 0 80px rgba(224, 184, 74, 0.38),
    0 0 140px rgba(58, 142, 200, 0.18);
  animation: coreBreath 5.5s ease-in-out infinite;
}

@keyframes coreBreath {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-10px) scale(1.03); filter: brightness(1.08); }
}

.face-brand {
  margin: 28px 0 14px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.32em;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  color: var(--gold);
  text-indent: 0.32em;
}

.face-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}
.face-title em {
  font-style: italic;
  color: var(--gold2);
}

.face-line {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 28rem;
}

.face-cta { margin: 0 0 22px; }

.face-enter {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  background: linear-gradient(180deg, #f0c85a, #c99620);
  color: #141008;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow:
    0 14px 44px rgba(224, 184, 74, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: ctaPulse 3.2s ease-in-out infinite;
}
.face-enter:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 60px rgba(224, 184, 74, 0.55);
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 14px 44px rgba(224, 184, 74, 0.4); }
  50% { box-shadow: 0 18px 56px rgba(224, 184, 74, 0.58); }
}

.face-family {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
  line-height: 1.45;
}

.face-floor {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(155, 176, 192, 0.85);
  animation: floorFade 1.6s ease 0.4s both;
}

@keyframes floorFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fd98a;
  box-shadow: 0 0 12px #3fd98a;
  animation: liveBlink 1.6s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 640px) {
  .face-center { padding: 64px 18px 110px; }
  .face-title { max-width: 12ch; }
  .face-floor { letter-spacing: 0.12em; font-size: 0.62rem; }
}
