/**
 * InfinityWave — Visual tecnológico e moderno
 * Complementa style_v1.css com hero fullscreen, terminal, bento grid e seções de impacto.
 */

:root {
    --font-heading: 'Syne', sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tech-radius: 16px;
    --tech-radius-lg: 24px;
}

/* Corpo com fonte mais neutra e levemente condensada para evitar aspecto "esticado" */
body {
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

/* ========== HERO FULLSCREEN ========== */
.hero-full {
    min-height: 100vh;
    padding: 0 !important;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-full .hero-container {
    position: relative;
    z-index: 2;
}

/* Grid do hero com movimento suave (efeito tech) */
.hero-full.hero::before {
    animation: hero-grid-drift 35s linear infinite;
}

@keyframes hero-grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-bg-glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
    animation: hero-glow-pulse 8s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

/* Partículas flutuantes sutis */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 210, 255, 0.4);
    border-radius: 50%;
    animation: hero-particle-float 15s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.hero-particles span:nth-child(2) { left: 80%; top: 60%; animation-delay: -4s; animation-duration: 20s; }
.hero-particles span:nth-child(3) { left: 45%; top: 75%; animation-delay: -8s; animation-duration: 16s; }
.hero-particles span:nth-child(4) { left: 70%; top: 25%; animation-delay: -2s; animation-duration: 22s; }
.hero-particles span:nth-child(5) { left: 25%; top: 55%; animation-delay: -6s; animation-duration: 19s; }

@keyframes hero-particle-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(10px, -15px) scale(1.1); opacity: 0.6; }
    50% { transform: translate(-5px, -25px) scale(0.9); opacity: 0.35; }
    75% { transform: translate(-15px, -10px) scale(1.05); opacity: 0.5; }
}

.hero-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.95;
}

.hero-headline {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-headline-brand {
    background: linear-gradient(135deg, #00d2ff 0%, #00a8cc 50%, #00d2ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

.hero-headline-accent {
    background: linear-gradient(135deg, #00d2ff 0%, #00a8cc 50%, #00d2ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.25));
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.btn-hero-primary {
    background: #fff;
    color: var(--primary) !important;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: var(--tech-radius);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
    color: var(--primary) !important;
}

.btn-hero-outline {
    background: transparent;
    color: #fff !important;
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    border-radius: var(--tech-radius);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.btn-hero-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: rgba(0, 210, 255, 0.08);
}

/* ========== TERMINAL MOCKUP ========== */
.terminal-mockup {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(8, 16, 24, 0.9);
    border-radius: var(--tech-radius);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 210, 255, 0.15), 0 0 40px rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    animation: terminal-glow 4s ease-in-out infinite;
}

@keyframes terminal-glow {
    0%, 100% { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 210, 255, 0.15), 0 0 40px rgba(0, 210, 255, 0.08); }
    50% { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 210, 255, 0.25), 0 0 50px rgba(0, 210, 255, 0.15); }
}

/* Linha de scan sutil no terminal */
.terminal-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.15), transparent);
    pointer-events: none;
    z-index: 1;
    animation: terminal-scan 3s ease-in-out infinite;
}

@keyframes terminal-scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Linhas do terminal aparecem em sequência */
.terminal-line {
    opacity: 0;
    animation: terminal-line-in 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.45s; }
.terminal-line:nth-child(3) { animation-delay: 0.7s; }
.terminal-line:nth-child(4) { animation-delay: 0.95s; }
.terminal-line:nth-child(5) { animation-delay: 1.2s; }
.terminal-line:nth-child(6) { animation-delay: 1.45s; }

