/* Reset mínimo — substitui partes do CSS base do Webflow que a página ainda usa */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
.w-inline-block { max-width: 100%; display: inline-block; }

/* Planc — auto-hospedada em font/, substitui a CDN do Webflow */
@font-face { font-family: 'Planc'; src: url('font/Planc-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-ThinItalic.ttf') format('truetype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-ExtraLightItalic.ttf') format('truetype'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-RegularItalic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-SemiBoldItalic.ttf') format('truetype'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Planc'; src: url('font/Planc-ExtraBoldItalic.ttf') format('truetype'); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --bg: #1E1E1D;
  --white: #FFFFFF;
  --white-dim: rgba(255,255,255,0.45);
  --glass-bg: rgba(255,255,255,0.015);
  --glass-border: rgba(255,255,255,0.04);
}

html, body { width: 100%; height: 100%; background: var(--bg); overflow: hidden; font-family: 'Planc', Arial, sans-serif; }

/* cursor: none só no desktop — no mobile essa regra não existe */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35; pointer-events: none; z-index: 10;
}

#lava-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; filter: url('#goo'); background: transparent; }

/* CURSOR — escondido por padrão no mobile via JS, mas a regra de media query garante */
#cursor, #cursor-dot {
  position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
}
#cursor { width: 32px; height: 32px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 50%; transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s; mix-blend-mode: difference; }
#cursor.hover { width: 48px; height: 48px; background: rgba(255,255,255,0.08); }
#cursor-dot { width: 4px; height: 4px; background: white; border-radius: 50%; }

/* Esconde cursor em touch devices */
@media (hover: none) {
  #cursor, #cursor-dot { display: none !important; }
}

.glass-wrapper, #scene { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; padding: 1rem; perspective: 1000px; }

.glass, #glass {
  position: relative; width: 80vw; height: 80vh; min-height: 550px; max-width: 1400px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden;
  transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MOBILE: glass ocupa mais tela e tem altura mais flexível */
@media (max-width: 768px) {
  .glass, #glass {
    width: 92vw;
    height: auto;
    min-height: 85vh;
    max-height: 92vh;
    border-radius: 20px;
  }
}

.glass.flooded {
  background: transparent !important;
  border: 1px solid rgba(255, 92, 0, 0.4) !important;
  box-shadow: 0 0 50px rgba(255, 92, 0, 0.15), inset 0 0 30px rgba(255, 92, 0, 0.05) !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
}

.glass-content, #content {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.logo { position: absolute; bottom: 32px; left: 40px; width: clamp(60px, 8vw, 90px); height: auto; opacity: 0.6; transition: opacity 0.3s ease; z-index: 50; }
.logo:hover { opacity: 1; }
.logo path, .logo svg { fill: var(--white); }

@media (max-width: 768px) {
  .logo { bottom: 20px; left: 24px; width: 52px; }
}

#coming-soon {
  font-size: clamp(64px, 1.6vw, 32px); font-weight: 700; color: var(--white);
  letter-spacing: 0.04em; margin-bottom: 0px; line-height: 1;
  opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: transform 1s ease;
}
#coming-soon.flooded-text { transform: scale(1.1); text-shadow: 0 4px 32px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
  #coming-soon { font-size: clamp(36px, 10vw, 56px); }
}

#coming-soon-baixo {
  font-size: clamp(32px, 1.6vw, 32px); font-weight: 700; color: var(--white);
  letter-spacing: 0.04em; margin-bottom: 32px; line-height: 1;
  opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: transform 1s ease;
}
#coming-soon-baixo.flooded-text { transform: scale(1.1); text-shadow: 0 4px 32px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
  #coming-soon-baixo { font-size: clamp(20px, 6vw, 32px); margin-bottom: 24px; }
}

#alt-key { position: relative; opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards; margin-bottom: 32px; transition: all 0.2s; }

@media (hover: hover) and (pointer: fine) {
  #alt-key { cursor: none; }
}

.key-body { width: 90px; height: 90px; background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%); border: 1px solid rgba(255,255,255,0.18); border-bottom: 3px solid rgba(0,0,0,0.6); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform 0.08s ease, border-bottom-width 0.08s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); user-select: none; }

@media (hover: hover) and (pointer: fine) {
  #alt-key:hover .key-body { background: linear-gradient(145deg, rgba(255,92,0,0.2) 0%, rgba(255,92,0,0.08) 100%); border-color: rgba(255,92,0,0.5); }
}

