/* ==========================================================================
   GOTA CONSCIENTE — LIQUID GLASS LENS & WATER DROPLET DESIGN SYSTEM
   Baseado na arquitetura óptica de Liquid_Glass_Lens (deslocamento SVG + cáusticas CSS)
   Mobile-First, Intuitivo e Focado em Conscientização Hídrica
   ========================================================================== */

/* --- 1. Custom Properties & Temas Aquáticos --- */
:root,
[data-theme="aqua"] {
  --font-main: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --bg-base: #eef8ff;
  --bg-gradient: radial-gradient(circle at 18% 15%, rgba(56, 189, 248, 0.35) 0%, transparent 45%),
                 radial-gradient(circle at 85% 28%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
                 radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 55%),
                 linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 55%, #ecfdf5 100%);
  --text-primary: #082f49;
  --text-secondary: #0369a1;
  --text-muted: #475569;
  --accent-color: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.22);
  --danger-color: #e11d48;
  --danger-glow: rgba(225, 29, 72, 0.16);
  --emerald-color: #059669;
  --card-bg-subtle: rgba(255, 255, 255, 0.62);
  --card-border-subtle: rgba(255, 255, 255, 0.88);
  --btn-icon-bg: #0284c7;
  --btn-icon-fill: #ffffff;
  --text-glass-default: #082f49;
  --grid-line-color: rgba(2, 132, 199, 0.06);
}

[data-theme="aurora"] {
  --bg-base: #041e27;
  --bg-gradient: radial-gradient(circle at 20% 25%, rgba(14, 165, 233, 0.38) 0%, transparent 50%),
                 radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.32) 0%, transparent 45%),
                 radial-gradient(circle at 50% 85%, rgba(3, 105, 161, 0.45) 0%, transparent 55%),
                 #03131a;
  --text-primary: #f0fdfa;
  --text-secondary: #bae6fd;
  --text-muted: #7dd3fc;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.32);
  --card-bg-subtle: rgba(8, 47, 73, 0.55);
  --card-border-subtle: rgba(186, 230, 253, 0.25);
  --btn-icon-bg: #38bdf8;
  --btn-icon-fill: #041e27;
  --text-glass-default: #f0fdfa;
  --grid-line-color: rgba(56, 189, 248, 0.08);
}

