/* ---- FONTS ---- */
@font-face {
  font-family: "Konthen";
  src: url("../fonts/Konthen.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* ---- TOKENS ---- */
:root {
  --color-green-dark: #1a4a3a;
  --color-green-mid: #2d7a5e;
  --color-green-light: #4aad85;
  --color-green-pale: #a8dfc7;
  --color-cream: #f5f2eb;
  --color-white: #ffffff;
  --color-ink: #0f2a20;
  --font-display: "Konthen", cursive;
  --font-ui: "Nunito", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
  max-width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---- CURSOR ---- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--color-green-mid);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease,
    background 0.2s ease;
  will-change: transform;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-green-mid);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.35s ease,
    height 0.35s ease,
    border-color 0.2s ease,
    opacity 0.3s ease;
}
body.cursor-on-dark .cursor {
  background: var(--color-cream);
}
body.cursor-on-dark .cursor-ring {
  border-color: var(--color-cream);
}
.cursor.on-hover {
  transform: translate(-50%, -50%) scale(1.8);
}
.cursor-ring.on-hover {
  width: 52px;
  height: 52px;
  opacity: 0.6;
}
a,
button,
[role="button"] {
  cursor: none !important;
}

/* ---- NOISE OVERLAY ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/utils/noise.svg");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 242, 235, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(26, 74, 58, 0.12);
  transition:
    padding 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.header.scrolled {
  padding: 12px 48px;
  background: rgba(245, 242, 235, 0.97);
  box-shadow: 0 4px 30px rgba(26, 74, 58, 0.08);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__img {
  height: 50px;
  width: auto;
}

/* ---- ANIMATED BACKGROUND ---- */
.bg-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 74, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 74, 58, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}
.blob--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-green-light), transparent);
  top: -200px;
  right: -100px;
  animation: floatBlob1 18s ease-in-out infinite;
}
.blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-green-mid), transparent);
  bottom: -150px;
  left: -100px;
  animation: floatBlob2 22s ease-in-out infinite;
}
.blob--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #b8d8e8, transparent);
  top: 40%;
  left: 40%;
  animation: floatBlob3 26s ease-in-out infinite;
}
@keyframes floatBlob1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-60px, 80px) scale(1.1);
  }
  66% {
    transform: translate(40px, -40px) scale(0.9);
  }
}
@keyframes floatBlob2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(80px, -60px) scale(1.15);
  }
  66% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}
@keyframes floatBlob3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-80px, -60px) scale(1.2);
  }
}

/* Particles (created by JS) */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-green-light);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ---- MAIN ---- */
.main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
}

/* 2-column grid */
.wip-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

/* ---- LEFT: COPY ---- */
.wip-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Badge */
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 74, 58, 0.08);
  border: 1.5px solid rgba(74, 173, 133, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-green-mid);
  width: fit-content;
  animation: fadeSlideUp 0.8s ease both;
}
.wip-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-light);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* Title */
.wip-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--color-green-dark);
  animation: fadeSlideUp 0.9s ease 0.1s both;
}
.wip-title .accent {
  color: var(--color-green-light);
}
.wip-title .outline {
  -webkit-text-stroke: 2px var(--color-green-dark);
  color: transparent;
}

/* Description */
.wip-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-green-dark);
  opacity: 0.75;
  max-width: 440px;
  animation: fadeSlideUp 0.9s ease 0.2s both;
}

/* Progress bar */
.wip-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeSlideUp 0.9s ease 0.3s both;
}
.wip-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-green-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  gap: 6px;
}
.wip-progress-track {
  height: 6px;
  background: rgba(26, 74, 58, 0.12);
  border-radius: 100px;
  overflow: hidden;
}
.wip-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-green-mid),
    var(--color-green-light)
  );
  border-radius: 100px;
  width: 0%;
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps */
.wip-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideUp 0.9s ease 0.4s both;
}
.wip-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-green-dark);
  opacity: 0.7;
}
.wip-step.done {
  opacity: 1;
}
.wip-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(26, 74, 58, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--color-green-mid);
  transition: all 0.3s ease;
}
.wip-step.done .wip-step-icon {
  background: var(--color-green-light);
  border-color: var(--color-green-light);
  color: white;
}
.wip-step.active .wip-step-icon {
  border-color: var(--color-green-light);
  color: var(--color-green-light);
  animation: spinLoader 1.2s linear infinite;
}
@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

/* Social */
.wip-social {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeSlideUp 0.9s ease 0.5s both;
}
.wip-social-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-green-dark);
  opacity: 0.5;
}
.wip-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(26, 74, 58, 0.18);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-green-dark);
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.wip-social-link:hover {
  background: var(--color-green-dark);
  color: var(--color-cream);
  border-color: var(--color-green-dark);
  transform: translateY(-3px);
}
.wip-social-link svg {
  width: 16px;
  height: 16px;
}

/* ---- RIGHT: MASCOT ---- */
.wip-mascot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  animation: fadeSlideUp 1s ease 0.3s both;
}

