/* ================================================
   ARTON - Custom Styles
   Paleta: Blues profundos + Cyan + Toques de vermelho
   ================================================ */

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

/* ── Seleção de texto personalizada ── */
::selection {
    background: rgba(33, 150, 243, 0.3);
    color: #fff;
}

/* ── Scrollbar personalizada ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #020A18;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1976D2, #00BCD4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #42A5F5, #26C6DA);
}

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(2, 10, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2196F3, #00BCD4);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(21, 101, 192, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(0, 188, 212, 0.15) 0%, transparent 55%),
        linear-gradient(180deg, #020A18 0%, #03112B 50%, #020A18 100%);
}

.grid-overlay {
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #42A5F5 0%, #00BCD4 50%, #4DD0E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #26C6DA;
    padding: 0.375rem 1rem;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.25);
    border-radius: 9999px;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #26C6DA;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ================================================
   GEOMETRIC SHAPES (Hero BG)
   ================================================ */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.06;
    animation: float-shape 12s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1565C0, transparent);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
    animation-duration: 15s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00BCD4, transparent);
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
    animation-duration: 12s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #42A5F5, transparent);
    top: 40%;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #0D47A1, transparent);
    bottom: 20%;
    right: 40%;
    animation-delay: -8s;
    animation-duration: 10s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-15px, 25px) scale(0.97); }
}

/* ================================================
   HERO VISUAL — HUD PANELS & MACHINE INTEGRATION
   ================================================ */

/* Grid hexagonal de fundo */
.hero-hex-bg {
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Imagem com dissolve suave nas bordas */
.hero-machine-img {
    mask-image: radial-gradient(
        ellipse 80% 76% at 52% 50%,
        black        0%,
        black        22%,
        rgba(0,0,0,0.92) 35%,
        rgba(0,0,0,0.70) 48%,
        rgba(0,0,0,0.40) 60%,
        rgba(0,0,0,0.15) 72%,
        transparent  82%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 80% 76% at 52% 50%,
        black        0%,
        black        22%,
        rgba(0,0,0,0.92) 35%,
        rgba(0,0,0,0.70) 48%,
        rgba(0,0,0,0.40) 60%,
        rgba(0,0,0,0.15) 72%,
        transparent  82%
    );
    filter: drop-shadow(0 0 40px rgba(0, 188, 212, 0.2));
}

/* Scan line animado sobre a máquina */
.scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 188, 212, 0.0) 10%,
        rgba(0, 188, 212, 0.6) 50%,
        rgba(0, 188, 212, 0.0) 90%,
        transparent 100%
    );
    box-shadow: 0 0 12px 3px rgba(0, 188, 212, 0.3);
    animation: scan-move 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes scan-move {
    0%   { top: 5%;   opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { top: 90%;  opacity: 0; }
}

/* ── HUD Panels ── */
.hud-panel {
    background: rgba(2, 10, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 155px;
    max-width: 205px;
    position: relative;
}

.hud-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(0, 188, 212, 0.8), transparent);
    border-radius: 1px;
}

.hud-panel-right::before {
    left: auto;
    right: 0;
}

.hud-panel::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(0, 188, 212, 0.7);
    border-left: 2px solid rgba(0, 188, 212, 0.7);
    border-radius: 2px 0 0 0;
}

.hud-panel-right::after {
    left: auto;
    right: -1px;
    border-left: none;
    border-right: 2px solid rgba(0, 188, 212, 0.7);
    border-radius: 0 2px 0 0;
}

.hud-status-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.hud-status-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hud-category {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.6);
    margin-bottom: 2px;
}

.hud-value {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 2px;
}

.hud-sub {
    font-size: 9px;
    color: rgba(103, 232, 249, 0.75);
    font-weight: 500;
    line-height: 1.4;
}

/* ================================================
   HERO VISUAL BADGES (animação compartilhada)
   ================================================ */
.tech-badge {
    animation: float-badge 4s ease-in-out infinite;
}

.badge-tl { animation-delay: 0s; }
.badge-tr { animation-delay: 1s; }
.badge-bl { animation-delay: 2s; }
.badge-br { animation-delay: 3s; }

