@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
    --bg-dark: #020617; /* Deep Slate instead of Pure Black */
    --primary-blue: #2563eb;
    --secondary-blue: #38bdf8;
    --silver-text: #f8fafc;
    --silver-border: rgba(255, 255, 255, 0.12);
    --blue-gradient: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    --silver-gradient: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    --glass-bg: rgba(255, 255, 255, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* ── FUNDO FUTURISTA (TECH GRID) ── */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top left, #0f172a 0%, #020617 60%, #000000 100%);
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 200%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(rgba(0, 102, 255, 0.15) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
    animation: gridMove 60s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.glow-orb {
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 50vh;
    background: radial-gradient(ellipse, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
}

/* Linhas de Conexão (Data Streams) */
.connecting-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.line {
    position: absolute;
    width: 2px;
    height: 200vh;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.4), transparent);
    opacity: 0.1;
}

.line-1 { top: -50%; left: 15%; transform: rotate(35deg); animation: pulseLine1 15s infinite ease-in-out; }
.line-2 { top: -50%; left: 85%; transform: rotate(-35deg); animation: pulseLine2 20s infinite ease-in-out; }
.line-3 { top: -20%; left: 50%; transform: rotate(65deg); opacity: 0.05; animation: pulseLine1 25s infinite ease-in-out; }
.line-4 { top: -50%; left: 30%; transform: rotate(-65deg); opacity: 0.05; animation: pulseLine2 18s infinite ease-in-out; }

@keyframes pulseLine1 {
    0% { transform: rotate(35deg) translateY(-10%); opacity: 0.05; }
    50% { opacity: 0.3; }
    100% { transform: rotate(35deg) translateY(10%); opacity: 0.05; }
}

@keyframes pulseLine2 {
    0% { transform: rotate(-35deg) translateY(10%); opacity: 0.05; }
    50% { opacity: 0.2; }
    100% { transform: rotate(-35deg) translateY(-10%); opacity: 0.05; }
}

/* ── CURSOR ── */
#cursor { width: 8px; height: 8px; background: white; border-radius: 50%; position: fixed; pointer-events: none; z-index: 10000; transition: transform 0.1s; }
#cursor-ring { width: 40px; height: 40px; border: 2px solid var(--primary-blue); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* ── NAVEGAÇÃO ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 15px 5%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.logo span { background: var(--blue-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 40px; }
.nav-links a { text-decoration: none; color: #aaa; font-weight: 600; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: white; }

.btn-contact {
    padding: 12px 28px;
    background: var(--blue-gradient);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    transition: 0.3s;
}
.btn-contact:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 102, 255, 0.5); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-globe {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    max-width: 1400px;
    height: auto;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 -20px 80px rgba(0, 102, 255, 0.15));
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-bg-globe img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(50px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 30px;
    background: var(--silver-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: #94a3b8;
    max-width: 800px;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-btns { display: flex; gap: 20px; justify-content: center; }
.btn-hero-primary {
    padding: 20px 45px;
    background: white;
    color: black;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s;
}
.btn-hero-primary:hover { transform: scale(1.05); }

.btn-hero-secondary {
    padding: 20px 45px;
    background: transparent;
    border: 1px solid var(--silver-border);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.05); }

/* ── MARCAS / CARROSSEL ── */
.clients-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(10px);
}

.clients-section p {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.clients-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, #020617 0%, transparent 100%);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, #020617 0%, transparent 100%);
}

.clients-track {
    display: inline-flex;
    gap: 100px;
    animation: scrollCarousel 30s linear infinite;
    padding-left: 100px; /* offset for seamless loop */
}

.clients-track span {
    font-size: 26px;
    font-weight: 900;
    color: #475569;
    letter-spacing: -1px;
    transition: 0.3s;
    cursor: default;
}

.clients-track span:hover {
    color: var(--primary-blue);
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 50px)); } /* -50% for half the elements, 50px for half the gap */
}

