/* ===================================================================
   QIMO LAB — Playful Modernism
   Warm, bouncy, candy-colored, geometric joy
   =================================================================== */

/* ===== Custom Properties ===== */
:root {
  --c-cream: #FFF8F0;
  --c-cream-dark: #FFF0E0;
  --c-ink: #1a1a2e;
  --c-ink-soft: #3d3d5c;
  --c-ink-muted: #8888a8;
  --c-coral: #FF6B6B;
  --c-coral-soft: #FFB4B4;
  --c-coral-bg: #FFF0EE;
  --c-teal: #4ECDC4;
  --c-teal-soft: #B2F0EA;
  --c-yellow: #FFE66D;
  --c-yellow-warm: #FFD93D;
  --c-lavender: #A78BFA;
  --c-lavender-soft: #DDD1FF;
  --c-white: #ffffff;

  --f-display: 'Bricolage Grotesque', 'Georgia', serif;
  --f-body: 'Nunito', 'Verdana', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 24px rgba(26, 26, 46, 0.06);
  --shadow-lifted: 0 12px 40px rgba(26, 26, 46, 0.1);
  --shadow-playful: 6px 6px 0px var(--c-ink);

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background-color: var(--c-cream);
  color: var(--c-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
  color: var(--c-coral);
}

/* ===== Dotted background texture ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, var(--c-ink) 0.7px, transparent 0.7px);
  background-size: 28px 28px;
}

/* ===== Floating Shapes ===== */
.shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: shapeDrift 18s ease-in-out infinite alternate;
}

.shape--circle {
  border-radius: 50%;
}

.shape--square {
  border-radius: var(--radius-sm);
}

.shape--donut {
  border-radius: 50%;
  background: transparent !important;
  border: 6px solid var(--c-lavender);
}

.shape--1 {
  width: 140px;
  height: 140px;
  background: var(--c-yellow);
  opacity: 0.18;
  top: 8%;
  right: 10%;
  animation-delay: 0s;
  animation-duration: 22s;
}

.shape--2 {
  width: 80px;
  height: 80px;
  background: var(--c-coral);
  opacity: 0.12;
  top: 55%;
  left: 5%;
  animation-delay: -3s;
  animation-duration: 16s;
  transform: rotate(15deg);
}

.shape--3 {
  width: 60px;
  height: 60px;
  background: var(--c-teal);
  opacity: 0.2;
  bottom: 20%;
  right: 15%;
  animation-delay: -6s;
  animation-duration: 20s;
}

.shape--4 {
  width: 100px;
  height: 100px;
  opacity: 0.15;
  top: 35%;
  right: 25%;
  animation-delay: -9s;
  animation-duration: 24s;
}

.shape--5 {
  width: 50px;
  height: 50px;
  background: var(--c-lavender);
  opacity: 0.15;
  bottom: 10%;
  left: 20%;
  animation-delay: -4s;
  animation-duration: 19s;
  transform: rotate(30deg);
}

.shape--6 {
  width: 90px;
  height: 90px;
  background: var(--c-coral-soft);
  opacity: 0.12;
  top: 75%;
  right: 45%;
  animation-delay: -7s;
  animation-duration: 21s;
}

@keyframes shapeDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -20px) rotate(12deg);
  }
  66% {
    transform: translate(-15px, 25px) rotate(-8deg);
  }
  100% {
    transform: translate(20px, -10px) rotate(5deg);
  }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease-bounce);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.logo-blob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-coral);
  border-radius: var(--radius-sm);
  transform: rotate(-3deg);
  transition: transform 0.4s var(--ease-bounce);
  box-shadow: 3px 3px 0px var(--c-ink);
}

.nav-logo:hover .logo-blob {
  transform: rotate(3deg) scale(1.08);
}

.logo-letter {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-white);
  line-height: 1;
}

.logo-text {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-ink);
}

.nav-cta {
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--c-ink);
  box-shadow: 3px 3px 0px var(--c-ink);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px var(--c-ink);
}

.nav-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--c-ink);
}

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  margin-bottom: 2rem;
  box-shadow: 3px 3px 0px var(--c-ink);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* Title */
.hero-title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 2rem;
}

.hero-word {
  display: block;
}

