/* ===========================
   MENTES CODIFICADAS - CSS
   =========================== */

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --green-950: #052e16;

  --accent:    #00ff88;
  --accent-dim:#00cc6a;

  --bg-dark:   #050d0a;
  --bg-card:   #0a1a12;
  --bg-card2:  #0d2119;
  --bg-mid:    #071410;

  --text-primary:   #f0fdf4;
  --text-secondary: #86efac;
  --text-muted:     #4ade80;
  --text-dim:       #6b7280;

  --border:    rgba(34, 197, 94, 0.15);
  --border-bright: rgba(34, 197, 94, 0.35);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-hover: 0 12px 40px rgba(0,255,136,0.12), 0 0 0 1px var(--border-bright);

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 13, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.4));
  transition: var(--transition);
}
.nav-logo:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(0,255,136,0.7));
  transform: rotate(8deg) scale(1.08);
}

.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(34, 197, 94, 0.1);
}

.nav-cta {
  background: var(--green-600) !important;
  color: white !important;
  padding: 7px 14px !important;
}
.nav-cta:hover { background: var(--green-500) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ====== HERO ====== */
.hero-logo-wrap {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(0,255,136,0.45));
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 24px rgba(0,255,136,0.45)); }
  50% { transform: translateY(-10px) rotate(3deg); filter: drop-shadow(0 0 36px rgba(0,255,136,0.65)); }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 70%);
  top: -100px; left: -100px;
}

.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
  bottom: 0; right: 10%;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-300);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-400), var(--accent), var(--green-300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,197,94,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--green-300);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--green-400);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-400);
  border: 1px solid var(--border-bright);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline-green:hover {
  background: rgba(34,197,94,0.08);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: float-up 2s ease-in-out infinite;
}

@keyframes float-up {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green-500), transparent);
}

/* ====== TICKER ====== */
.ticker-wrap {
  overflow: hidden;
  background: rgba(34, 197, 94, 0.06);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== SECTIONS ====== */
.section {
  padding: 100px 0;
}

.bg-dark { background: var(--bg-mid); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}

.section-action {
  text-align: center;
  margin-top: 48px;
}

/* ====== FEATURED GRID ====== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.secondary-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====== CARDS ====== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.card:hover .card-img { transform: scale(1.04); }

.card-featured .card-img { height: 260px; }
.card-secondary .card-img { height: 140px; }

.card-img-ai {
  background: linear-gradient(135deg, #052e16 0%, #14532d 30%, #0f3d1f 60%, #0a2e16 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: relative;
}
.card-img-ai::after {
  content: '&#129302;';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 4rem;
  opacity: 0.25;
}

.card-img-quantum {
  background: linear-gradient(135deg, #0a1628, #162952, #0d2340);
  position: relative;
}
.card-img-quantum::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.3), transparent 70%);
}

.card-img-brain {
  background: linear-gradient(135deg, #1a0a2e, #2d1652, #1a0d40);
  position: relative;
}
.card-img-brain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(168,85,247,0.3), transparent 60%);
}

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.tag-tech     { background: rgba(34,197,94,0.2);  color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.tag-science  { background: rgba(59,130,246,0.2);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.tag-curiosity{ background: rgba(234,179,8,0.2);   color: #fde047; border: 1px solid rgba(234,179,8,0.3); }

.card-body { padding: 20px 22px 24px; }

.card-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}
.meta-date, .meta-read {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-featured .card-title { font-size: 1.35rem; }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-400);
  transition: var(--transition);
}
.card-link:hover { color: var(--accent); gap: 10px; }

/* ====== CATEGORIES ====== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.category-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.category-card:hover::before { opacity: 1; }

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.category-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.cat-count {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: rgba(34,197,94,0.1);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-400);
}

/* ====== ARTICLES GRID ====== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.article-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.dark-card { background: var(--bg-card2); }

.article-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.article-card:hover .article-img { transform: scale(1.03); }

.art-img-1 { background: linear-gradient(135deg, #052e16, #0f4020, #1a6632); }
.art-img-2 { background: linear-gradient(135deg, #0c1a3d, #1a2e70, #0d1f50); }
.art-img-3 { background: linear-gradient(135deg, #1a0a0a, #3d1010, #2a0d0d); }
.art-img-4 { background: linear-gradient(135deg, #0a1a1a, #103d3d, #0d2a2a); }

.sci-img-1 { background: linear-gradient(135deg, #1a0a30, #2e1050, #1a0a40); }
.sci-img-2 { background: linear-gradient(135deg, #0a0a30, #101050, #0a0a40); }
.sci-img-3 { background: linear-gradient(135deg, #200a30, #40105a, #280a40); }
.sci-img-4 { background: linear-gradient(135deg, #1a1a0a, #303010, #28280a); }

.article-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-content p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.article-date { font-size: 0.75rem; color: var(--text-dim); }

.article-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-400);
  transition: var(--transition);
}
.article-link:hover { color: var(--accent); }

/* ====== CURIOSIDADES ====== */
.curiosities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.curiosity-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background: var(--bg-card);
}
.curiosity-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.curiosity-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.03), transparent);
  pointer-events: none;
}

