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

/* ═══════════════════════════════════════════════════
   DESIGN SYSTEM — EFF5 Brand Identity
   Paleta: Midnight Black / Electric Blue / Pure White
   Fonte: Poppins
   ═══════════════════════════════════════════════════ */

:root {
    --midnight-black: #0A0A0A;
    --midnight-deep: #050505;
    --electric-blue: #00FFFF;
    --electric-blue-dim: rgba(0, 255, 255, 0.15);
    --electric-blue-glow: rgba(0, 255, 255, 0.4);
    --pure-white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.35);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(0, 255, 255, 0.08);
    --card-border-hover: rgba(0, 255, 255, 0.35);
    --grid-line: rgba(0, 255, 255, 0.04);
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--midnight-black);
    color: var(--pure-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Scan Grid Overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* ══════════════════════
   TIPOGRAFIA
   ══════════════════════ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--pure-white);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -1.5px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

p {
    font-weight: 300;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    text-wrap: pretty;
}

.highlight {
    color: var(--electric-blue);
    font-weight: 600;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.8rem;
    height: 1px;
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue-glow);
}

/* ══════════════════════
   BOTÕES
   ══════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--electric-blue);
    border: 1.5px solid var(--electric-blue);
    padding: 0.85rem 2.2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15), inset 0 0 15px rgba(0, 255, 255, 0.05);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--electric-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--midnight-black);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.5), 0 0 80px rgba(0, 255, 255, 0.15);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--pure-white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.85rem 2.2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* ══════════════════════
   HEADER / NAV
   ══════════════════════ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.08);
    padding: 0.8rem 5%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.25));
    transition: filter 0.3s ease;
}

.logo-link:hover img {
    filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.5));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--electric-blue);
    box-shadow: 0 0 6px var(--electric-blue);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--electric-blue);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--pure-white);
    transition: all 0.3s ease;
}

/* ══════════════════════
   HERO SECTION
   ══════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(0, 255, 255, 0.05) 100%
    );
}

/* Animated particles canvas */
#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Floating stats bar */
.hero-stats {
    position: absolute;
    bottom: 4rem;
    left: 5%;
    right: 5%;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

/* ══════════════════════
   SECTION COMMONS
   ══════════════════════ */
.section {
    position: relative;
    z-index: 1;
    padding: 7rem 5%;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-header p {
    margin-top: 1rem;
}

/* ══════════════════════
   SERVIÇOS
   ══════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 255, 0.06);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.12);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--electric-blue);
    fill: none;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.3));
}

.service-card h3 {
    color: var(--pure-white);
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ══════════════════════
   PRODUTOS
   ══════════════════════ */
.products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.product-row.reverse {
    direction: rtl;
}

.product-row.reverse > * {
    direction: ltr;
}

.product-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.product-visual img {
    max-width: 320px;
    width: 100%;
    border-radius: 20px;
    filter: drop-shadow(0 20px 60px rgba(0, 255, 255, 0.12));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.product-visual:hover img {
    transform: translateY(-8px) scale(1.02);
    filter: drop-shadow(0 30px 80px rgba(0, 255, 255, 0.2));
}

.product-visual .glow-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.08; }
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.badge-live {
    background: rgba(0, 255, 255, 0.1);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 255, 255, 0.25);
}

.badge-soon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info .btn-primary,
.product-info .btn-secondary {
    margin-top: 1.5rem;
}

/* N8N Product */
.n8n-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.n8n-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 255, 0.06);
}

.n8n-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--electric-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ══════════════════════
   CTA SECTION
   ══════════════════════ */
.cta-section {
    text-align: center;
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 2.5rem;
    position: relative;
}

/* ══════════════════════
   FOOTER
   ══════════════════════ */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand p {
    font-size: 0.85rem;
    max-width: 320px;
    margin-top: 0.8rem;
}

.footer-brand img {
    height: 44px;
    opacity: 0.7;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
}

.footer-version {
    font-size: 0.72rem;
    color: var(--electric-blue);
    font-family: 'Courier New', monospace;
    opacity: 0.6;
}

/* ══════════════════════
   ANIMATIONS
   ══════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Glow pulse on stats */
@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
    50% { text-shadow: 0 0 35px rgba(0, 255, 255, 0.6); }
}

.stat-number {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Scan line effect */
@keyframes scanline {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 992px) {
    .product-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .product-row.reverse {
        direction: ltr;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile menu overlay */
    nav.open ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    nav.open a {
        font-size: 1.2rem;
    }

    .hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 10rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 3rem;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