[data-theme="mesh"] {
  --bg-base: #f0fdfa;
  --bg-gradient: radial-gradient(circle at 15% 20%, #a5f3fc 0%, transparent 42%),
                 radial-gradient(circle at 85% 25%, #bfdbfe 0%, transparent 46%),
                 radial-gradient(circle at 50% 75%, #99f6e4 0%, transparent 50%),
                 radial-gradient(circle at 80% 85%, #bbf7d0 0%, transparent 42%),
                 #f0f9ff;
  --text-primary: #0f172a;
  --text-secondary: #1e3a8a;
  --text-muted: #475569;
  --accent-color: #0d9488;
  --accent-glow: rgba(13, 148, 136, 0.25);
  --card-bg-subtle: rgba(255, 255, 255, 0.68);
  --card-border-subtle: rgba(255, 255, 255, 0.92);
  --btn-icon-bg: #0f766e;
  --btn-icon-fill: #ffffff;
  --text-glass-default: #0f172a;
  --grid-line-color: rgba(13, 148, 136, 0.06);
}

[data-theme="obsidian"] {
  --bg-base: #060b14;
  --bg-gradient: radial-gradient(circle at 20% 15%, #0c4a6e 0%, transparent 50%),
                 radial-gradient(circle at 80% 80%, #064e3b 0%, transparent 50%),
                 radial-gradient(circle at 50% 50%, #0f172a 0%, transparent 60%),
                 #030712;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --card-bg-subtle: rgba(15, 23, 42, 0.68);
  --card-border-subtle: rgba(255, 255, 255, 0.14);
  --btn-icon-bg: #38bdf8;
  --btn-icon-fill: #090a0f;
  --text-glass-default: #f8fafc;
  --grid-line-color: rgba(255, 255, 255, 0.04);
}

/* --- 2. Base Reset & Layout --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.55;
  transition: background 0.5s ease, color 0.3s ease;
  position: relative;
}

button, input, select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

section[id] {
  scroll-margin-top: 90px;
}

:where(button, a, input, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

/* --- Iluminação Ambiente, Grade & Gotas Flutuantes --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: clip;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-size: 38px 38px;
  background-image:
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 55%, transparent 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
}

.ambient-orb-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), rgba(2, 132, 199, 0.1));
  top: 6%;
  left: -5%;
}

.ambient-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), rgba(14, 165, 233, 0.1));
  top: 42%;
  right: -8%;
}

.ambient-orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.38), rgba(59, 130, 246, 0.08));
  bottom: 10%;
  left: 18%;
}

/* Gotas de água de vidro decorativas no fundo */
.floating-water-drop {
  position: absolute;
  border-radius: 52% 48% 66% 34% / 62% 58% 42% 38%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), rgba(56, 189, 248, 0.12) 60%, rgba(2, 132, 199, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 4px 6px 10px rgba(255, 255, 255, 0.85),
    inset -4px -6px 12px rgba(2, 132, 199, 0.25),
    0 12px 28px rgba(2, 132, 199, 0.12);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: floatWaterDrop 9s ease-in-out infinite alternate;
}

.drop-bg-1 {
  width: 56px;
  height: 68px;
  top: 14%;
  right: 8%;
}

.drop-bg-2 {
  width: 38px;
  height: 46px;
  top: 56%;
  left: 4%;
  animation-delay: -3s;
}

.drop-bg-3 {
  width: 48px;
  height: 58px;
  bottom: 18%;
  right: 12%;
  animation-delay: -6s;
}

@keyframes floatWaterDrop {
  0% {
    transform: translateY(0) rotate(-4deg) scale(1);
    border-radius: 52% 48% 66% 34% / 62% 58% 42% 38%;
  }
  50% {
    transform: translateY(-14px) rotate(3deg) scale(1.04);
    border-radius: 48% 52% 45% 55% / 55% 64% 36% 45%;
  }
  100% {
    transform: translateY(6px) rotate(-2deg) scale(0.98);
    border-radius: 56% 44% 58% 42% / 64% 50% 50% 36%;
  }
}

.site-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   --- 3. MOTOR ÓPTICO LIQUID GLASS LENS (.box, ::before, ::after, .glass-optics) ---
   ========================================================================== */

.optical-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.fx-layer {
  position: relative;
}

/* Primitiva Oficial Liquid Glass (.box) */
.box {
  --w: 100px;
  --h: 100px;
  --r: 9999px;
  --tr: 20%;
  z-index: 1;
  position: relative;
  width: var(--w);
  height: var(--h);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--r);
  border: 1px solid rgb(255 255 255 / 68%);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.9),
    inset -1px -1px 2px rgba(14, 116, 144, 0.16),
    0 10px 26px rgba(2, 132, 199, 0.14),
    0 2px 5px rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  outline: none;
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease;
}

.box > :not(.glass-optics):not(.circle-overlay) {
  position: relative;
  z-index: 3;
}

.box .svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.box .text {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text-glass-default);
  transition: color 0.2s ease;
}

/* Camadas de refração e brilho especular de gota d'água */
.box::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px rgb(12 74 110 / 20%), inset 0 -1px 2px rgb(12 74 110 / 15%);
  pointer-events: none;
  z-index: 1;
}

.box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 38%), transparent var(--tr), transparent calc(100% - var(--tr)), rgb(56 189 248 / 18%));
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 85%), inset 1px 0 1px rgb(255 255 255 / 35%), inset 0 -1px 0 rgb(255 255 255 / 65%);
  pointer-events: none;
  z-index: 2;
}

.box .circle-overlay {
  position: absolute;
  inset: 1px;
  width: auto;
  height: auto;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}

/* Superfícies com motor óptico ativo (optics.js) */
.box.has-optics, .has-optics {
  isolation: isolate;
  background: rgb(255 255 255 / 10%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #082f49;
}

.box > .glass-optics, .glass-optics {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.glass-sampler {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.glass-optics::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glass-tint, rgb(224 242 254 / 24%));
}

[data-glass-material="clear"] {
  --glass-tint: rgb(255 255 255 / 5%);
}

.glass-sampler > .glass-scene-copy {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  margin: 0;
  max-width: none;
  pointer-events: none;
  transform-origin: 0 0;
}

/* Variantes de Botões e Cartões Liquid Glass */
.box-circle {
  --r: 50%;
  aspect-ratio: 1 / 1;
}

/* Formato orgânico de gota de água para ícones */
.water-drop-shape {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40% !important;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), rgba(56, 189, 248, 0.25) 65%, rgba(2, 132, 199, 0.35));
}

