:root {
  --blue: #0877ff;
  --navy: #071936;
  --soft: #f5f8ff;
  --text: #071936;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 30%, rgba(8, 119, 255, 0.10), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
}

.card {
  position: relative;
  z-index: 2;
  width: min(92vw, 760px);
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 2rem;
  transition: transform 500ms ease, filter 500ms ease, opacity 500ms ease;
}

.logo-img {
  width: min(72vw, 440px);
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.wordmark {
  display: none;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 12vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.ai {
  color: var(--blue);
}

.there {
  color: var(--navy);
}

.line {
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

.hint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.switch {
  width: 116px;
  height: 176px;
  border: 0;
  border-radius: 30px;
  padding: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #dfe8f9);
  box-shadow:
    0 24px 60px rgba(7, 25, 54, 0.16),
    inset 0 0 0 1px rgba(7, 25, 54, 0.08);
}

.switch-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 48%, #cbd8ee 100%);
  box-shadow:
    inset 0 8px 18px rgba(255, 255, 255, 0.9),
    inset 0 -12px 24px rgba(7, 25, 54, 0.16);
  transition: transform 300ms ease, background 300ms ease;
}

.switch:active .switch-face {
  transform: translateY(8px);
}

body.awake .switch-face {
  transform: translateY(18px);
  background: linear-gradient(180deg, #d5e7ff 0%, #0877ff 100%);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(8, 119, 255, 0.25), transparent 22rem),
    rgba(3, 10, 24, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.message {
  max-width: 720px;
  text-align: center;
  color: white;
  transform: translateY(24px);
  transition: transform 500ms ease;
}

.message .tiny {
  margin: 0 0 1rem;
  color: #8fc2ff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.message h2 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.message p:last-child {
  margin-top: 1.5rem;
  color: #c9d6ea;
  font-size: clamp(1rem, 3vw, 1.3rem);
}

body.awake .veil {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

body.awake .message {
  transform: translateY(0);
}

body.awake .card {
  filter: brightness(0.38) blur(1px);
  transform: scale(0.98);
}

body.awake .veil {
  cursor: pointer;
}

body.awake .veil {
  cursor: pointer;
}

/* Logo cleanup override */
.logo-img {
  width: min(88vw, 680px);
  max-height: none;
  object-fit: contain;
  display: block;
  margin: 0 auto 2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.card {
  padding-top: clamp(1.5rem, 5vw, 4rem);
}

/* ===== Responsive mobile polish ===== */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.page {
  min-height: 100svh;
  width: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 760px;
  padding: clamp(1rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
}

.line {
  text-align: center;
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  margin-bottom: clamp(2.2rem, 7vw, 3.5rem);
}

.switch {
  width: clamp(92px, 25vw, 116px);
  height: clamp(140px, 38vw, 176px);
}

.hint {
  text-align: center;
  font-size: clamp(0.78rem, 2.9vw, 0.95rem);
}

/* Phone layout */
@media (max-width: 600px) {
  .page {
    padding: 1rem;
  }

  .card {
    min-height: 92svh;
    padding: 1rem 0.5rem;
  }

  .logo-img {
    width: min(82vw, 330px);
    max-width: 330px;
    margin-bottom: 2.25rem;
  }

  .line {
    width: 100%;
    max-width: 22rem;
    font-size: clamp(1.2rem, 6vw, 1.55rem);
    line-height: 1.25;
  }

  .switch {
    width: 108px;
    height: 164px;
  }

  .hint {
    margin-top: 1.25rem;
    letter-spacing: 0.16em;
  }

  .message h2 {
    font-size: clamp(2.5rem, 13vw, 4.5rem);
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .logo-img {
    width: 78vw;
    max-width: 292px;
  }

  .line {
    font-size: 1.15rem;
  }

  .switch {
    width: 96px;
    height: 148px;
  }
}
