/* =========================================================================
   CasteloNET — Home: TEMA ESCURO
   Regras do tema escuro específicas da home. Tokens e componentes
   compartilhados no escuro ficam em theme.css.
   ========================================================================= */

/* HERO */
html[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(55% 70% at 78% 45%, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 62%),
    radial-gradient(45% 55% at 8% 8%, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 70%),
    linear-gradient(180deg, #0B1526 0%, var(--page) 75%);
}
html[data-theme="dark"] .hero-grid { opacity: 0.6; }
html[data-theme="dark"] .hero::before { background: linear-gradient(to bottom, rgba(10, 18, 32, 0), var(--page)); }
html[data-theme="dark"] .hero h1 em .wi {
  background: linear-gradient(100deg, #3B82F6 0%, #60A5FA 50%, #BFDBFE 120%);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="dark"] .hero h1 em { color: #60A5FA; }
html[data-theme="dark"] .hero-eyebrow { background: rgba(59, 130, 246, 0.12); color: #93C5FD; border-color: rgba(147, 197, 253, 0.2); }
html[data-theme="dark"] .hero-eyebrow::before { background: #60A5FA; }
html[data-theme="dark"] .hero-kpi {
  border-color: rgba(147, 197, 253, 0.12);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .hero-kpi:hover { background: rgba(21, 34, 58, 0.9); }
html[data-theme="dark"] .hero-kpi-icon,
html[data-theme="dark"] .produto-icon,
html[data-theme="dark"] .cli-icon { color: #60A5FA; border-color: rgba(96, 165, 250, 0.18); }
html[data-theme="dark"] .no-webgl .hero::after { box-shadow: 0 40px 140px rgba(59, 130, 246, 0.45); }


/* Faixa de destaques e logos */
html[data-theme="dark"] .trust-bar {
  background: linear-gradient(90deg, #0D1A33 0%, #12306B 60%, #1D4ED8 130%);
  border-top: 1px solid rgba(148, 163, 184, 0.08); border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
html[data-theme="dark"] .logos-section { background: var(--page); }
html[data-theme="dark"] .logos-track-wrap::before { background: linear-gradient(to right, var(--page) 10%, rgba(10, 18, 32, 0)); }
html[data-theme="dark"] .logos-track-wrap::after { background: linear-gradient(to left, var(--page) 10%, rgba(10, 18, 32, 0)); }
html[data-theme="dark"] .logo-text { color: var(--slate); }
html[data-theme="dark"] .logo-item:hover .logo-text { color: #93C5FD; }

/* Cards */
html[data-theme="dark"] .tilt-inner { background: var(--surface); }
html[data-theme="dark"] .produto-card:hover .tilt-inner,
html[data-theme="dark"] .cliente-card:hover .tilt-inner { border-color: rgba(96, 165, 250, 0.35); }
html[data-theme="dark"] .tilt-inner::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 165, 250, 0.12), transparent 45%); }
html[data-theme="dark"] .produto-card.wide .tilt-inner {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(96, 165, 250, 0.32) 0%, rgba(96, 165, 250, 0) 55%),
    linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 50%, #0F1E3D 100%);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 30px 60px -30px rgba(37, 99, 235, 0.6);
}
html[data-theme="dark"] .produto-card.wide .sofia-feat-title { color: #fff; }

/* Processo */

/* Para quem */
html[data-theme="dark"] .depth-orb.o1 { background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 65%); }
html[data-theme="dark"] .depth-orb.o2 { background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%); }

/* Depoimentos */
html[data-theme="dark"] .depo-card { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .depo-card::before { color: #60A5FA; opacity: 0.25; }
html[data-theme="dark"] .depo-text { color: var(--slate); }
html[data-theme="dark"] .depo-count i { background: rgba(148, 163, 184, 0.2); }

/* Certificações, CTA e rodapé */
html[data-theme="dark"] .certs-bar {
  background: linear-gradient(120deg, #0B1628 0%, #10264F 60%, #1A47B0 140%);
  border-top: 1px solid rgba(148, 163, 184, 0.08); border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
html[data-theme="dark"] .scroll-hint span { border-color: rgba(148, 163, 184, 0.35); }
html[data-theme="dark"] #depoimentos .depo-text { color: #B4C0D2; }
/* Flip cards no escuro */
html[data-theme="dark"] .flip-toggle { color: #93C5FD; background: var(--surface-2); border-color: rgba(147, 197, 253, 0.28); box-shadow: 0 6px 18px -8px rgba(59, 130, 246, 0.6); }
html[data-theme="dark"] .flip-toggle::before { border-color: rgba(147, 197, 253, 0.4); }
html[data-theme="dark"] .flip-toggle:hover, html[data-theme="dark"] .flip-toggle:focus-visible { background: var(--blue); color: #fff; border-color: var(--blue); }
html[data-theme="dark"] .flip-card.is-flipped .flip-toggle, html[data-theme="dark"] .produto-card.wide .flip-toggle { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
html[data-theme="dark"] .flip-card.is-flipped .flip-toggle:hover { background: #fff; color: #1D4ED8; }
html[data-theme="dark"] .flip-back { box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3), 0 30px 60px -30px rgba(37, 99, 235, 0.55); }
html[data-theme="dark"] .produto-card.wide .flip-front {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(96, 165, 250, 0.32) 0%, rgba(96, 165, 250, 0) 55%),
    linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 50%, #0F1E3D 100%);
}
html[data-theme="dark"] .produto-card:hover .flip-face { border-color: var(--line); }
html[data-theme="dark"] .produto-card.wide .flip-back { background: linear-gradient(135deg, #0F1B33 0%, #13284F 60%, #1A3E8F 130%); }