.drop-emoji {
  font-size: 1.75rem;
}

.box-sm {
  --h: 42px;
  --tr: 20%;
  padding: 0 1.1rem;
  font-size: 0.88rem;
  gap: 0.5rem;
}

.start-btn {
  padding: 0 1.1rem 0 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.start-btn .text {
  font-size: 1.12rem;
  font-weight: 800;
}

.start-btn .btn-icon {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--btn-icon-bg);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.start-btn .btn-icon .svg {
  width: 16px;
  height: 16px;
  fill: var(--btn-icon-fill);
}

.start-btn:hover {
  transform: translateY(-3px);
}

.start-btn:hover .btn-icon {
  transform: scale(1.1) rotate(5deg);
}

.start-btn:active,
.secondary-glass-btn:active {
  transform: scale(0.96);
}

.secondary-glass-btn {
  padding: 0 1.25rem;
  gap: 0.7rem;
}

.secondary-glass-btn .text {
  font-size: 1rem;
}

.secondary-glass-btn .btn-icon-ghost {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   --- 4. CABEÇALHO FLUTUANTE & SELETOR DE TEMAS ---
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  margin-bottom: 1.75rem;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 9999px;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding-left: 0.35rem;
}

/* Gota de água 3D no logo */
.brand-droplet-icon {
  width: 30px;
  height: 34px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #38bdf8 45%, #0284c7 90%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.95),
    inset -2px -3px 5px rgba(3, 105, 161, 0.6),
    0 3px 10px rgba(2, 132, 199, 0.35);
  position: relative;
  flex-shrink: 0;
}

.brand-droplet-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-20deg);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(2, 132, 199, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(2, 132, 199, 0.07);
  padding: 0.25rem 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.theme-btn.active {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

.theme-btn-aqua { background: linear-gradient(135deg, #bae6fd, #0284c7); }
.theme-btn-aurora { background: linear-gradient(135deg, #042f2e, #0ea5e9); }
.theme-btn-mesh { background: linear-gradient(135deg, #67e8f9, #34d399, #60a5fa); }
.theme-btn-obsidian { background: linear-gradient(135deg, #0f172a, #0284c7); }

.header-cta-wrapper {
  display: none;
}

/* ==========================================================================
   --- 5. HERO SECTION & CONTADOR DE ÁGUA AO VIVO ---
   ========================================================================== */

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0 3rem;
}

.capsule-hero-wrap {
  margin-bottom: 1.4rem;
  max-width: 100%;
}

.dynamic-capsule-lens {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.9rem;
  overflow: clip;
}

.capsule-content-state {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.6rem;
}

.capsule-content-state.active {
  display: flex;
}

.capsule-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e11d48;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}

.pulse-danger {
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.capsule-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.capsule-primary-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capsule-secondary-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capsule-action-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.14);
  color: var(--accent-color);
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.capsule-action-tag.tag-live {
  background: rgba(225, 29, 72, 0.15);
  color: #e11d48;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, #0284c7 10%, #0ea5e9 55%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(0.96rem, 2.5vw, 1.18rem);
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* Palco Óptico do Contador Ao Vivo + Lente Gota de Água */
.optical-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  min-width: 0;
  color: #082f49;
}

.optical-stage > :not(.optical-scene) {
  position: relative;
  z-index: 1;
}

.optical-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 50%, #a7f3d0 100%);
  color: #0c4a6e;
  font-family: var(--font-display);
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 74, 110, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 74, 110, 0.11) 1px, transparent 1px);
  background-size: 32px 32px;
}

.scene-orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -50px;
  top: -20px;
  border: 46px solid rgba(2, 132, 199, 0.35);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.scene-kicker {
  position: absolute;
  top: 18px;
  left: 20px;
  font: 700 10px var(--font-mono);
  letter-spacing: 0.14em;
  color: #0369a1;
}

.scene-type {
  position: absolute;
  left: 20px;
  top: 22%;
  font-weight: 800;
  font-size: clamp(54px, 11vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(8, 47, 73, 0.88);
  text-align: left;
}

.scene-type em {
  font-style: normal;
  color: #0284c7;
  -webkit-text-stroke: 1px #082f49;
}

.scene-stripe {
  position: absolute;
  bottom: 14%;
  left: -10%;
  width: 120%;
  height: 38px;
  background: repeating-linear-gradient(90deg, rgba(12, 74, 110, 0.45) 0 5px, transparent 5px 14px);
  transform: rotate(-10deg);
}

.scene-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font: 600 10px var(--font-mono);
  color: #0c4a6e;
}

.live-counter-stage {
  width: 100%;
  padding: 1.1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--card-border-subtle);
  box-shadow: 0 18px 48px rgba(2, 132, 199, 0.14);
}

.live-counter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.live-glass-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 1.35rem 1.15rem;
  text-align: left;
  cursor: default;
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.live-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #be123c;
  background: rgba(255, 228, 230, 0.85);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 8px #e11d48;
  animation: blinkDot 1.1s infinite alternate;
}

@keyframes blinkDot {
  0% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.2); }
}

.live-counter-number {
  font-family: var(--font-mono);
  font-size: clamp(1.85rem, 7.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #082f49;
  line-height: 1.1;
  margin: 0.2rem 0;
  font-variant-numeric: tabular-nums;
}

.live-counter-unit {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 1.1rem;
}

.live-submetrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.submetric-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.submetric-label {
  font-size: 0.76rem;
  color: #334155;
  font-weight: 500;
}

.submetric-val {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: #0284c7;
  font-weight: 700;
}

/* Cartão da Gota de Água Interativa (Playground Óptico) */
.droplet-playground-card {
  display: flex;
  flex-direction: column;
}

.droplet-stage-viewport {
  position: relative;
  min-height: 260px;
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 10px rgba(2, 132, 199, 0.12);
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.droplet-stage-viewport:active {
  cursor: grabbing;
}

.interactive-lens-element {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 0;
  z-index: 5;
  touch-action: none;
}

.droplet-lens-movable {
  cursor: grab;
  box-shadow:
    inset 3px 4px 8px rgba(255, 255, 255, 0.95),
    inset -3px -5px 10px rgba(2, 132, 199, 0.35),
    0 16px 32px rgba(8, 47, 73, 0.24) !important;
}

.droplet-lens-movable:active {
  cursor: grabbing;
}

.droplet-glint {
  position: absolute;
  top: 16px;
  left: 22px;
  width: 24px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  transform: rotate(-28deg);
  pointer-events: none;
}

.lens-badge-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(8, 47, 73, 0.85);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

/* ==========================================================================
   --- 6. SEÇÕES E ESTRUTURA DE BENTO CARDS ---
   ========================================================================== */

.section-container {
  padding: 2.75rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.25rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background: var(--accent-glow);
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-tag.tag-danger {
  color: var(--danger-color);
  background: var(--danger-glow);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bento Item Genérico com Efeito Liquid Glass */
.bento-item {
  border-radius: 28px;
  background: var(--card-bg-subtle);
  border: 1px solid var(--card-border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: clip;
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.85),
    0 12px 32px rgba(2, 132, 199, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.bento-item:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.95),
    0 18px 40px rgba(2, 132, 199, 0.14);
}

.bento-item-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.bento-item-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   --- 7. SEÇÃO 1: OS 3 VILÕES DO DESPERDÍCIO ---
   ========================================================================== */

.bento-three-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.waste-card {
  gap: 0.9rem;
}

/* Gota decorativa translúcida no canto superior do card */
.liquid-drop-decor {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(225, 29, 72, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.waste-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.waste-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #be123c;
  background: rgba(255, 228, 230, 0.9);
  border: 1px solid rgba(251, 113, 133, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.waste-impact-bar {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.waste-impact-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #e11d48);
}

.waste-Action-hint {
  font-size: 0.84rem;
  background: rgba(224, 242, 254, 0.65);
  color: #0c4a6e;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(186, 230, 253, 0.8);
}

/* ==========================================================================
   --- 8. SEÇÃO 2: 6 DICAS EM GOTAS DE LIQUID GLASS ---
   ========================================================================== */

.tips-liquid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.tip-glass-wrapper {
  width: 100%;
}

.liquid-tip-card {
  --w: 100%;
  --h: 100%;
  --r: 26px;
  --tr: 12%;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: var(--card-bg-subtle);
  cursor: default;
}

.tip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
}

/* Gota de água 3D numerada */
.water-droplet-badge {
  width: 46px;
  height: 52px;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #7dd3fc 38%, #0284c7 88%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 2px 3px 5px rgba(255, 255, 255, 0.95),
    inset -2px -4px 6px rgba(3, 105, 161, 0.65),
    0 6px 14px rgba(2, 132, 199, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.tip-saving-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #047857;
  background: rgba(209, 250, 229, 0.9);
  border: 1px solid rgba(110, 231, 183, 0.6);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.tip-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.tip-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   --- 9. SEÇÃO 3: ORIENTAÇÕES & SIMULADOR LIQUID GLASS ---
   ========================================================================== */

.orientations-bento-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.bento-header {
  margin-bottom: 1.1rem;
}

.bento-app-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.35rem;
}

/* Abas Segmentadas em Vidro Líquido */
.glass-segmented-shell {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.35rem;
  border-radius: 20px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.segmented-pill-item {
  border: none;
  background: transparent;
  padding: 0.6rem 0.5rem;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.segmented-pill-item.active {
  background: #ffffff;
  color: #082f49;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
}

.room-pane {
  display: none;
}

.room-pane.active {
  display: block;
  animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.guidance-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.guidance-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guidance-steps li strong {
  color: var(--text-primary);
}

.step-drop {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Medidor Visual em Formato de Gota de Água Gigante */
.droplet-meter-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.big-water-droplet {
  width: 86px;
  height: 102px;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: rgba(224, 242, 254, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 3px 4px 8px rgba(255, 255, 255, 0.95),
    inset -3px -5px 10px rgba(2, 132, 199, 0.25),
    0 10px 24px rgba(2, 132, 199, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.droplet-water-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
  transition: height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.droplet-specular-shine {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 14px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 2;
}

.droplet-percent {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #082f49;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.droplet-stats-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.saved-today-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
}

.saved-today-number small {
  font-size: 0.95rem;
  font-weight: 700;
}

.saved-year-badge {
  font-size: 0.82rem;
  color: var(--emerald-color);
  font-weight: 600;
}

.saved-status-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Interruptores Físicos Liquid Glass (Tactile Switches) */
.switches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toggle-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.toggle-label-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.toggle-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toggle-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.liquid-glass-switch {
  --w: 68px;
  --h: 38px;
  --r: 9999px;
  --tr: 20%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px;
  background: rgba(148, 163, 184, 0.25);
}

.switch-glass-knob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e2e8f0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.liquid-glass-switch.active {
  background: rgba(16, 185, 129, 0.25);
}

.liquid-glass-switch.active .switch-glass-knob {
  transform: translateX(30px);
  background: radial-gradient(circle at 35% 30%, #a7f3d0, #059669);
}

/* ==========================================================================
   --- 10. RODAPÉ EM LIQUID GLASS ---
   ========================================================================== */

.site-footer {
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.footer-glass-pill {
  padding: 0 1.5rem;
  gap: 0.75rem;
  background: var(--card-bg-subtle);
  cursor: default;
}

.footer-drop-icon {
  font-size: 1.35rem;
}

.footer-project-signature {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-subnote {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   --- 11. RESPONSIVIDADE PARA TABLETS E DESKTOPS ---
   ========================================================================== */

@media (min-width: 640px) {
  .site-wrapper {
    padding: 0 1.5rem;
  }

  .hero-cta-group {
    flex-direction: row;
  }

  .live-submetrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-liquid-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .glass-segmented-shell {
    grid-template-columns: repeat(4, 1fr);
    border-radius: 9999px;
  }

  .segmented-pill-item {
    border-radius: 9999px;
  }
}

@media (min-width: 920px) {
  .nav-menu {
    display: flex;
  }

  .header-cta-wrapper {
    display: block;
  }

  .live-counter-grid {
    grid-template-columns: 1.3fr 0.9fr;
  }

  .bento-three-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tips-liquid-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .orientations-bento-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