.cur-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(34,197,94,0.08);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.curiosity-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-300);
  margin-bottom: 10px;
  line-height: 1.4;
}

.curiosity-card p {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ====== NEWSLETTER ====== */
.newsletter { background: var(--bg-mid); }

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 56px;
  overflow: hidden;
}

.newsletter-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.06), transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.newsletter-content .section-tag { margin-bottom: 16px; }

.newsletter-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.newsletter-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.newsletter-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  color: var(--green-400);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-group input {
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus {
  border-color: var(--green-500);
  background: rgba(34,197,94,0.04);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-group input::placeholder { color: var(--text-dim); }

.form-interests label:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}

.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.interest-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.interest-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--green-500);
  cursor: pointer;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(34,197,94,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--green-400);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}
.social-btn:hover {
  background: rgba(34,197,94,0.15);
  border-color: var(--green-500);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--green-400); padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-tagline { color: var(--green-700); font-style: italic; }

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--green-700);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 0.75rem;
}

/* ====== FLOATING PARTICLES ====== */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--green-500);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes float-particle {
  0% { transform: translate(var(--x0), var(--y0)) scale(0); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { transform: translate(var(--x1), var(--y1)) scale(0.5); opacity: 0; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .secondary-cards { flex-direction: row; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 36px; }
}

@media (max-width: 1080px) {
  .logo-text { font-size: 1.05rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5, 13, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .lang-toggle { order: -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5, 13, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-stats { gap: 0; }
  .stat-item { padding: 0 18px; }
  .stat-number { font-size: 1.5rem; }

  .articles-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .curiosities-grid { grid-template-columns: 1fr; }
  .secondary-cards { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-actions { flex-direction: column; align-items: center; }
  .newsletter-inner { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 60px; height: 1px; }
  .interests-grid { grid-template-columns: 1fr 1fr; }
}

/* ====== API CONFIG BANNER ====== */
.api-config-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(234,179,8,0.12), rgba(234,179,8,0.06));
  border-bottom: 1px solid rgba(234,179,8,0.3);
  font-size: 0.875rem;
  color: #fde047;
  position: relative;
  z-index: 999;
  flex-wrap: wrap;
}
.api-config-banner strong { color: #fef08a; }
.api-config-banner code {
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #86efac;
}
.api-config-banner a { color: #fbbf24; text-decoration: underline; }
.banner-icon { font-size: 1.2rem; flex-shrink: 0; }
.banner-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fde047;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.banner-close:hover { opacity: 1; }

/* ====== LIVE BADGE ====== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 12px;
  background: rgba(34,197,94,0.08);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 0.5px;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}

/* ====== REFRESH BUTTON ====== */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 18px;
  background: rgba(34,197,94,0.08);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  color: var(--green-400);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.refresh-btn:hover {
  background: rgba(34,197,94,0.16);
  color: var(--accent);
}
.refresh-icon { font-size: 1rem; display: inline-block; transition: transform 0.6s ease; }
.refresh-btn.spinning .refresh-icon { animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== SKELETON LOADER ====== */
.skeleton {
  background: linear-gradient(90deg, rgba(34,197,94,0.06) 25%, rgba(34,197,94,0.12) 50%, rgba(34,197,94,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-img  { height: 180px; border-radius: 0; margin-bottom: 0; }
.skeleton-tag  { height: 22px; width: 80px; margin-bottom: 12px; border-radius: 100px; }
.skeleton-title{ height: 18px; width: 90%; margin-bottom: 8px; }
.skeleton-text { height: 14px; width: 100%; margin-bottom: 6px; }
.skeleton-meta { height: 12px; width: 70px; }

/* ====== DYNAMIC CARD IMAGES ====== */
.article-img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.article-img-real,
.feat-img-real,
.sec-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.article-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,13,10,0.7), transparent 50%);
  z-index: 2;
}
.article-source-badge {
  position: absolute;
  bottom: 10px; left: 12px;
  z-index: 3;
  padding: 3px 9px;
  background: rgba(0,0,0,0.6);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-300);
  backdrop-filter: blur(4px);
}
.feat-source-badge {
  position: absolute;
  bottom: 10px; right: 12px;
  z-index: 3;
  padding: 3px 9px;
  background: rgba(0,0,0,0.6);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-300);
  backdrop-filter: blur(4px);
}
.dynamic-feat-img {
  width: 100%;
  height: 100%;
  position: relative;
}
.dynamic-sec-img {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ====== API ERROR STATE ====== */
.api-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-dim);
}
.api-error-icon { font-size: 2.5rem; }
.api-error p { font-size: 0.95rem; }
.api-error small { font-size: 0.8rem; }
.api-error code {
  background: rgba(34,197,94,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--green-400);
}

/* ====== CURIOSITY LINK ====== */
.cur-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-400);
  transition: var(--transition);
}
.cur-link:hover { color: var(--accent); }

/* ====== DICAS SECTION ====== */
.dicas-section { background: var(--bg-dark); }

.tips-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tip-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}
.tip-tab:hover {
  border-color: var(--border-bright);
  color: var(--text-secondary);
}
.tip-tab.active {
  background: rgba(34,197,94,0.12);
  border-color: var(--green-500);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(34,197,94,0.1);
}
.tab-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tab-icon svg { display: block; pointer-events: none; }
.tab-icon span { pointer-events: none; }

