/* ==========================================
   970Tech - Global Design System & Stylesheet
   ========================================== */

/* Variables & Design Tokens */
:root {
    --bg-main: #0B0F19;
    --bg-card: #111827;
    --bg-card-hover: #1E293B;
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.15);
    --primary-glow-strong: rgba(16, 185, 129, 0.35);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dark: #64748B;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(16, 185, 129, 0.3);
    --success: #22C55E;
    --info: #3B82F6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Reset & Base Rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: rgba(16, 185, 129, 0.3);
}

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

.btn-success {
    background-color: #25D366;
    color: #fff;
    border-color: #25D366;
}

.btn-success:hover {
    background-color: #20ba5a;
    border-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.logo-accent {
    color: var(--primary);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-glow);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 550px;
}

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

/* Hero Live Terminal card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
}

.hero-card-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), transparent);
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.hero-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    width: 100%;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.card-dots span:nth-child(1) { background-color: #EF4444; }
.card-dots span:nth-child(2) { background-color: #F59E0B; }
.card-dots span:nth-child(3) { background-color: #10B981; }

.card-title-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card-body {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terminal-line {
    color: var(--text-muted);
    word-break: break-all;
}

.t-accent { color: var(--primary); }
.t-success { color: var(--success); }
.t-info { color: var(--info); }

.progress-line {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
    position: relative;
    animation: loading 3s ease-in-out infinite alternate;
}

.progress-percentage {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary);
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.mt-4 { margin-top: 40px; }

/* Service Cards */
.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.05), transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MultiBot N970 Section */
.multibot {
    background-color: rgba(255, 255, 255, 0.01);
    position: relative;
}

.multibot-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(11, 15, 25, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.multibot-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.1;
    z-index: 0;
}

.multibot-banner-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.banner-badge {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.multibot-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.multibot-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.feature-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.feature-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feature-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.feature-box h3 {
    font-size: 1.25rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps / Process Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1;
    color: rgba(16, 185, 129, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    transition: var(--transition-smooth);
}

.step-card:hover .step-num {
    color: var(--primary);
    transform: scale(1.1);
}

.step-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    margin-top: 20px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contato-info h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contato-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.text-accent {
    color: var(--primary);
}

.contato-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.contato-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.whatsapp-direct {
    text-align: center;
    margin-top: 24px;
}

.divider-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: var(--border-color);
}

.divider-text::before { left: 10%; }
.divider-text::after { right: 10%; }

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 12px;
    max-width: 320px;
}

.footer-links, .footer-system {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-system h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-links a, .footer-system a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-system a:hover {
    color: var(--primary);
}

.footer-dashboard-link {
    color: var(--primary) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* Animations */
@keyframes loading {
    from {
        left: -20%;
        width: 30%;
    }
    to {
        left: 90%;
        width: 10%;
    }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 0;
    }
    
    .nav {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav.active {
        left: 0;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        padding: 140px 0 60px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .grid-2 { grid-template-columns: 1fr; }
    
    .multibot-banner {
        padding: 40px 24px;
        text-align: center;
    }
    
    .contato-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contato-info {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 12px auto 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .grid-3 { grid-template-columns: 1fr; }
    .steps-container { grid-template-columns: 1fr; }
    .contato-card { padding: 24px; }
}