/* Rings */
.mascot-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(74, 173, 133, 0.25);
  animation: slowRotate linear infinite;
}
.mascot-ring--outer {
  width: 380px;
  height: 380px;
  animation-duration: 30s;
}
.mascot-ring--inner {
  width: 280px;
  height: 280px;
  animation-duration: 20s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(74, 173, 133, 0.1);
}
@keyframes slowRotate {
  to {
    transform: rotate(360deg);
  }
}

.ring-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green-light);
}
.ring-dot:nth-child(1) {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}
.ring-dot:nth-child(2) {
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
}
.ring-dot:nth-child(3) {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}
.ring-dot:nth-child(4) {
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}

/* Glow */
.mascot-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(74, 173, 133, 0.18),
    transparent 70%
  );
  filter: blur(30px);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Mascot image */
.mascot-img {
  position: relative;
  z-index: 2;
  width: 260px;
  height: auto;
  animation: mascotFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(26, 74, 58, 0.2));
  transform-origin: bottom center;
}
@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-14px) rotate(-1deg);
  }
  75% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* Speech bubble — hidden on mobile via media query */
.mascot-bubble {
  position: absolute;
  top: 6%;
  /* anchor to the right side of the mascot, but capped inside the column */
  right: 0;
  transform: translateX(0);
  background: var(--color-green-dark);
  color: var(--color-cream);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 14px 14px 4px 14px;
  white-space: nowrap;
  z-index: 10;
  animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
  box-shadow: 0 8px 24px rgba(26, 74, 58, 0.25);
}
.mascot-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: auto;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--color-green-dark);
}
@keyframes bubblePop {
  from {
    transform: scale(0) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Floating tags */
.floating-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(74, 173, 133, 0.3);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-green-dark);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(26, 74, 58, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 5;
  max-width: calc(100% - 20px);
}
.tag-emoji {
  font-size: 14px;
}

.floating-tag--1 {
  top: 14%;
  left: 0;
  animation: tagFloat1 6s ease-in-out infinite 0.5s both;
  opacity: 0;
}
.floating-tag--2 {
  bottom: 18%;
  right: 0;
  animation: tagFloat2 7s ease-in-out infinite 1s both;
  opacity: 0;
}
.floating-tag--3 {
  bottom: 3%;
  left: 4%;
  animation: tagFloat3 8s ease-in-out infinite 0.2s both;
  opacity: 0;
}
@keyframes tagFloat1 {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}
@keyframes tagFloat2 {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(-15px);
    opacity: 0;
  }
}
@keyframes tagFloat3 {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateX(8px);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(-10px);
    opacity: 0;
  }
}

/* ---- COUNTDOWN ---- */
.wip-countdown {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  animation: fadeSlideUp 1s ease 0.8s both;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(74, 173, 133, 0.2);
  border-radius: 16px;
  padding: 20px 28px;
  backdrop-filter: blur(12px);
  width: 90px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.countdown-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-green-light);
}
.countdown-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--color-green-dark);
}
.countdown-num.flip {
  animation: numFlip 0.3s ease;
}
@keyframes numFlip {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.countdown-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-green-mid);
  margin-top: 4px;
}
.countdown-sep {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-green-light);
  align-self: center;
  margin-bottom: 20px;
  opacity: 0.5;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.1;
  }
}

/* ---- FOOTER ---- */
.wip-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-green-dark);
  opacity: 0.45;
  letter-spacing: 0.5px;
  animation: fadeSlideUp 1s ease 1s both;
}

/* ---- SHARED ANIMATIONS ---- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .wip-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .wip-content {
    align-items: center;
  }
  .wip-badge {
    align-self: center;
  }
  .wip-desc {
    text-align: center;
  }
  .wip-mascot-wrap {
    order: -1;
  }
  .mascot-ring--outer {
    width: 300px;
    height: 300px;
  }
  .mascot-ring--inner {
    width: 220px;
    height: 220px;
  }
  .mascot-img {
    width: 200px;
  }
  /* Tags and bubble don't fit cleanly in 1-col layout */
  .floating-tag {
    display: none;
  }
  .mascot-bubble {
    display: none;
  }
  .header {
    padding: 16px 24px;
  }
  .main {
    padding: 100px 24px 60px;
  }
}

/* ---- COUNTDOWN RESPONSIVE ---- */

/* Tamanho fixo base para evitar variação ao trocar dígitos */
.countdown-item {
  width: 90px;
  flex-shrink: 0;
  flex-grow: 0;
}

/* 560px → 426px: cards menores mas ainda em linha única */
@media (max-width: 560px) {
  .wip-countdown {
    gap: 6px;
  }
  .countdown-item {
    width: 72px;
    padding: 14px 8px;
  }
  .countdown-num {
    font-size: 2rem;
  }
  .countdown-sep {
    font-size: 1.8rem;
  }
}

/* ≤ 425px: grid 2×2, sem separadores */
@media (max-width: 425px) {
  .wip-countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: center;
  }

  .countdown-sep {
    display: none;
  }

  .countdown-item {
    width: 100%;
    max-width: 150px;
    padding: 16px 12px;
  }

  .countdown-num {
    font-size: 2.4rem;
  }

  .countdown-label {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
  a,
  button,
  [role="button"] {
    cursor: pointer !important;
  }
}