.hero-word--highlight {
  color: var(--c-coral);
  position: relative;
}

.hero-word--highlight::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: -0.05em;
  right: -0.05em;
  height: 0.22em;
  background: var(--c-yellow);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.7;
  transform: rotate(-0.5deg);
}

.hero-word--teal {
  color: var(--c-teal);
}

/* Subtitle */
.hero-sub {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--c-ink-muted);
  font-weight: 500;
  line-height: 1.7;
}

/* Arrow bounce */
.hero-arrows {
  display: flex;
  justify-content: center;
}

.arrow-bounce {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--c-ink);
  background: var(--c-white);
  border: 2.5px solid var(--c-ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0px var(--c-ink);
  animation: arrowBob 2s var(--ease-bounce) infinite;
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Pop-in Animation ===== */
.anim-pop {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: popIn 0.6s var(--ease-bounce) forwards;
  animation-delay: var(--pop-delay, 0s);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-lavender);
  background: var(--c-lavender-soft);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-bounce);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Product Cards ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--c-white);
  border: 2.5px solid var(--c-ink);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-playful);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s ease;
  cursor: default;
  /* scroll reveal */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-bounce), box-shadow 0.35s ease;
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  box-shadow: 8px 8px 0px var(--c-ink);
}

.card--coral {
  background: linear-gradient(145deg, var(--c-white) 60%, var(--c-coral-bg) 100%);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--c-coral);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0px var(--c-ink);
}

.card-badge {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--c-ink);
  animation: badgeWiggle 3s ease-in-out infinite;
}

@keyframes badgeWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

.card-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 1rem;
  color: var(--c-ink-soft);
  line-height: 1.75;
  max-width: 540px;
}

.card-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  background: var(--c-cream);
  transition: background 0.25s ease, transform 0.25s var(--ease-bounce);
}

.pill:hover {
  background: var(--c-teal-soft);
  transform: translateY(-2px);
}

/* Decorative corner blob */
.card-corner {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  background: var(--c-teal);
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.card:hover .card-corner {
  opacity: 0.3;
}

/* Mystery card */
.card--mystery {
  background: var(--c-cream-dark);
  border-style: dashed;
  border-color: var(--c-ink-muted);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.card--mystery:hover {
  box-shadow: none;
  border-color: var(--c-lavender);
}

.card-mystery-inner {
  text-align: center;
}

.mystery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-lavender);
  background: var(--c-lavender-soft);
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: mysteryFloat 3s ease-in-out infinite;
}

@keyframes mysteryFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

.mystery-text {
  font-size: 0.95rem;
  color: var(--c-ink-muted);
  font-weight: 500;
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--c-white);
  border-top: 2.5px solid var(--c-ink);
  border-bottom: 2.5px solid var(--c-ink);
}

.contact-body {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 500;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--c-white);
  background: var(--c-coral);
  padding: 1rem 2rem;
  border: 2.5px solid var(--c-ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-playful);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease, background 0.3s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--c-ink);
  background: var(--c-teal);
}

.contact-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--c-ink);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease-bounce);
}

.contact-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--c-coral);
  color: var(--c-white);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
  border-radius: 8px;
  transform: rotate(-3deg);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.6;
  font-style: italic;
}

/* ===== Reduced Motion ===== */
.reduce-motion .anim-pop,
@media (prefers-reduced-motion: reduce) {
  .anim-pop {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card {
    opacity: 1;
    transform: none;
  }

  .shape,
  .arrow-bounce,
  .badge-dot,
  .card-badge,
  .mystery-icon {
    animation: none;
  }
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 900px) {
  .hero {
    padding: 6rem 1.75rem 3rem;
  }

  .section {
    padding: 4.5rem 1.75rem;
  }

  .shape--1 { width: 100px; height: 100px; }
  .shape--4 { display: none; }
  .shape--6 { display: none; }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 600px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }

  .hero {
    padding: 5.5rem 1.25rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .card-name {
    font-size: 1.35rem;
  }

  .card-desc {
    font-size: 0.92rem;
  }

  .card-icon {
    width: 44px;
    height: 44px;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  .card-corner {
    width: 50px;
    height: 50px;
  }

  .contact-btn {
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
  }

  .shape--2 { display: none; }
  .shape--5 { display: none; }
}
