/* style.css — NORMAL app matches your left mock (big logo + huge countdown + underline input + NEXT right)
   REVEAL scene stays as your pill/card/bubbles/share look
*/

/* =========================
   FONT (local)
   ========================= */
@font-face {
  font-family: "Gliker";
  src: url("./media/gliker-regular.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

:root {
  --bg: #ffffff;
  --text: rgba(0, 0, 0, 0.95);
  --muted: rgba(0, 0, 0, 0.55);
  --border: rgba(0, 0, 0, 0.10);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.10);

  /* Glow tuning */
  --gold: rgba(255, 200, 0, 0.95);
  --gold-soft: rgba(255, 200, 0, 0.22);
  --gold-mid: rgba(255, 200, 0, 0.14);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Gliker, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* helpers */
.hidden {
  display: none !important;
}

/* =========================
   NORMAL APP
   ========================= */

.app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 24px;
}

.card {
  width: min(980px, 100%);
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header {
  margin: 0;
}

/* Big logo */
.countdownWrap::before {
  content: "FirstWord2026";
  display: block;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(44px, 6.2vw, 92px);
  margin: 0 0 6px;
}

.countdownLabel {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 4.2vw, 64px);
  margin: 0 0 10px;
}

.countdown {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-size: clamp(56px, 9.5vw, 128px);
  font-variant-numeric: tabular-nums;
}

.countdownSub {
  margin-top: 10px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.70);
}

.content {
  margin-top: 18px;
}

.title {
  margin: 18px 0 6px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(24px, 4vw, 52px);
  text-transform: lowercase;
}

.subtitle {
  margin: 0 0 22px;
  font-weight: 900;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.75);
  max-width: 520px;
}

.step {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px 28px;
  margin-top: 18px;
}

.label {
  grid-column: 1 / -1;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 5vw, 64px);
}

.input {
  grid-column: 1 / 2;
  border: none;
  border-bottom: 4px solid rgba(0, 0, 0, 0.9);
  background: transparent;
  padding: 10px 6px 12px;
  font-weight: 900;
  font-size: clamp(18px, 2.4vw, 28px);
  outline: none;
}

.input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.btn {
  grid-column: 2 / 3;
  background: transparent;
  border: none;
  font-weight: 900;
  font-size: clamp(26px, 4.2vw, 60px);
  cursor: pointer;
  padding: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  grid-column: 1 / -1;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: underline;
}

/* Gumroad CTA */
.glowBtn {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  border: none;
}

.glowBtn:active {
  transform: translateY(1px);
}

.footer {
  margin-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

/* =========================
   REVEAL SCENE
   ========================= */

.revealStage {
  position: fixed;
  inset: 0;
  background: #fff;
  overflow: hidden;
  z-index: 999;
  isolation: isolate;
}

.floatLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floatBox {
  position: absolute;
  width: 170px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  z-index: 0 !important;
  transform: translate3d(0, 0, 0); /* GPU smooth */
  will-change: transform;
}

.floatBox .word {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
}

.floatBox .by {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 11px; /* smaller than the word */
  line-height: 1.1;
}

/* GOLD GLOW bubble */
.floatBox.glow {
  border-color: rgba(255, 200, 0, 0.45);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.14),
    0 0 0 6px rgba(255, 200, 0, 0.18),
    0 0 48px rgba(255, 200, 0, 0.22),
    0 0 120px rgba(255, 200, 0, 0.10);
}

/* extra gold aura without changing layout */
.floatBox.glow::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 215, 0, 0.35),
    rgba(255, 215, 0, 0.14) 35%,
    rgba(255, 215, 0, 0.00) 70%
  );
  filter: blur(10px);
  opacity: 0.95;
}

/* Make the glow bubble "read" premium */
.floatBox.glow .word {
  text-shadow: 0 1px 0 rgba(255, 200, 0, 0.22);
}

.floatBox.glow .by {
  color: rgba(0, 0, 0, 0.62);
}

/* subtle premium pulse */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 22px 64px rgba(0, 0, 0, 0.14),
      0 0 0 6px rgba(255, 200, 0, 0.16),
      0 0 44px rgba(255, 200, 0, 0.18),
      0 0 110px rgba(255, 200, 0, 0.08);
  }
  100% {
    box-shadow:
      0 22px 64px rgba(0, 0, 0, 0.14),
      0 0 0 6px rgba(255, 200, 0, 0.22),
      0 0 58px rgba(255, 200, 0, 0.26),
      0 0 150px rgba(255, 200, 0, 0.12);
  }
}

.floatBox.glow {
  animation: glowPulse 1.8s ease-in-out infinite alternate;
}

.revealTopPill {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 44px;
  z-index: 10;
}

.revealCenter {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 10;
}

.revealSentence {
  max-width: 980px;
  padding: 28px 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 46px);
  text-align: center;
}

.revealActions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.revealShareBtn {
  padding: 14px 30px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
}

.revealShareBtn:active {
  transform: translateY(1px);
}

/* ✅ Support Your Word button (UNCHANGED) */
.revealSupportBtn {
  padding: 14px 30px;
  border-radius: 999px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.95);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.revealSupportBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.12);
}

.revealSupportBtn:active {
  transform: translateY(1px);
}

/* mobile */
@media (max-width: 520px) {
  .revealTopPill {
    font-size: 32px;
  }

  .glowBtn,
  .revealSupportBtn {
    font-size: 16px;
    padding: 12px 18px;
  }
}

/* accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .floatBox,
  .floatBox.glow {
    animation: none !important;
  }
}
