/* 
  NuTalk - Enterprise SaaS Premium CSS 
*/

:root {
    /* Colors */
    --bg-main: #05080f;
    --bg-secondary: #0a0f18;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-primary: #10b981; /* NuTalk Green */
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.2);
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --container-width: 1200px;
    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    
    /* Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
}

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

body.theme-dark {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0f172a;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

.navbar .btn-outline {
    color: #0f172a;
    border-color: #cbd5e1;
}

.navbar .btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 var(--spacing-xl);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(5,8,15,0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.badge-accent {
    background: var(--accent-glow);
    border-color: rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

/* Credibility Strip */
.credibility {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

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

.metric-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.trusted-by {
    text-align: center;
}

.trusted-by p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.logos-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    opacity: 0.5;
    flex-wrap: wrap;
}

.trusted-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Pillars Section */
.pillar-section {
    padding: var(--spacing-xl) 0;
}

.pillar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.reverse-layout .pillar-container {
    direction: rtl;
}
.reverse-layout .pillar-content, 
.reverse-layout .pillar-visual {
    direction: ltr;
}

.pillar-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.pillar-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.pillar-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* NuRecorder Highlight */
.highlight-section {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.05) 0%, var(--bg-main) 70%);
}

.highlight-header {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

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

.nurecorder-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-panel .mockup-img {
    border-radius: var(--radius-sm);
}

.panel-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.panel-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Security Cards */
.security-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.security-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sec-card {
    padding: 32px;
    transition: transform 0.3s;
}

.sec-card:hover {
    transform: translateY(-8px);
}

.sec-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.sec-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.sec-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.sec-card-highlight {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), var(--glass-shadow);
    position: relative;
}

.sec-card-highlight::before {
    content: "DESTAQUE";
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Diferenciais */
.diferenciais-section {
    padding: var(--spacing-lg) 0;
}

.dif-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-lg);
}

.dif-item h4 {
    color: var(--text-main);
    margin-bottom: 8px;
}

.dif-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
}

.cta-container {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(16,185,129,0.1) 100%);
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
/* Footer */
.footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    background: #ffffff;
    padding: var(--spacing-lg) 0 40px;
    color: #0f172a;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: #475569;
    margin-top: 16px;
    font-size: 14px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.link-group h4 {
    margin-bottom: 24px;
    color: #0f172a;
}

.link-group a {
    display: block;
    color: #475569;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #64748b;
    font-size: 14px;
}

/* --- Hero 3D Wrapper --- */
.hero-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: float 6s infinite ease-in-out;
}
.hero-3d-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.2));
}

/* Mockup Abstract Animation */
.mockup-abstract {
    padding: 32px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.abstract-ui {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ui-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.ui-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ui-lines .line {
    height: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.ui-lines .short {
    width: 60%;
}

.ui-chart {
    flex: 1;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .pillar-container, .nurecorder-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title { font-size: 48px; }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-list li {
        text-align: left;
        display: inline-block;
        width: 100%;
        max-width: 400px;
    }
    
    .credibility-grid, .security-cards, .dif-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .cta-title { font-size: 32px; }
    
    .nav-links { display: none; }
    
    .credibility-grid, .security-cards, .dif-grid {
        grid-template-columns: 1fr;
    }
    
    .logos-row {
        gap: 24px;
        flex-direction: column;
        align-items: center;
    }
}

/* --- Hero Tech Sphere --- */
.tech-sphere-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tech-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-width: 2px;
    border-color: rgba(16, 185, 129, 0.5);
    animation: rotate1 10s linear infinite;
}

.ring-2 {
    width: 200px;
    height: 200px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: rotate2 15s linear infinite;
}

.ring-3 {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.1);
    animation: rotate1 5s linear infinite reverse;
}

.tech-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.core-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tech-floating-panel {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

.pulse-dot.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.pulse-dot.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.p1 { top: 10%; right: 0; animation-delay: 0s; }
.p2 { bottom: 20%; left: -20px; animation-delay: 1s; }
.p3 { bottom: 10%; right: 20px; animation-delay: 2s; }

@keyframes rotate1 {
    0% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}

@keyframes rotate2 {
    0% { transform: translate(-50%, -50%) rotateX(70deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(70deg) rotateY(20deg) rotateZ(-360deg); }
}

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

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Carousel NuRecorder --- */
.nurecorder-carousel-container {
    position: relative;
    padding: 16px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-main);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(5,8,15,0.95) 0%, rgba(5,8,15,0.7) 60%, transparent 100%);
    padding: 40px 24px 24px;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.carousel-caption p {
    font-size: 14px;
    color: var(--text-muted);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.prev-btn { left: 16px; }
.next-btn { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

/* --- Cascade Isometric --- */
.cascade-mockup {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.cascade-back {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 80%;
    transform: rotateY(-10deg) rotateX(2deg) translateZ(-50px) scale(1.05);
    opacity: 0.7;
    z-index: 1;
    transition: all 0.5s ease;
    border-radius: var(--radius-md);
}

.cascade-front {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 85%;
    transform: rotateY(-5deg) rotateX(2deg) translateZ(50px) scale(1.05);
    z-index: 2;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.6);
    transition: all 0.5s ease;
    border-radius: var(--radius-md);
}

.cascade-mockup:hover .cascade-back {
    transform: rotateY(-5deg) rotateX(0deg) translateZ(-20px) scale(1.15);
    opacity: 0.9;
}

.cascade-mockup:hover .cascade-front {
    transform: rotateY(-2deg) rotateX(0deg) translateZ(80px) scale(1.15);
}

.floating-wa-badge {
    position: absolute;
    top: 40%;
    left: -20px;
    transform: translateY(-50%) translateZ(100px);
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    z-index: 3;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    animation: float 4s infinite ease-in-out;
}

/* --- Contact Section --- */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-container {
    padding: 64px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.contact-info p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.03);
}

.contact-link.wa-link { color: #25D366; }
.contact-link.ig-link { color: #E1306C; }

.contact-link:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

/* --- PABX Cascade --- */
.pabx-cascade {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.pabx-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    transform: rotateY(5deg) rotateX(2deg) translateZ(-50px) scale(1.05);
    opacity: 0.8;
    z-index: 1;
    transition: all 0.5s ease;
    border-radius: var(--radius-md);
    box-shadow: 10px 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.pabx-front {
    position: absolute;
    bottom: 5%;
    left: 5%;
    width: 65%;
    transform: rotateY(10deg) rotateX(0deg) translateZ(50px) scale(1.1);
    z-index: 2;
    box-shadow: -15px 20px 40px rgba(0,0,0,0.6);
    transition: all 0.5s ease;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pabx-cascade:hover .pabx-back {
    transform: rotateY(2deg) rotateX(0deg) translateZ(-20px) scale(1.15);
    opacity: 1;
}

.pabx-cascade:hover .pabx-front {
    transform: rotateY(5deg) rotateX(0deg) translateZ(80px) scale(1.2);
}

@media (max-width: 768px) {
    .tech-sphere-container {
        width: 100%;
        height: 300px;
        transform: scale(0.8);
    }
    .carousel-caption h3 { font-size: 16px; }
    .carousel-caption p { font-size: 12px; }
}