/**
 * Folbee — Estilos principais
 * CSS extraído do index.html para organização.
 */

/* ================= BASE ================= */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.gradient-text {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient {
  --tw-text-opacity: 1;
  color: #159AF6;
  background-image: linear-gradient(45deg, #264EC1, #6163FC 50%, #556FFC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ================= HERO + SOCIAL PROOF ================= */
.hero-social-proof-bg {
  background: linear-gradient(135deg, #eef2ff 0%, #f0f4ff 30%, #f8faff 60%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-social-proof-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 0 0;
  pointer-events: none;
}
.hero-social-proof-bg > section {
  position: relative;
  z-index: 1;
}
.nav-link {
  color: #64748b;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #4f46e5; }
.nav-link:active,
.nav-link.active { color: #4338ca; }
.typewriter-cursor {
  display: inline-block;
  animation: typewriter-blink 0.7s step-end infinite;
}
@keyframes typewriter-blink { 50% { opacity: 0; } }
.hero-cta-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hero-cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.hero-cta-primary:active { transform: scale(0.98); }
.hero-cta-secondary {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-cta-secondary:hover {
  transform: scale(1.05);
  background-color: #f8fafc !important;
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.hero-cta-secondary:active { transform: scale(0.98); }
.hero-floating-logo {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}
.hero-floating-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.social-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  font-weight: 600;
  color: #1e293b;
}
.social-proof-badge .star { color: #fbbf24; }
.social-proof-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.social-proof-logos-row span {
  cursor: default;
  color: #94a3b8;
  transition: color 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
  opacity: 0.6;
  filter: grayscale(1);
}
.social-proof-logos-row span:hover {
  color: #4f46e5;
  opacity: 1;
  filter: grayscale(0);
}

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { transform: translateY(48px) translateX(-32px); }
.reveal-right { transform: translateY(48px) translateX(32px); }
.reveal.show.reveal-left,
.reveal.show.reveal-right { transform: translateY(0) translateX(0); }

/* ================= ANALYTICS ================= */
.analytics-node {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.analytics-node rect { transition: stroke-width 0.35s ease, filter 0.35s ease; }
.analytics-node .glow { filter: blur(6px); transition: opacity 0.35s ease; }
.analytics-node:hover rect { stroke-width: 3.5; }
.analytics-node:hover .glow { opacity: 0.7; }
.analytics-node:hover rect:not(.glow) { stroke-width: 3; }
.analytics-node svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.analytics-node:hover svg { transform: scale(1.6); }
.node-realtime svg { transform-origin: 443px 347px; }
.node-insights svg { transform-origin: 343px 457px; }
.node-alerts svg { transform-origin: 143px 457px; }
.node-security svg { transform-origin: 443px 147px; }
.node-performance svg { transform-origin: 243px 47px; }
.node-growth svg { transform-origin: 43px 247px; }

.bg-gradient-radial {
  background: radial-gradient(ellipse 50.50% 50.50% at 50.50% 49.50%, #050505 0%, #0D0D0D 50%, #1A1A1A 100%);
}
.bg-gradient-radial-center {
  background: radial-gradient(ellipse 87.02% 87.02% at 50.49% 50.00%, #050505 0%, #191919 50%, #131313 100%);
}

/* ================= TREE LIST / FEATURES ================= */
@media (max-width: 768px) {
  .tree-list-container,
  .features-tree-container {
    transform: scale(0.7);
    transform-origin: center;
  }
}
.features-icon-border,
.features-center-border {
  position: relative;
  background: linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%);
  border-radius: 9999px;
  padding: 1.70px;
  transition: all 0.35s ease;
  box-sizing: border-box;
}
.features-center-border { border-radius: 25px; }
.features-icon-hover,
.features-center-hover { position: relative; transition: all 0.35s ease; }
.features-icon-hover:hover {
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 6px rgba(236, 72, 153, 0.4)) drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}
.features-center-hover:hover {
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 7px rgba(236, 72, 153, 0.4)) drop-shadow(0 0 9px rgba(245, 158, 11, 0.4));
}
.tree-list-hover { transition: all 0.35s ease; }
.tree-icon,
.tree-center-icon { position: relative; transition: all 0.35s ease; }
.tree-icon:hover {
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 6px rgba(236, 72, 153, 0.4)) drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}
.tree-center-icon:hover {
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 7px rgba(236, 72, 153, 0.4)) drop-shadow(0 0 9px rgba(245, 158, 11, 0.4));
}
.tree-icon-gradient-border,
.tree-center-gradient-border {
  position: relative;
  background: linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%);
  border-radius: 9999px;
  padding: 1.70px;
  transition: all 0.35s ease;
  box-sizing: border-box;
}
.tree-center-gradient-border { border-radius: 25px; }
.tree-icon-gradient-border .inner-circle,
.tree-center-gradient-border .inner-circle {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: radial-gradient(ellipse 50.50% 50.50% at 50.50% 49.50%, #050505 0%, #0D0D0D 50%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.tree-center-gradient-border .inner-circle { border-radius: 23px; }

/* ================= FAQ ================= */
.faq-card-gradient-wrapper {
  position: relative;
  border-radius: 12px;
  padding: 3px;
  background: white;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.faq-card-gradient-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%);
  border-radius: 12px 0 0 0;
  z-index: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.faq-card-gradient-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%);
  border-radius: 0 0 12px 0;
  z-index: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.faq-card-gradient-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%);
  border-radius: 12px;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.faq-card-gradient-wrapper.active::before,
.faq-card-gradient-wrapper.active::after {
  width: 100%; height: 100%;
  border-radius: 12px;
}
.faq-card-gradient-wrapper.active .faq-card-gradient-overlay { opacity: 1; }
.faq-card-gradient-wrapper.active { background: #F0F8FF; }
.faq-card-gradient {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 24px;
  height: 100%;
  z-index: 1;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-card-gradient-wrapper.active .faq-card-gradient { background: #F0F8FF; }
.faq-card-content { position: relative; z-index: 2; }

/* ================= PRICING ================= */
.pricing-card {
  position: relative;
  border-radius: 24px;
  padding: 32px 32px 20px 32px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: white;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  border-radius: 24px;
}
.pricing-card-content {
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.pricing-card.active {
  transform: scale(1.05);
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #3B82F6 0%, #EC4899 50%, #F59E0B 100%) border-box;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
}
.pricing-card.active::before { opacity: 0.08; }
.pricing-card.active .pricing-card-content { transform: translateY(-2px); }
.pricing-card:hover:not(.active) {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.pricing-card.active .pricing-button {
  background: #3B82F6;
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
.pricing-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: white;
}
.pricing-button:hover {
  background: #3B82F6;
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 360px;
}
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .testimonial-card-tall,
  .testimonial-card-small { grid-column: auto !important; grid-row: auto !important; }
}
.testimonial-card-tall { grid-column: span 1; grid-row: span 2; }
.testimonial-card-small { grid-column: span 1; grid-row: span 1; }
.testimonial-card-wrapper {
  position: relative;
  border-radius: 1rem;
  padding: 1px;
  background: #e2e8f0;
  transition: background 0.35s ease;
  height: 100%;
  min-height: 0;
}
.testimonial-card-wrapper:hover {
  background: linear-gradient(90deg, #3B82F6, #EC4899, #F59E0B, #3B82F6);
  background-size: 300% 100%;
  animation: testimonial-gradient-border 2.5s linear infinite;
}
@keyframes testimonial-gradient-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.testimonial-card-inner {
  background: white;
  border-radius: calc(1rem - 1px);
  padding: 1.5rem 1.5rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.testimonial-card-small .testimonial-card-inner { padding: 1.25rem 1.5rem 1rem; }
.testimonial-quote { color: #3B82F6; font-size: 1.5rem; line-height: 1; margin-bottom: 0.25rem; }
.testimonial-text {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}
.testimonial-card-small .testimonial-text { margin-bottom: 0.75rem; }
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-meta { min-width: 0; }
.testimonial-name { font-weight: 600; color: #0f172a; font-size: 0.9375rem; }
.testimonial-role,
.testimonial-advantage { color: #94a3b8; font-size: 0.8125rem; }
.testimonial-advantage { margin-top: 0.125rem; }

/* ================= FINAL CTA ================= */
.final-cta-section {
  background: radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 1) 0%, rgba(10, 10, 10, 1) 100%);
}
.final-cta-section .cta-title-accent { color: #4D8CF0; }
.btn-cta-try {
  background: #EEEEEE;
  color: #333;
  border: 1px solid #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta-try:hover {
  background: #333;
  color: #EEEEEE;
  border-color: #EEEEEE;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.btn-cta-demo {
  background: #333;
  color: #EEEEEE;
  border: 1px solid #EEEEEE;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta-demo:hover {
  background: #EEEEEE;
  color: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* ================= FOOTER ================= */
.footer-section {
  background: radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 1) 0%, rgba(10, 10, 10, 1) 100%);
}
.footer-link {
  color: #888888;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.footer-link:hover {
  color: #4D8CF0;
  transform: translateX(4px);
}
.footer-copyright { color: #888888; }
.footer-legal-link {
  color: #888888;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.footer-legal-link:hover {
  color: #4D8CF0;
  transform: translateX(2px);
}
.btn-contact-us {
  background: linear-gradient(90deg, #619DFF 0%, #307CFF 100%);
  color: #fff;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-contact-us:hover {
  background: linear-gradient(90deg, #7aadff 0%, #4a8fff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(72, 140, 255, 0.4);
}
.footer-social-icon {
  color: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social-icon:hover {
  color: #4D8CF0;
  transform: scale(1.15);
}

/* ================= TOGGLE SWITCHES ================= */
.admin-toggle-row,
.member-toggle-row { transition: all 0.3s ease; }
.admin-toggle-row:hover,
.member-toggle-row:hover { opacity: 0.9; }
.toggle-bg,
.toggle-circle { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.admin-toggle-row.active .toggle-bg rect { fill: url(#paint0_linear_admin) !important; }
.admin-toggle-row:not(.active) .toggle-bg rect { fill: white !important; }
.admin-toggle-row.active .admin-circle { left: 22px !important; }
.admin-toggle-row:not(.active) .admin-circle { left: 1px !important; }
.member-toggle-row.active .toggle-bg rect { fill: url(#paint0_linear_member) !important; }
.member-toggle-row:not(.active) .toggle-bg rect { fill: white !important; }
.member-toggle-row.active .member-circle { left: 22px !important; }
.member-toggle-row:not(.active) .member-circle { left: 1px !important; }

/* ================= GLOBE 3D ================= */
.globe-3d-container {
  width: 256px;
  height: 256px;
  perspective: 1200px;
  perspective-origin: center center;
}
.sphere-3d {
  width: 256px;
  height: 256px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateSphere3D 20s linear infinite;
}
@keyframes rotateSphere3D {
  0% { transform: rotateY(0deg) rotateX(15deg); }
  100% { transform: rotateY(360deg) rotateX(15deg); }
}
.sphere-ring,
.sphere-meridian {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform-style: preserve-3d;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.sphere-continent {
  position: absolute;
  width: 35px;
  height: 35px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.9) 0%, rgba(59, 130, 246, 0.6) 100%);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform-style: preserve-3d;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* ================= ANIMATED BORDERS ================= */
.animated-border {
  transition: border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animated-border.rect-1 { animation: borderColorWave 6s ease-in-out infinite; }
.animated-border.rect-2 { animation: borderColorWave 6s ease-in-out infinite 0.3s; }
.animated-border.rect-3 { animation: borderColorWave 6s ease-in-out infinite 0.6s; }
.animated-border.rect-4 { animation: borderColorWave 6s ease-in-out infinite 0.9s; }
.animated-border.rect-5 { animation: borderColorWave 6s ease-in-out infinite 1.2s; }
.animated-border.rect-6 { animation: borderColorWave 6s ease-in-out infinite 1.5s; }
.animated-border.rect-7 { animation: borderColorWave 6s ease-in-out infinite 1.8s; }
.animated-border.rect-8 { animation: borderColorWave 6s ease-in-out infinite 2.1s; }
.animated-border.rect-9 { animation: borderColorWave 6s ease-in-out infinite 2.4s; }
@keyframes borderColorWave {
  0% { border-color: #797979; }
  16.66% { border-color: #3B82F6; }
  33.33% { border-color: #797979; }
  50% { border-color: #EF4444; }
  66.66% { border-color: #797979; }
  83.33% { border-color: #10B981; }
  100% { border-color: #797979; }
}