@keyframes terminal-line-in {
    to { opacity: 1; }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-title {
    margin-left: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 4px;
}

.t-comment { color: #6a9955; }
.t-prompt { color: rgba(255, 255, 255, 0.5); margin-right: 8px; }
.t-cmd { color: #00d2ff; }
.t-ok { color: #27c93f; margin-right: 8px; }

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--accent);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    animation: scroll-hint 2.5s ease-in-out infinite;
}

.hero-scroll-hint i {
    font-size: 1.2rem;
}

@keyframes scroll-hint {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ========== STATS STRIP ========== */
.stats-strip {
    background: var(--primary);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 210, 255, 0.12);
    border-bottom: 1px solid rgba(0, 210, 255, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* Números em cor sólida (sem gradiente) para evitar efeito estranho em "Curitiba" e "24/7" */
.stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ========== SECTIONS ========== */
.section-light {
    background: #f8fafc;
}

.section-dark {
    background: linear-gradient(180deg, var(--dark-accent) 0%, var(--primary) 100%);
    color: #fff;
}

.section-header {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-title-lg {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    letter-spacing: 0;
    color: var(--primary);
}

.section-dark .section-title-lg,
.section-title-light {
    color: #fff !important;
}

.section-title-lg::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

.section-header .section-title-lg::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title-light::after {
    margin-left: 0;
    margin-right: auto;
}

.section-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #64748b;
    max-width: 480px;
    letter-spacing: 0.01em;
}

.section-dark .section-sub {
    color: rgba(255, 255, 255, 0.7);
}

/* Menos espaço entre seções = mais delicadeza */
.section.section-light,
.section.section-dark {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section.section-light,
    .section.section-dark {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.section-header.mb-5 {
    margin-bottom: 2rem !important;
}

/* ========== BENTO GRID — todos os cards do mesmo tamanho ========== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-item {
    min-height: 180px;
}

.bento-card {
    height: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 210, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.15);
}

.bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(0, 134, 179, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    letter-spacing: 0;
}

.bento-card p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.bento-link {
    font-weight: 600;
    color: var(--accent) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.bento-link:hover {
    color: var(--accent-secondary) !important;
    gap: 10px;
}

/* Bento responsivo */
@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PRODUCT SHOWCASE (Gestor) ========== */
.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.feature-list li i {
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.product-mockup {
    position: relative;
}

.product-mockup-label {
    position: absolute;
    top: -8px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
}

.product-mockup-frame {
    border-radius: var(--tech-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.12);
}

.product-mockup-frame img {
    display: block;
    width: 100%;
}

/* ========== CTA SECTION ========== */
.section-cta {
    background: linear-gradient(145deg, var(--primary) 0%, var(--dark-accent) 50%, #0d2137 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 0.35rem;
}

.cta-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.01em;
}

.btn-cta-outline {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.btn-cta-outline:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(0, 210, 255, 0.08) !important;
}

.cta-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    max-width: 280px;
    margin: 0 auto;
}

.cta-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00a8cc);
    border-radius: 8px;
    transition: width 0.8s ease;
}

/* ========== CONTATO — faixa compacta (sem cards grandes) ========== */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.contact-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 210, 255, 0.08);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.contact-strip-item:hover {
    border-color: rgba(0, 210, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-strip-item i {
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-strip-item:hover i {
    color: var(--accent-secondary);
}

.contact-strip-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-strip-value {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.01em;
}

.contact-strip-item:hover .contact-strip-value {
    color: var(--accent-secondary);
}

/* Label acima do valor */
.contact-strip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.contact-strip-label {
    line-height: 1.2;
}

.contact-strip-value {
    line-height: 1.3;
}

/* Em telas pequenas: itens em coluna para não apertar */
@media (max-width: 575.98px) {
    .contact-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-strip-item {
        justify-content: flex-start;
    }
}

/* ========== NAVBAR Ajuste com nova fonte ========== */
.navbar .navbar-brand,
.navbar .nav-link {
    font-family: var(--font-heading);
}

.navbar .brand-text {
    font-weight: 700;
}

/* ========== RESPONSIVE HERO ========== */
@media (max-width: 991.98px) {
    .hero-full .min-vh-100 {
        min-height: auto !important;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    .terminal-mockup {
        margin-top: 2rem;
        max-width: 100%;
    }
    .hero-scroll-hint {
        position: relative;
        bottom: auto;
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-headline {
        font-size: 1.85rem;
    }
}