/* ── SERVIÇOS ── */
.section { padding: 150px 5%; }
.section-header { text-align: center; margin-bottom: 100px; }
.section-header h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -2px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--silver-border);
    padding: 60px 40px;
    border-radius: 30px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-blue);
    transform: translateY(-15px);
}

.service-card i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    display: block;
}

.service-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 22px; letter-spacing: -0.5px; }
.service-card p { color: #94a3b8; font-size: 16px; line-height: 1.7; }

/* ── DIFERENCIAIS ── */
.diff-section { 
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border: 1px solid var(--silver-border);
    border-radius: 60px; 
    margin: 0 5%; 
    padding: 100px 5%; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.diff-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.diff-content { position: relative; z-index: 2; }
.diff-content h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; margin-bottom: 24px; letter-spacing: -2px; }
.diff-content p { color: #94a3b8; font-size: 18px; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }

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

.stat-box { 
    padding: 40px 20px; 
    background: rgba(255, 255, 255, 0.01); 
    border: 1px solid var(--silver-border); 
    border-radius: 24px; 
    transition: all 0.4s ease;
}

.stat-box:hover {
    background: rgba(0, 102, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    opacity: 0.8;
}

.stat-box h4 { font-size: 48px; font-weight: 900; color: white; line-height: 1; margin-bottom: 12px; }
.stat-box p { font-size: 12px; color: #94a3b8; margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .diff-section { border-radius: 30px; margin: 0 2%; }
}

/* ── CTA ── */
.cta-section { 
    text-align: center; 
    padding: 150px 5%; 
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 { 
    font-size: clamp(40px, 6vw, 80px); 
    font-weight: 900; 
    letter-spacing: -3px; 
    margin-bottom: 30px; 
    line-height: 1.1;
}

.gradient-text {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 50px;
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ── FOOTER ── */
.footer { 
    padding: 100px 5% 40px; 
    border-top: 1px solid var(--silver-border);
    background: #020617; /* Solid color to ensure readability */
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    max-width: 300px;
}

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

.footer-links-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-links-col a, .footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links-col a:hover, .footer-legal a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(50px); transition: 1s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── NOTIFICAÇÕES (TOAST) ── */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.toast {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    width: 100%;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-blue);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.toast-content p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #e2e8f0;
}

.toast-content .time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
}

/* ── RESPONSIVO TABLET ── */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .diff-section { text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVO MOBILE ── */
@media (max-width: 768px) {
    /* NAV */
    .nav { padding: 16px 5%; }
    #cursor, #cursor-ring { display: none !important; }

    /* HERO */
    .hero { padding: 100px 5% 60px; text-align: center; }
    .hero h1 { font-size: clamp(38px, 12vw, 64px); letter-spacing: -2px; }
    .hero p { font-size: 16px; margin-left: auto; margin-right: auto; }
    .hero p br { display: none; }
    .hero-btns { flex-direction: column; align-items: center; gap: 14px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 320px; text-align: center; padding: 16px 30px; }

    /* SEÇÕES */
    .section { padding: 80px 5%; }
    .section-header h2 { font-size: clamp(28px, 8vw, 48px); }

    /* SERVIÇOS */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 30px 24px; }

    /* DIFERENCIAIS */
    .diff-section { padding: 60px 5%; border-radius: 30px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-box { padding: 28px 16px; }
    .stat-box h4 { font-size: 32px; }

    /* CTA */
    .cta-section { padding: 80px 5%; }
    .cta-content h2 { font-size: clamp(26px, 8vw, 44px); }
    .cta-btns { flex-direction: column; align-items: center; }

    /* CARROSSEL */
    .clients-track { gap: 60px; }
    .clients-track span { font-size: 20px; }

    /* FOOTER */
    .footer { padding: 60px 5% 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand p { margin: 0 auto; max-width: 280px; }
    .footer-brand > div { justify-content: center; }
    .footer-links-col a { display: block; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-legal { justify-content: center; }

    /* TOAST MOBILE */
    #toast-container { right: 12px; bottom: 16px; }
    .toast { max-width: calc(100vw - 24px); }
}