@keyframes float-badge {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

/* ── Logo float ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(1deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ── Spin animations ── */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

.animate-spin-slow    { animation: spin-slow 20s linear infinite; }
.animate-spin-reverse { animation: spin-reverse 15s linear infinite; }

/* ── Badge entry animation ── */
@keyframes badge-entry {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-badge {
    animation: badge-entry 0.8s ease 0.3s both;
}

/* ================================================
   PARTICLES CANVAS
   ================================================ */
#particles-canvas {
    pointer-events: none;
}

/* ================================================
   REVEAL ANIMATIONS (Intersection Observer)
   ================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ================================================
   STAT CARDS
   ================================================ */
.stat-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.2);
    transform: translateY(-4px);
}

/* ================================================
   SOLUTION CARDS
   ================================================ */
.solution-card {
    position: relative;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976D2, #00BCD4);
    border-radius: 1.5rem 1.5rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ================================================
   TIMELINE
   ================================================ */
.timeline-card {
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(33,150,243,0.05), transparent);
    transition: width 0.5s ease;
}

.timeline-card:hover::before {
    width: 100%;
}

/* ================================================
   SECTOR CARDS
   ================================================ */
.sector-card {
    position: relative;
    overflow: hidden;
}

.sector-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33,150,243,0.1), rgba(0,188,212,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.sector-card:hover::after {
    opacity: 1;
}

/* ================================================
   FORM INPUTS
   ================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    caret-color: #26C6DA;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #051D3E inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ================================================
   BACK TO TOP
   ================================================ */
#back-to-top {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   GLOW EFFECTS
   ================================================ */
.glow-blue {
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.3);
}

.text-glow {
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

/* ================================================
   HERO TEXT ANIMATIONS
   ================================================ */
.hero-text h1 {
    animation: slide-up-fade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-text p {
    animation: slide-up-fade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-text .flex.flex-wrap {
    animation: slide-up-fade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-text .mt-12 {
    animation: slide-up-fade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-visual {
    animation: slide-up-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes slide-up-fade {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.15;
    }

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }
}

/* ================================================
   LOADING INDICATOR
   ================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: #020A18;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================
   FEATURE MINI CARDS
   ================================================ */
.feature-mini-card {
    cursor: default;
}

.feature-mini-card:hover {
    background: rgba(33, 150, 243, 0.08);
    transform: translateX(4px);
}

/* ================================================
   GRADIENT BORDERS (custom utility)
   ================================================ */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #1976D2, #00BCD4);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ================================================
   COUNTER ANIMATION
   ================================================ */
.counter {
    display: inline-block;
}

/* ================================================
   CUSTOM SELECTION/INPUT STYLES
   ================================================ */
select option {
    background-color: #051D3E;
    color: #fff;
}

/* ================================================
   SMOOTH TRANSITIONS GLOBAL
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

a, button {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================
   MODAIS DE PRODUTO
   ================================================ */
#modal-overlay {
    animation: none;
}

#modal-overlay.flex {
    display: flex !important;
    animation: modal-bg-in 0.3s ease forwards;
}

@keyframes modal-bg-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#modal-wrapper > div {
    animation: modal-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-slide-in {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Tabs do modal */
.modal-tab {
    color: rgba(147, 197, 253, 0.6);
    border-bottom-color: transparent;
}

.modal-tab.active {
    color: #26C6DA;
    border-bottom-color: #26C6DA;
}

.modal-tab:hover:not(.active) {
    color: rgba(147, 197, 253, 0.9);
}

/* Scroll interno do modal */
.modal-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(33, 150, 243, 0.3) transparent;
}

.modal-scrollable::-webkit-scrollbar {
    width: 4px;
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.3);
    border-radius: 2px;
}

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
#whatsapp-float {
    text-decoration: none;
}

#whatsapp-float .absolute {
    bottom: 0;
    right: 0;
}

/* ================================================
   PARTNER BADGES
   ================================================ */
.partner-badge {
    min-width: 160px;
}

/* ================================================
   COMPARISON TABLE
   ================================================ */
.border-white\/8 {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ================================================
   FAQ ACCORDION
   ================================================ */
.faq-item {
    cursor: pointer;
}

.faq-item.open {
    border-color: rgba(33, 150, 243, 0.35);
    background: rgba(33, 150, 243, 0.06);
}

.faq-item.open .faq-icon {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.faq-item.open .faq-icon svg {
    transform: rotate(180deg);
    color: #26C6DA;
}

.faq-answer {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
}

/* ================================================
   ROTATING TEXT HERO
   ================================================ */
#rotating-text {
    display: inline-block;
    min-width: 200px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#rotating-text.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

#rotating-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    #navbar, #back-to-top, #particles-canvas, .shape {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