#alt-key.pressed .key-body { transform: translateY(2px); border-bottom-width: 1px; background: linear-gradient(145deg, rgba(255,92,0,0.3) 0%, rgba(255,92,0,0.12) 100%); }
#alt-key.locked .key-body { transform: translateY(3px); border-bottom-width: 0px; background: rgba(0,0,0,0.2); border-color: transparent; opacity: 0.5; box-shadow: none; pointer-events: none; }

@media (max-width: 768px) {
  .key-body { width: 76px; height: 76px; }
}

.key-symbol { font-size: 24px; color: var(--white); line-height: 1; opacity: 0.9; }
.key-label { font-size: 10px; font-weight: 500; color: var(--white); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }

#manifesto { font-size: clamp(12px, 1.6vw, 15px); font-weight: 300; color: rgba(255,255,255,0.85); letter-spacing: 0.04em; line-height: 1.6; opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; transition: opacity 0.3s ease; font-family: 'DM Mono', monospace; }
#manifesto span { display: block; }
#manifesto .line2 { color: var(--white); font-weight: 700; margin-top: 4px; }

@media (max-width: 768px) {
  #manifesto { font-size: 13px; }
}

#idle-hint { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.14em; text-shadow: 0 0 12px rgba(255,255,255,0.3); opacity: 0; transition: opacity 0.8s ease; white-space: nowrap; z-index: 10; pointer-events: none; }
#idle-hint.show { opacity: 1; }

@media (max-width: 768px) {
  #idle-hint { font-size: 10px; top: 20px; }
}

#counter-wrap { position: absolute; bottom: 32px; right: 40px; display: flex; align-items: center; gap: 8px; opacity: 0; animation: fadeIn 1s ease 1.4s forwards; z-index: 50; }
#counter-label { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; transition: all 0.3s; }
#counter-val { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); min-width: 28px; transition: color 0.3s ease, transform 0.3s ease; }
#counter-val.pop { color: #FF5C00; transform: scale(1.4); }

@media (max-width: 768px) {
  #counter-wrap { bottom: 20px; right: 24px; }
}

#wpp-cta { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(0); opacity: 1; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: all; z-index: 50; display: flex; gap: 12px; align-items: center; justify-content: center; width: max-content; }

@media (max-width: 480px) {
  #wpp-cta { flex-direction: row; gap: 8px; width: max-content; bottom: 24px; }
  #wpp-btn, .ghost-btn { justify-content: center; padding: 10px 16px; font-size: 11px; }
}

#wpp-btn { display: flex; align-items: center; gap: 8px; background: rgba(37, 211, 102, 0.15); border: 1px solid rgba(37, 211, 102, 0.3); border-radius: 100px; padding: 12px 24px; color: rgba(255,255,255,0.95); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease; }

@media (hover: hover) and (pointer: fine) {
  #wpp-btn { cursor: none; }
  #wpp-btn:hover { background: rgba(37, 211, 102, 0.25); border-color: rgba(37, 211, 102, 0.6); }
}

@media (hover: none) {
  #wpp-btn:active { background: rgba(37, 211, 102, 0.3); }
}

.wpp-dot { width: 7px; height: 7px; background: #25D366; border-radius: 50%; animation: pulse-green 1.5s ease infinite; }

.ghost-btn { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; padding: 12px 24px; color: rgba(255,255,255,0.75); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-decoration: none; transition: all 0.2s ease; }

@media (hover: hover) and (pointer: fine) {
  .ghost-btn { cursor: none; }
  .ghost-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,92,0,0.5); color: #fff; }
}

@media (hover: none) {
  .ghost-btn:active { background: rgba(255,255,255,0.08); border-color: rgba(255,92,0,0.4); color: #fff; }
}

.ripple { position: absolute; border-radius: 50%; border: 1px solid rgba(255,92,0,0.8); transform: scale(0); animation: ripple-out 0.9s ease-out forwards; pointer-events: none; }

#easter-msg { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: rgba(10,10,10,0.95); border: 1px solid rgba(255,92,0,0.4); border-radius: 16px; padding: 2rem 2.5rem; text-align: center; z-index: 100; opacity: 0; pointer-events: none; transition: all 0.3s ease; backdrop-filter: blur(12px); font-family: 'DM Mono', monospace; }
#easter-msg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: all; }
#easter-msg p { font-size: 14px; font-weight: 300; color: white; line-height: 1.8; }
#easter-msg p strong { color: #FF5C00; font-weight: 700; }

@media (max-width: 480px) {
  #easter-msg { width: calc(100vw - 48px); padding: 1.5rem; }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes ripple-out { 0% { transform: scale(0); opacity: 0.8; } 100% { transform: scale(4); opacity: 0; } }
@keyframes pulse-green { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
