/* ==========================================================================
   CM STORE — DESIGN SYSTEM & ESTILO CANÔNICO
   Paleta: #E6D7EE (Lilás Lavanda) & #665148 (Marrom-Avermelhado Terroso)
   Tipografia: Montserrat
   Zero Caixas Cinzas • Fundo Contínuo • Shiny Sweep Glow • Mobile-First
   ========================================================================== */

:root {
  /* Cores Oficiais Travadas */
  --brand-lavender: #E6D7EE;
  --brand-earth: #665148;
  
  /* Derivados Harmônicos Semânticos */
  --brand-lavender-glow: rgba(230, 215, 238, 0.55);
  --brand-lavender-soft: rgba(230, 215, 238, 0.14);
  --brand-lavender-subtle: rgba(230, 215, 238, 0.08);

  --brand-earth-deep: #1A1311;
  --brand-earth-dark: #271D1A;
  --brand-earth-surface: #362924;
  --brand-earth-glow: rgba(102, 81, 72, 0.45);
  --brand-earth-soft: rgba(102, 81, 72, 0.25);

  /* Superfície, Fios & Luz */
  --bg-canvas: #140E0C;
  --text-main: #FCFAFD;
  --text-soft: #E6D7EE;
  --text-muted: #B3A0A8;
  
  --edge: rgba(230, 215, 238, 0.18);
  --edge-hover: rgba(230, 215, 238, 0.45);
  --glass-glow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --shadow-long: 0 20px 48px -16px rgba(10, 6, 5, 0.7);

  /* Curva Canônica de Easing */
  --ease-prime: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 22px;
  --radius-btn: 999px;
}

/* Reset Global & Anti-Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden !important;
  background: var(--bg-canvas);
  line-height: 1.5;
}

/* Canvas Three.js Interativo */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* Fundo Contínuo com Véus de Transição e Deriva Lenta (Regra 16 §1.3) */
.field-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(65% 55% at 15% 10%, rgba(230, 215, 238, 0.16), transparent 70%),
    radial-gradient(60% 50% at 85% 25%, rgba(102, 81, 72, 0.38), transparent 75%),
    radial-gradient(75% 60% at 50% 90%, rgba(230, 215, 238, 0.12), transparent 70%),
    radial-gradient(50% 40% at 50% 50%, rgba(102, 81, 72, 0.22), transparent 60%);
  background-size: 160% 160%;
  animation: fieldDrift 28s ease-in-out infinite alternate;
}

@keyframes fieldDrift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 50% 50%; }
  100% { background-position: 18% 12%, 82% 16%, 46% 90%, 52% 48%; }
}

@media (prefers-reduced-motion: reduce) {
  .field-overlay {
    animation: none;
  }
}

/* Container Estrutural Limpo */
.page-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ==========================================================================
   TOPO DE MARCA
   ========================================================================== */
.brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 10px;
}

.brand-avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.brand-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-lavender);
  box-shadow: 0 12px 32px -8px var(--brand-earth-glow), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.4s var(--ease-prime);
}

.brand-avatar-wrap:hover .brand-avatar {
  transform: scale(1.04);
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(230, 215, 238, 0.45);
  animation: ringRotate 24s linear infinite;
  pointer-events: none;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-lavender);
  letter-spacing: 0.04em;
  opacity: 0.95;
}

/* ==========================================================================
   HERO SECTION (SEM BADGES)
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 0 4px;
}

/* Linha de localização pura (sem badge, sem moldura, sem fundo) */
.hero-location-line {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: -4px;
}

.hero-title {
  font-size: clamp(24px, 5.2vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.highlight-lavender {
  color: var(--brand-lavender);
  text-shadow: 0 0 24px var(--brand-lavender-glow);
  font-style: italic;
  font-weight: 600;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* ==========================================================================
   BOTÃO SHINY SWEEP GLOW CANÔNICO
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  min-height: 56px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--brand-lavender) 0%, #D4BFDF 100%);
  color: var(--brand-earth-deep);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 36px -10px var(--brand-lavender-glow), 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s var(--ease-prime), box-shadow 0.3s var(--ease-prime);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 22px 48px -8px var(--brand-lavender-glow), 0 6px 16px rgba(0,0,0,0.4);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}

/* Efeito Shiny Sweep */
.btn-shiny {
  position: relative;
  overflow: hidden;
}

.btn-shiny::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    70deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: shinySweep 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes shinySweep {
  0%, 25% { left: -70%; }
  60%, 100% { left: 150%; }
}

.btn-icon {
  transition: transform 0.3s var(--ease-prime);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.hero-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-microcopy svg {
  color: var(--brand-lavender);
}

/* ==========================================================================
   BENDING MARQUEE
   ========================================================================== */
.marquee-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 14px 0;
  background: linear-gradient(90deg, rgba(102, 81, 72, 0.35) 0%, rgba(230, 215, 238, 0.12) 50%, rgba(102, 81, 72, 0.35) 100%);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(8px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-lavender);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-content .dot {
  color: rgba(230, 215, 238, 0.5);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   LINKS SECTION (BIO LINK PRIME)
   ========================================================================== */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Card Canônico de Link */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  min-height: 76px;
  border-radius: var(--radius-card);
  border: 1px solid var(--edge);
  background: linear-gradient(135deg, rgba(54, 41, 36, 0.45) 0%, rgba(26, 19, 17, 0.65) 100%);
  box-shadow: var(--glass-glow), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.32s var(--ease-prime), border-color 0.32s var(--ease-prime), box-shadow 0.32s var(--ease-prime);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--edge-hover);
  box-shadow: var(--glass-glow), 0 18px 36px -12px var(--brand-earth-glow);
}

.link-card__icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(230, 215, 238, 0.12);
  color: var(--brand-lavender);
  border: 1px solid rgba(230, 215, 238, 0.2);
  transition: background 0.3s var(--ease-prime), color 0.3s var(--ease-prime), transform 0.3s var(--ease-prime);
}

