/* ─── BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #09090B;
  min-height: 100vh;
}

/* ─── NAVBAR ─── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.8);
}

/* ─── HERO GRID BACKGROUND ─── */
.hero-grid {
  background-image:
    linear-gradient(rgba(39, 39, 42, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ─── BENTO CARD GLOW ─── */
.card-glow {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
  border-radius: 0.75rem;
}

/* ─── TAGS / CHIPS ─── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(39, 39, 42, 1);
  background: rgba(24, 24, 27, 0.8);
  font-size: 11px;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}

.bento-card:hover .tag {
  border-color: rgba(34, 197, 94, 0.2);
  color: #d4d4d8;
}

/* ─── SCROLL REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ─── WHATSAPP FAB PULSE ─── */
#whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: fab-pulse 2.5s ease-out infinite;
}

@keyframes fab-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ─── SMOOTH SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #09090B;
}

::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3F3F46;
}

/* ─── FOCUS STYLES ─── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #22C55E;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── TECH TICKER ─── */
.ticker-row {
  display: flex;
  width: max-content;
}

.ticker-inner {
  display: flex;
  gap: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #27272A;
  background: #111113;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.01em;
  cursor: default;
  user-select: none;
  transition: border-color 0.2s, color 0.2s;
}

.ticker-badge:hover {
  border-color: rgba(34, 197, 94, 0.35);
  color: #e4e4e7;
}

.ticker-badge-dim {
  background: #0d0d0f;
  color: #52525b;
}

.ticker-badge-dim:hover {
  color: #a1a1aa;
  border-color: rgba(34, 197, 94, 0.2);
}

.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  opacity: 0.7;
  flex-shrink: 0;
}

.ticker-dot-dim {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f3f46;
  flex-shrink: 0;
}

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

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

.ticker-row:hover {
  animation-play-state: paused;
}

/* ─── FAQ ACCORDION ─── */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-answer {
  animation: faqOpen 0.25s ease forwards;
}

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

/* ─── COUNTER NUMBERS ─── */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* ─── RESPONSIVE TWEAKS ─── */
@media (max-width: 640px) {
  .hero-grid {
    background-size: 40px 40px;
  }
}
