/* ============================================================
   TIODOMARKETING — LP INSTITUCIONAL v5
   Conteúdo SEMPRE visível por padrão. JS só adiciona efeitos.
   ============================================================ */

:root {
    --black: #000000;
    --white: #ffffff;
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.12);
    --gray: #888888;
    --gray-dark: #111111;
    --gray-mid: #0e0e0e;
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
    background: #000000;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #000000;
    color: #ffffff;
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   CANVAS PARTÍCULAS
   ============================================================ */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 60px;
    transition: background 0.4s, padding 0.4s;
}

#nav.scrolled {
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover { color: #fff; }

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-link--dropdown { cursor: pointer; }

.nav-link--dropdown svg {
    transition: transform 0.3s;
    opacity: 0.6;
}

.nav-dropdown:hover .nav-link--dropdown svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

/* Ponte invisível que cobre o gap entre o link e o submenu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--cyan);
    background: rgba(0,212,255,0.05);
}

.nav-cta {
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--cyan);
    color: #000;
    padding: 10px 22px;
    border-radius: 2px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ============================================================
   SEÇÕES — base
   ============================================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 60px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 60px;
}

.section-title em {
    font-style: normal;
    color: var(--cyan);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ============================================================
   HERO
   ============================================================ */
.section--hero {
    min-height: 100vh;
    padding-top: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(3rem, 7.5vw, 7.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

.hero-title .line { display: block; }
.hero-title .line--accent { color: var(--cyan); }
.hero-title .line--outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    color: transparent;
}

.hero-sub {
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 0.01em;
    margin-bottom: 56px;
    max-width: 520px;
    line-height: 1.75;
}

.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--gray);
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--cyan);
    animation: scrollLine 2s 1s infinite;
}

@keyframes scrollLine {
    0%   { left: -100%; }
    50%  { left: 0; }
    100% { left: 100%; }
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: none;
}

.btn--primary { background: var(--cyan); color: #000; }
.btn--primary:hover { background: #fff; transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn--large { padding: 18px 40px; font-size: 1rem; }

/* ============================================================
   SOBRE
   ============================================================ */
.section--sobre { background: var(--gray-mid); }

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.sobre-text p {
    color: var(--gray);
    line-height: 1.85;
    font-size: 0.97rem;
    margin-bottom: 20px;
}

.sobre-text strong { color: #fff; font-weight: 600; }

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat { display: flex; flex-direction: column; }

.stat-number {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
}

.stat-suffix, .stat-prefix {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 0.04em;
    margin-top: 8px;
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.servico-item {
    padding: 44px 36px;
    background: var(--gray-mid);
    transition: background 0.3s;
}

.servico-item:hover { background: #1a1a1a; }

.servico-icon {
    width: 46px;
    height: 46px;
    background: var(--cyan-dim);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--cyan);
}

.servico-icon svg { width: 20px; height: 20px; }

.servico-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.servico-item p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================================
   SEGMENTOS
   ============================================================ */
.section--segmentos { background: var(--gray-mid); }

.segmentos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.segmento-card {
    display: block;
    padding: 56px 44px;
    background: #0a0a0a;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s, transform 0.3s;
    border: 1px solid rgba(255,255,255,0.04);
}

.segmento-card:hover {
    background: #141414;
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.2);
}

.segmento-icon {
    width: 52px;
    height: 52px;
    background: var(--cyan-dim);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    color: var(--cyan);
}

.segmento-icon svg { width: 24px; height: 24px; }

.segmento-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.segmento-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 26px;
}

.segmento-link {
    font-size: 0.82rem;
    color: var(--cyan);
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ============================================================
   CLIENTES — LOGOS CARROSSEL
   ============================================================ */
.section--clientes { background: var(--gray-mid); overflow: hidden; }

.logos-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

.logos-track:hover { animation-play-state: paused; }

@keyframes logoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.logo-item {
    height: 47px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.logo-item:hover { opacity: 0.9; }

/* ============================================================
   CASES
   ============================================================ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 40px;
}

.case-card {
    padding: 48px 36px;
    background: var(--gray-mid);
    border-top: 2px solid var(--cyan);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-tag {
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.case-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.case-metrics {
    display: flex;
    gap: 32px;
    margin: 8px 0;
}

.case-metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-metric {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 900;
    color: var(--cyan);
    letter-spacing: -0.04em;
    line-height: 1;
}

.case-metric-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.04em;
}

.case-link {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s;
    margin-top: auto;
}

.case-link:hover { color: var(--cyan); }

.cases-cta { text-align: center; }

/* ============================================================
   BLOG
   ============================================================ */
.section--blog {
    background: var(--gray-mid);
    text-align: center;
}

.blog-sub {
    font-size: 1rem;
    color: var(--gray);
    max-width: 480px;
    margin: -30px auto 48px;
    line-height: 1.75;
}

/* ============================================================
   CONTATO
   ============================================================ */
.section--contato { text-align: center; }

.contato-sub {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
    margin: -30px auto 56px;
    line-height: 1.75;
}

.contato-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    padding: 60px 60px 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
    background: #000;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 60px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-logo span { color: var(--cyan); }

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

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

.footer-col-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 0.82rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--cyan); }

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.social-link:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-nav { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 900px) {
    .section { padding: 80px 24px; }
    #nav { padding: 20px 24px; }
    #nav.scrolled { padding: 14px 24px; }
    .nav-links { display: none; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 5rem); }
    .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
    .servicos-grid { grid-template-columns: 1fr 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .segmentos-grid { grid-template-columns: 1fr; }
    .hero-scroll { display: none; }
    #footer { padding: 40px 24px; }
}

@media (max-width: 600px) {
    .servicos-grid { grid-template-columns: 1fr; }
    .sobre-stats { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: clamp(2rem, 12vw, 3.5rem); }
    .contato-ctas { flex-direction: column; align-items: center; }
    .case-metrics { flex-direction: column; gap: 16px; }
}