.link-card:hover .link-card__icon-box {
  background: var(--brand-lavender);
  color: var(--brand-earth-deep);
  transform: scale(1.05);
}

.link-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.link-card__title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.link-card__desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.link-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--edge);
  color: var(--brand-lavender);
  transition: transform 0.32s var(--ease-prime), background 0.32s var(--ease-prime), color 0.32s var(--ease-prime);
}

.link-card:hover .link-card__arrow {
  transform: rotate(-45deg) translate(2px, -2px);
  background: var(--brand-lavender);
  color: var(--brand-earth-deep);
  border-color: var(--brand-lavender);
}

/* Card 1: Featured Invertido (Lilás Lavanda) */
.link-card--featured {
  background: linear-gradient(135deg, #E6D7EE 0%, #D8C2E4 100%);
  color: var(--brand-earth-deep);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 36px -12px var(--brand-lavender-glow);
}

.link-card--featured .link-card__title {
  color: var(--brand-earth-deep);
  font-weight: 700;
}

.link-card--featured .link-card__desc {
  color: #553E35;
  font-weight: 500;
}

.link-card--featured .link-card__icon-box {
  background: var(--brand-earth-deep);
  color: var(--brand-lavender);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.link-card--featured .link-card__arrow {
  border-color: rgba(102, 81, 72, 0.3);
  color: var(--brand-earth-deep);
}

.link-card--featured:hover .link-card__arrow {
  background: var(--brand-earth-deep);
  color: var(--brand-lavender);
}

/* ==========================================================================
   SHOWCASE SECTION & SCROLL STACK CARDS
   ========================================================================== */
.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-top: 10px;
}

.showcase-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.showcase-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.showcase-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 480px;
}

.stack-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.stack-card {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--edge);
  background: linear-gradient(135deg, rgba(54, 41, 36, 0.5) 0%, rgba(26, 19, 17, 0.7) 100%);
  box-shadow: var(--glass-glow), var(--shadow-long);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-prime), border-color 0.4s var(--ease-prime);
}

.stack-card:hover {
  border-color: var(--edge-hover);
  transform: translateY(-3px);
}

.stack-card__media {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.stack-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-prime);
}

.stack-card:hover .stack-card__img {
  transform: scale(1.04);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(20, 14, 12, 0.9) 100%);
  pointer-events: none;
}

.stack-card__content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-lavender);
  text-transform: uppercase;
}

.stack-card__heading {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.stack-card__text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--brand-lavender);
  color: var(--brand-earth-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 24px -8px var(--brand-lavender-glow);
  transition: transform 0.28s var(--ease-prime), box-shadow 0.28s var(--ease-prime);
}

.btn-card-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px var(--brand-lavender-glow);
}

/* ==========================================================================
   DATABLOCK SECTION (DADOS FACTUAIS)
   ========================================================================== */
.datablock-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.datablock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.datablock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 12px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: linear-gradient(135deg, rgba(54, 41, 36, 0.35) 0%, rgba(26, 19, 17, 0.5) 100%);
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(10px);
}

.datablock-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(230, 215, 238, 0.12);
  color: var(--brand-lavender);
  margin-bottom: 2px;
}

.datablock-item__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.datablock-item__value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.datablock-item__sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   FAQ SECTION (ACORDEÃO LIMPO)
   ========================================================================== */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faq-header {
  text-align: center;
}

.faq-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: linear-gradient(135deg, rgba(54, 41, 36, 0.35) 0%, rgba(26, 19, 17, 0.5) 100%);
  box-shadow: var(--glass-glow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color 0.28s var(--ease-prime);
}

.faq-item[open] {
  border-color: var(--edge-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--brand-lavender);
  transition: transform 0.3s var(--ease-prime);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer-section {
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-lavender);
}

.footer-slogan {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.footer-links a {
  color: var(--brand-lavender);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-links .sep {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.75;
}

/* ==========================================================================
   WHATSAPP FLUTUANTE (CANÔNICO)
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #FFFFFF;
  z-index: 900;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.28s var(--ease-prime), box-shadow 0.28s var(--ease-prime);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 40px -6px rgba(37, 211, 102, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.wa-float:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVIDADE RIGOROSA (320px A 1920px)
   ========================================================================== */
@media (max-width: 600px) {
  .page-wrap {
    padding: 36px 16px 96px;
    gap: 30px;
  }

  .brand-name {
    font-size: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .datablock-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stack-card__media {
    height: 320px;
  }

  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
  }

  .wa-float svg {
    width: 26px;
    height: 26px;
  }

  body {
    padding-bottom: 84px;
  }
}