.tips-panel { display: none; }
.tips-panel.active { display: block; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tip-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 0;
}

.tip-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.level-basic { background: rgba(34,197,94,0.15);  color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.level-inter { background: rgba(59,130,246,0.15);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.level-adv   { background: rgba(168,85,247,0.15);  color: #c4b5fd; border: 1px solid rgba(168,85,247,0.3); }

.tip-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.tip-desc {
  padding: 10px 20px 14px;
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.code-block {
  margin: 0 0 0 0;
  background: #020c06;
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(34,197,94,0.05);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-500);
}

.copy-btn {
  background: rgba(34,197,94,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--green-400);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.copy-btn:hover { background: rgba(34,197,94,0.18); }
.copy-btn.copied { color: var(--accent); border-color: var(--green-500); }

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  flex: 1;
}

.code-block code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  display: block;
}

/* SQL syntax highlight */
.sql-kw      { color: #86efac; font-weight: 700; }
.sql-fn      { color: #67e8f9; }
.sql-str     { color: #fbbf24; }
.sql-num     { color: #a78bfa; }
.sql-comment { color: #4b5563; font-style: italic; }

/* ADVPL syntax highlight */
.adv-kw      { color: #86efac; font-weight: 700; }
.adv-fn      { color: #67e8f9; }
.adv-str     { color: #fbbf24; }
.adv-num     { color: #a78bfa; }
.adv-bool    { color: #f472b6; font-weight: 600; }
.adv-comment { color: #4b5563; font-style: italic; }

@media (max-width: 900px) {
  .tips-grid { grid-template-columns: 1fr; }
  .tips-tabs { justify-content: flex-start; padding-bottom: 8px; }
  .tip-tab { padding: 10px 16px; font-size: 0.85rem; }
}

/* ====== TABELAS PROTHEUS ====== */
.protheus-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.protheus-search-wrap {
  position: relative;
  max-width: 480px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.5;
}
.protheus-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.protheus-search:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.protheus-search::placeholder { color: var(--text-dim); }

.protheus-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pf-btn {
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.pf-btn:hover { border-color: var(--border-bright); color: var(--text-secondary); }
.pf-btn.active {
  background: rgba(34,197,94,0.12);
  border-color: var(--green-500);
  color: var(--accent);
}

.protheus-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  min-height: 20px;
}
.protheus-count strong { color: var(--green-400); }

.protheus-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.protheus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.protheus-table thead tr {
  background: rgba(34,197,94,0.07);
  border-bottom: 1px solid var(--border-bright);
}

.protheus-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green-400);
  white-space: nowrap;
}

.protheus-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}
.protheus-table tbody tr:last-child { border-bottom: none; }
.protheus-table tbody tr:hover { background: rgba(34,197,94,0.04); }
.protheus-table tbody tr.hidden { display: none; }

.protheus-table td {
  padding: 11px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
  line-height: 1.4;
}

.td-table {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.protheus-table td:last-child {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mod-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.mod-cad { background: rgba(34,197,94,0.12);  color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.mod-est { background: rgba(59,130,246,0.12);  color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.mod-cmp { background: rgba(234,179,8,0.12);   color: #fde047; border: 1px solid rgba(234,179,8,0.25); }
.mod-vnd { background: rgba(249,115,22,0.12);  color: #fdba74; border: 1px solid rgba(249,115,22,0.25); }
.mod-fin { background: rgba(168,85,247,0.12);  color: #c4b5fd; border: 1px solid rgba(168,85,247,0.25); }
.mod-ctb { background: rgba(244,63,94,0.12);   color: #fda4af; border: 1px solid rgba(244,63,94,0.25); }
.mod-fis { background: rgba(20,184,166,0.12);  color: #5eead4; border: 1px solid rgba(20,184,166,0.25); }
.mod-pro { background: rgba(99,102,241,0.12);  color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.mod-rh  { background: rgba(236,72,153,0.12);  color: #f9a8d4; border: 1px solid rgba(236,72,153,0.25); }

.protheus-tip {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(234,179,8,0.06);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: #fde047;
  line-height: 1.6;
}
.protheus-tip code {
  background: rgba(0,0,0,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Cascadia Code','Fira Code','Consolas',monospace;
  font-size: 0.78rem;
  color: #86efac;
}

.no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}


.cur-link:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════
   BUSCA GLOBAL — DICAS DEV
═══════════════════════════════════════════════ */
.tips-search-wrap {
  margin-bottom: 28px;
}

.tips-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  transition: border-color 0.2s;
}
.tips-search-box:focus-within {
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}

.tips-search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  pointer-events: none;
}

.tips-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 13px 0;
  min-width: 0;
}
.tips-search-input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.tips-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.tips-search-clear:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Meta: contador + filtros de nível */
.tips-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
}

#tipsSearchCount {
  font-size: 13px;
  color: var(--text-dim);
}
#tipsSearchCount strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.tips-search-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tsf-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.tsf-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-secondary);
}
.tsf-btn.active {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.4);
  color: var(--accent);
}

/* Grid de resultados da busca */
.tips-search-results {
  margin-top: 20px;
}

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

/* Nenhum resultado */
.tips-no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}
.tips-no-results strong {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.tips-no-results span {
  font-size: 0.875rem;
}

/* Badge de aba nos cards de resultado */
.tip-card .tip-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.tip-source-sql      { background: rgba(56,189,248,0.12); color: #38bdf8; }
.tip-source-advpl    { background: rgba(168,85,247,0.12); color: #c084fc; }
.tip-source-protheus { background: rgba(251,191,36,0.12); color: #fbbf24; }
.tip-source-powerbi  { background: rgba(34,197,94,0.12);  color: #4ade80; }
.tip-source-n8n      { background: rgba(249,115,22,0.12); color: #fb923c; }

/* Highlight do termo buscado */
.tips-highlight {
  background: rgba(34,197,94,0.25);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 1px;
}

/* Ocultar tabs e painéis durante busca ativa */
.tips-searching #tipsTabs,
.tips-searching .tips-panel {
  display: none !important;
}

@media (max-width: 768px) {
  .tips-search-results .tips-grid { grid-template-columns: 1fr; }
  .tips-search-meta { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════
   SISTEMA DE ANIMAÇÕES — SCROLL REVEAL APRIMORADO
═══════════════════════════════════════════════════════ */

/* ── Estados iniciais (antes de entrar na viewport) ── */
.will-reveal {
  opacity: 0;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

/* Variante 1: sobe com fade */
.will-reveal.reveal-up {
  transform: translateY(36px);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Variante 2: escala a partir do centro */
.will-reveal.reveal-scale {
  transform: translateY(24px) scale(0.97);
  transition:
    opacity  0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Variante 3: desliza da esquerda */
.will-reveal.reveal-left {
  transform: translateX(-28px);
  transition:
    opacity  0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Variante 4: fade puro */
.will-reveal.reveal-fade {
  transition: opacity 0.7s ease;
}

/* ── Estado revelado ── */
.will-reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Hero: entrada sequencial dos elementos ── */
.hero-badge {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.hero-title {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.hero-subtitle {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}
.hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}
.hero-stats {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
.hero-scroll {
  opacity: 0;
  animation: hero-enter 0.5s ease 1.1s forwards;
}

@keyframes hero-enter {
  to { opacity: 1; transform: none; }
}

/* ── Section tag: linha que cresce da esquerda ── */
.section-tag-anim {
  position: relative;
  overflow: hidden;
}
.section-tag-anim::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  opacity: 0.4;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.section-tag-anim.revealed::after,
.will-reveal.section-tag-anim.revealed::after {
  width: 100%;
}

/* ── Hover aprimorado nos cards ── */
.card, .article-card, .category-card, .research-card {
  transition:
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px) scale(1.005);
}
.article-card:hover {
  transform: translateY(-4px);
}
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* ── Curiosity cards: entrada especial ── */
.curiosity-card {
  transition:
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.2s ease,
    background 0.2s ease;
}
.curiosity-card:hover {
  transform: translateX(6px);
}

/* ── Tip cards: lift sutil ── */
.tip-card {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}
.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.08);
}

/* ── Botões: feedback tátil mais pronunciado ── */
.btn {
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover  { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0)    scale(0.98); }

.tip-tab {
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tip-tab:hover  { transform: translateY(-2px); }
.tip-tab:active { transform: translateY(0) scale(0.97); }

/* ── Category card icon: bounce ao hover ── */
.cat-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}
.category-card:hover .cat-icon {
  transform: scale(1.2) rotate(-4deg);
}

/* ── Nav links: underline deslizante ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Copy button: confirmação animada ── */
.copy-btn {
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.copy-btn:active { transform: scale(0.94); }
.copy-btn.copied {
  animation: copy-confirm 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes copy-confirm {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── Número das estatísticas do hero: destaque ── */
.stat-number {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-item:hover .stat-number {
  transform: scale(1.12);
}

/* ── Scroll indicator: pulso suave ── */
.hero-scroll {
  animation: hero-enter 0.5s ease 1.1s forwards, scroll-pulse 2.5s ease-in-out 1.6s infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(5px); }
}

/* ── Barra da navbar: entrada suave ao carregar ── */
.navbar {
  animation: navbar-drop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes navbar-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Ticker: fade-in após carregar ── */
.ticker-wrap {
  opacity: 0;
  animation: hero-enter 0.5s ease 0.9s forwards;
}

/* ── Respeitar preferência de movimento reduzido ── */
@media (prefers-reduced-motion: reduce) {
  .will-reveal,
  .hero-badge, .hero-title, .hero-subtitle,
  .hero-actions, .hero-stats, .hero-scroll,
  .ticker-wrap, .navbar {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .will-reveal { opacity: 1; }
  .card:hover, .article-card:hover,
  .category-card:hover, .research-card:hover,
  .tip-card:hover, .btn:hover, .tip-tab:hover,
  .category-card:hover .cat-icon,
  .curiosity-card:hover {
    transform: none;
  }
}
