/* ================================================
   SMARTHIVE SOLUTIONS — FUTURISTIC DARK THEME
   ================================================ */

:root {
  --bg: #030b18;
  --bg-surface: #060f1e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(14, 165, 233, 0.4);
  --accent: #0ea5e9;
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-indigo: #6366f1;
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-4: #475569;
  --bg-nav: rgba(3, 11, 24, 0.85);
  --bg-nav-mobile: rgba(3, 11, 24, 0.98);
  --glow: 0 0 40px rgba(14, 165, 233, 0.2);
}

/* ── Light Mode ───────────────────────────────── */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-nav-mobile: rgba(255, 255, 255, 0.99);
  --glow: 0 0 40px rgba(14, 165, 233, 0.1);
}
[data-theme="light"] body        { background: #ffffff; color: #0f172a; }
[data-theme="light"] nav         { background: var(--bg-nav); border-bottom-color: rgba(0,0,0,0.07); }
[data-theme="light"] #hero       { background: #f8fafc; }
[data-theme="light"] #stats      { background: #f1f5f9; }
[data-theme="light"] .stat-card  { border-right-color: rgba(0,0,0,0.07); }
[data-theme="light"] #servicos   { background: #ffffff; }
[data-theme="light"] #processo   { background: linear-gradient(180deg, #f8fafc, #f1f5f9); }
[data-theme="light"] #sobre      { background: #f8fafc; }
[data-theme="light"] #faq        { background: #f1f5f9; }
[data-theme="light"] #contacto   { background: #ffffff; }
[data-theme="light"] footer      { background: #f8fafc; border-top-color: rgba(0,0,0,0.07); }
[data-theme="light"] .page-loader { background: #ffffff; }
[data-theme="light"] #particle-canvas { opacity: 0.25; }

[data-theme="light"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(14,165,233,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.07) 1px, transparent 1px);
}
[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(135deg,rgba(248,250,252,0.97) 0%,rgba(248,250,252,0.82) 50%,rgba(248,250,252,0.94) 100%);
}
[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(168,85,247,0.07) 0%, transparent 70%); }
[data-theme="light"] .orb-3 { background: radial-gradient(circle, rgba(34,211,238,0.05) 0%, transparent 70%); }

[data-theme="light"] .floating-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
[data-theme="light"] .service-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: transparent;
}
[data-theme="light"] .faq-item         { background: #ffffff; border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .faq-item.active  { border-color: rgba(14,165,233,0.35); box-shadow: 0 0 24px rgba(14,165,233,0.07); }
[data-theme="light"] .contact-card     { background: #ffffff; border-color: rgba(0,0,0,0.07); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
[data-theme="light"] .value-card       { background: #ffffff; border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .marquee-container { background: linear-gradient(180deg,#f8fafc,#f1f5f9); border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .form-input       { background: #f8fafc; border-color: rgba(0,0,0,0.1); color: #0f172a; }
[data-theme="light"] .form-input::placeholder { color: rgba(100,116,139,0.65); }
[data-theme="light"] .btn-outline      { border-color: rgba(0,0,0,0.14); color: #0f172a; background: rgba(0,0,0,0.03); }
[data-theme="light"] .btn-outline:hover { border-color: var(--accent); background: rgba(14,165,233,0.07); }
[data-theme="light"] .cta-section      { background: linear-gradient(135deg,#e8f4fd,#f0e8fd,#e8f4fd); }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f8fafc; }

/* Smooth theme transitions */
body, nav, .service-card, .faq-item, .contact-card, .floating-card,
.value-card, footer, #stats, #servicos, #processo, #sobre, #faq,
#contacto, .cta-section, .form-input, .btn-outline, .marquee-container,
.page-loader, .lang-menu {
  transition: background 0.32s ease, border-color 0.32s ease,
              color 0.32s ease, box-shadow 0.32s ease;
}

/* ── Nav Icon Controls ────────────────────────── */
/* Flag icon sizing inside buttons */
.nav-icon-btn .fi,
.lang-menu button .fi {
  width: 1.25em;
  height: 0.95em;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: none;
  white-space: nowrap;
  line-height: 1;
}
.nav-icon-btn:hover {
  color: var(--text-1);
  border-color: rgba(14,165,233,0.3);
  background: rgba(14,165,233,0.07);
}

/* Language dropdown */
.lang-wrapper { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 158px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  z-index: 200;
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  transition: all 0.15s ease;
  cursor: none;
}
.lang-menu button:hover  { background: rgba(14,165,233,0.07); color: var(--text-1); }
.lang-menu button.lang-active { color: var(--accent); font-weight: 700; }

/* ── Logo ─────────────────────────────────────── */
.logo-img {
  filter: brightness(0) invert(1); /* dark blue → white on dark bg */
  transition: filter 0.32s ease;
}
[data-theme="light"] .logo-img {
  filter: none; /* original colours on light bg */
}

/* ── Base ─────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ────────────────────────────── */
.cursor {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(14, 165, 233, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor.hovering {
  width: 60px;
  height: 60px;
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ── Page Loader ──────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.5s ease;
}

.loader-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: loaderFade 0.4s ease 0.1s forwards;
}

.loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 2px;
  animation: loaderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes loaderFade { to { opacity: 1; } }
@keyframes loaderProgress { to { width: 100%; } }

/* ── Particle Canvas ──────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Orbs ─────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.14) 0%, transparent 70%);
  top: -80px; right: -80px;
  animation: orbFloat1 9s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: orbFloat2 11s ease-in-out infinite;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 70%);
  top: 40%; left: 20%;
  animation: orbFloat1 13s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.04); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(28px) scale(1.06); }
}

/* ── Nav ──────────────────────────────────────── */
nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 11, 24, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  position: relative;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover { color: var(--text-1); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  color: white !important;
  border-radius: 100px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(14,165,233,0.25);
}
.nav-cta:hover {
  box-shadow: 0 0 32px rgba(14,165,233,0.5);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 110px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  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%);
}

/* ── Hero Layout ──────────────────────────────── */
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;        /* no vertical padding — #hero handles the offset */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Laptop range: tighter cards */
@media (max-width: 1280px) {
  .hero-inner { gap: 32px; padding: 0 24px; }
  .hero-visual { height: 360px; }
  .card-stack-wrapper { width: 255px; height: 350px; }
  .floating-card { width: 235px; }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 24px;
  }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-text #hero-cta { justify-content: center; }
  .hero-visual { display: none; }
}

/* ── Parallax Background ──────────────────────── */
.hero-parallax-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-parallax-bg img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  opacity: 0.09;
  will-change: transform;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3,11,24,0.96) 0%,
    rgba(3,11,24,0.78) 50%,
    rgba(3,11,24,0.92) 100%
  );
}

/* ── Hero Card Enhancements ───────────────────── */

/* Spinning avatar ring */
.avatar-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(#0ea5e9, #22d3ee, #6366f1, #a855f7, #0ea5e9);
  animation: spinRing 2.5s linear infinite;
  z-index: 0;
}
.avatar-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0d1728;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #0ea5e9;
  z-index: 1;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

/* Card accent borders */
.card-blue   { border-color: rgba(14,165,233,0.25) !important; }
.card-green  { border-color: rgba(34,197,94,0.25)  !important; }
.card-purple { border-color: rgba(168,85,247,0.25) !important; }

.card-blue::before   { background: linear-gradient(135deg,#0ea5e9,#22d3ee,#6366f1,#0ea5e9) !important; }
.card-green::before  { background: linear-gradient(135deg,#22c55e,#4ade80,#0ea5e9,#22c55e) !important; }
.card-purple::before { background: linear-gradient(135deg,#a855f7,#ec4899,#6366f1,#a855f7) !important; }

.card-blue:hover   { box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 30px rgba(14,165,233,0.2) !important; }
.card-green:hover  { box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 30px rgba(34,197,94,0.2)  !important; }
.card-purple:hover { box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 30px rgba(168,85,247,0.2) !important; }

/* Shimmer sweep */
.floating-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.055) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes shimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

/* Score bars */
.score-bar-bg {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: fillBar 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-fill-mode: both;
}
@keyframes fillBar { to { transform: scaleX(1); } }

/* Animated bar chart */
.chart-bar {
  flex: 1;
  background: var(--c);
  border-radius: 3px 3px 0 0;
  height: 0;
  box-shadow: var(--glow, none) 0 0 0;
  animation: growBar 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-fill-mode: both;
}
.chart-bar:nth-child(1) { animation-delay: 1.6s; }
.chart-bar:nth-child(2) { animation-delay: 1.72s; }
.chart-bar:nth-child(3) { animation-delay: 1.84s; }
.chart-bar:nth-child(4) { animation-delay: 1.96s; }
.chart-bar:nth-child(5) { animation-delay: 2.08s; }
.chart-bar:nth-child(6) { animation-delay: 2.2s; }
@keyframes growBar { to { height: var(--h); } }

/* Card stat boxes */
.card-stat-box {
  text-align: center;
  padding: 6px 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Card tags */
.ctag {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.ctag.green   { background:rgba(34,197,94,0.1);  color:#4ade80; border:1px solid rgba(34,197,94,0.2);  }
.ctag.blue    { background:rgba(14,165,233,0.1); color:#38bdf8; border:1px solid rgba(14,165,233,0.2); }
.ctag.emerald { background:rgba(16,185,129,0.1); color:#34d399; border:1px solid rgba(16,185,129,0.2); }
.ctag.purple  { background:rgba(168,85,247,0.1); color:#c084fc; border:1px solid rgba(168,85,247,0.2); }

/* Light mode card adjustments */
[data-theme="light"] .avatar-inner { background: #f1f5f9; }
[data-theme="light"] .card-stat-box { background: rgba(0,0,0,0.03); }
[data-theme="light"] .score-bar-bg  { background: rgba(0,0,0,0.07); }

/* ── 3D Card Stack ─────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 460px;
}

.card-stack-wrapper {
  perspective: 1100px;
  width: 310px;
  height: 500px;
  position: relative;
}

.card-stack {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.floating-card {
  position: absolute;
  width: 280px;
  border-radius: 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(10, 20, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-1 {
  top: 0; left: 10px; z-index: 3;
  animation: floatCard1 5s ease-in-out infinite;
}
.card-2 {
  top: 155px; left: 0; z-index: 2;
  transform: rotate(-3.5deg);
  animation: floatCard2 6.5s ease-in-out infinite;
}
.card-3 {
  top: 305px; left: 20px; z-index: 1;
  transform: rotate(3deg);
  animation: floatCard3 7.5s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(0.4deg); }
}
@keyframes floatCard2 {
  0%, 100% { transform: translateY(0px) rotate(-3.5deg); }
  50%       { transform: translateY(-10px) rotate(-2.8deg); }
}
@keyframes floatCard3 {
  0%, 100% { transform: translateY(0px) rotate(3deg); }
  50%       { transform: translateY(-16px) rotate(2.5deg); }
}

/* ── Gradient Text ────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 24px rgba(14,165,233,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  cursor: none;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-glow:hover {
  box-shadow: 0 0 48px rgba(14,165,233,0.55), 0 8px 32px rgba(14,165,233,0.2);
  transform: translateY(-2px);
}
.btn-glow:hover::after { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-1);
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  cursor: none;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(14,165,233,0.07);
  box-shadow: 0 0 24px rgba(14,165,233,0.12);
  transform: translateY(-2px);
}

/* ── Feature Badge ────────────────────────────── */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,0.09);
  border: 1px solid rgba(14,165,233,0.2);
  color: var(--accent-cyan);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── Scroll Indicator ─────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}

.scroll-indicator .mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  position: relative;
}
.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--accent);
  border-radius: 3px;
  animation: scrollWheel 1.6s ease infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ── Marquee ──────────────────────────────────── */
.marquee-container {
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), var(--bg-surface));
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.marquee-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Stats ────────────────────────────────────── */
#stats {
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}
.stat-card {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-number {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Montserrat', sans-serif;
}
.stat-label {
  color: var(--text-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ── Section Header ───────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Services ─────────────────────────────────── */
#servicos { background: var(--bg-surface); position: relative; z-index: 1; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.25rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .img-reveal {
  margin-top: auto;
  padding-top: 1.5rem;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(1.5rem + 1px);
  background: linear-gradient(135deg, var(--accent), var(--accent-purple), var(--accent-cyan), var(--accent));
  background-size: 300% 300%;
  animation: borderGlow 5s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-10px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), var(--glow);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.service-card-featured {
  transform: translateY(-16px);
}
.service-card-featured:hover { transform: translateY(-26px); }

.service-icon {
  width: 60px; height: 60px;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  border-color: transparent;
  box-shadow: 0 0 28px rgba(14,165,233,0.35);
}
.service-card:hover .service-icon svg { color: white !important; }

/* Image reveal on scroll */
.img-reveal {
  overflow: hidden;
  border-radius: 10px;
}
.img-reveal img {
  transform: scale(1.12);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s ease;
  filter: brightness(0.75) saturate(0.85);
  display: block;
  width: 100%;
}
.img-reveal.is-visible img {
  transform: scale(1);
  filter: brightness(0.95) saturate(1);
}
.service-card:hover .img-reveal img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1.1);
}

/* ── Process ──────────────────────────────────── */
#processo {
  background: linear-gradient(180deg, var(--bg-surface), var(--bg));
  position: relative;
  z-index: 1;
}
.process-step { position: relative; text-align: center; }

.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 32px rgba(14,165,233,0.3);
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
}

.step-connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 44px);
  width: calc(100% - 88px);
  height: 1px;
  background: linear-gradient(90deg, rgba(14,165,233,0.4), transparent);
  z-index: 0;
}

/* ── About ────────────────────────────────────── */
#sobre {
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.about-image-wrapper {
  position: relative;
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(168,85,247,0.08));
  border-radius: 2rem;
  z-index: -1;
  filter: blur(24px);
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}
.value-card:hover {
  border-color: rgba(14,165,233,0.28);
  background: rgba(14,165,233,0.04);
  transform: translateY(-3px);
}

/* ── FAQ ──────────────────────────────────────── */
#faq {
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item.active {
  border-color: rgba(14,165,233,0.35);
  box-shadow: 0 0 32px rgba(14,165,233,0.08);
}
.faq-item .faq-question {
  color: var(--text-1);
  cursor: none;
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out;
  color: var(--text-2);
}

/* ── Contact ──────────────────────────────────── */
#contacto {
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  overflow: hidden;
}
.contact-left {
  background: linear-gradient(135deg, #0a1628, #12103a);
  border-right: 1px solid var(--border);
}
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.form-input::placeholder { color: rgba(148,163,184,0.6); }
.form-input:focus {
  border-color: rgba(14,165,233,0.45);
  background: rgba(14,165,233,0.04);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── CTA Section ──────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #070e20, #0d0920, #070e20);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ── Footer ───────────────────────────────────── */
footer {
  background: #020810;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ── Scroll to Top ────────────────────────────── */
#scrollTopBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  border: none;
  box-shadow: 0 0 24px rgba(14,165,233,0.35);
  cursor: none;
}
#scrollTopBtn.show {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ── GSAP initial states ──────────────────────── */
.gsap-fade { opacity: 0; }
.gsap-slide-up { opacity: 0; transform: translateY(40px); }
.gsap-slide-left { opacity: 0; transform: translateX(-40px); }
.gsap-slide-right { opacity: 0; transform: translateX(40px); }
.gsap-scale { opacity: 0; transform: scale(0.9); }

/* ── Font aliases ─────────────────────────────── */
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

/* ================================================
   COOKIE CONSENT
   ================================================ */

/* Blocking overlay behind the banner */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9989;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cookie-overlay.hidden { display: none; }

body.cookie-pending { overflow: hidden; }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  width: calc(100% - 48px);
  max-width: 920px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 18px 22px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideUpBanner 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
.cookie-banner.hidden { display: none; }

@keyframes slideUpBanner {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }

.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { display: block; color: var(--text-1); font-size: 0.9rem; margin-bottom: 2px; }
.cookie-text p { color: var(--text-2); font-size: 0.79rem; margin: 0; line-height: 1.5; }

.cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

.cookie-btn-ghost {
  padding: 8px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  border: none; background: transparent; color: var(--text-2);
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie-btn-ghost:hover { color: var(--text-1); }

.cookie-btn-outline {
  padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-2); background: transparent;
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
}
.cookie-btn-outline:hover { border-color: rgba(14,165,233,0.4); color: var(--text-1); }

.cookie-btn-primary {
  padding: 8px 18px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-indigo));
  color: white; transition: all 0.2s; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 16px rgba(14,165,233,0.25);
}
.cookie-btn-primary:hover { box-shadow: 0 0 24px rgba(14,165,233,0.45); transform: translateY(-1px); }

/* Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 9991;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.cookie-modal.hidden { display: none; }

.cookie-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-box {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  width: 100%; max-width: 460px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: modalIn 0.28s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1);    }
}

.cookie-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.cookie-modal-header h3 { font-weight: 700; font-size: 1rem; color: var(--text-1); margin: 0; }
.cookie-modal-header button {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.8rem; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.cookie-modal-header button:hover { color: var(--text-1); border-color: rgba(14,165,233,0.3); }

.cookie-modal-body { padding: 4px 22px; }

.cookie-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-toggle-row:last-child { border-bottom: none; }
.cookie-toggle-row strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.cookie-toggle-row p { font-size: 0.77rem; color: var(--text-2); margin: 0; line-height: 1.5; }

.cookie-always-on {
  font-size: 0.7rem; font-weight: 700; color: #4ade80;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.22);
  padding: 4px 10px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}

/* Toggle switch */
.cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  border-radius: 100px; transition: all 0.3s ease; cursor: pointer;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 2px; top: 2px;
  background: var(--text-3); border-radius: 50%; transition: all 0.3s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(14,165,233,0.15); border-color: rgba(14,165,233,0.4);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px); background: var(--accent);
  box-shadow: 0 0 8px rgba(14,165,233,0.5);
}

.cookie-modal-footer {
  padding: 14px 22px 20px;
}
.cookie-modal-footer .cookie-btn-primary { width: 100%; padding: 12px; font-size: 0.875rem; }

/* Light mode */
[data-theme="light"] .cookie-banner    { box-shadow: 0 8px 40px rgba(0,0,0,0.1); }
[data-theme="light"] .cookie-modal-box { box-shadow: 0 24px 64px rgba(0,0,0,0.15); }
[data-theme="light"] .cookie-modal-backdrop { background: rgba(0,0,0,0.35); }
[data-theme="light"] .cookie-toggle-slider { background: rgba(0,0,0,0.07); }

@media (max-width: 640px) {
  .cookie-banner { bottom: 16px; width: calc(100% - 32px); border-radius: 1rem; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
