/* ========================================
   MOCTech - Main Stylesheet
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #00D95F;
    --primary-dark: #00B84E;
    --secondary: #1E293B;
    --accent: #F59E0B;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --text-light: #F1F5F9;
    --text-muted: #94A3B8;
    --whatsapp: #25D366;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   Background & Animations
   ======================================== */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    background: radial-gradient(circle at 20% 20%, rgba(0, 217, 95, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 217, 95, 0.1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    font-family: 'Space Mono', monospace;
    color: var(--primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--whatsapp), var(--primary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 217, 95, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    font-size: clamp(20px, 2.5vw, 26px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 48px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: 0 8px 24px rgba(0, 217, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 217, 95, 0.4);
}

.btn-secondary {
    background: rgba(241, 245, 249, 0.05);
    color: var(--text-light);
    border: 2px solid rgba(241, 245, 249, 0.1);
}

.btn-secondary:hover {
    background: rgba(241, 245, 249, 0.1);
    border-color: var(--primary);
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 217, 95, 0.05), rgba(245, 158, 11, 0.05));
    border-radius: 32px;
    margin: 0 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    display: block;
    margin-bottom: 8px;
}

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

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    text-align: center;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   Features Grid
   ======================================== */
.features,
.services-preview {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(0, 217, 95, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.6);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--whatsapp));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}

/* ========================================
   ChatFlow Highlight Section
   ======================================== */
.chatflow-highlight {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(0, 217, 95, 0.03), rgba(37, 211, 102, 0.08));
    position: relative;
    overflow: hidden;
}

.chatflow-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 95, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.chatflow-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.chatflow-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 217, 95, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.chatflow-text h2 {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--whatsapp));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.chatflow-text h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.2;
}

.chatflow-text p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.chatflow-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(0, 217, 95, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mini-feature:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.mini-feature .icon {
    font-size: 24px;
}

.mini-feature span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.chatflow-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ChatFlow Mockup */
.chatflow-mockup {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(0, 217, 95, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.chatflow-mockup:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 217, 95, 0.2);
}

.mockup-header {
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(0, 217, 95, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.mockup-dots span:nth-child(1) {
    background: #FF5F57;
}

.mockup-dots span:nth-child(2) {
    background: #FFBD2E;
}

.mockup-dots span:nth-child(3) {
    background: #28CA42;
}

.mockup-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.mockup-content {
    padding: 24px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-bubble.right {
    flex-direction: row-reverse;
}

.bubble-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--whatsapp));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bubble-avatar.bot {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.bubble-text {
    background: rgba(30, 41, 59, 0.8);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-light);
    max-width: 70%;
    line-height: 1.5;
}

.chat-bubble.right .bubble-text {
    background: linear-gradient(135deg, rgba(0, 217, 95, 0.2), rgba(37, 211, 102, 0.1));
    border: 1px solid rgba(0, 217, 95, 0.2);
}

.mockup-stats {
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(0, 217, 95, 0.1);
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

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

.stat-mini strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Space Mono', monospace;
}

.stat-mini span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Service Detail Pages
   ======================================== */
.service-detail {
    padding: 80px 0;
}

.service-detail.alt {
    background: rgba(30, 41, 59, 0.2);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse > * {
    direction: ltr;
}

.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 217, 95, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.service-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-light);
}

.service-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.service-features {
    margin-bottom: 32px;
}

.service-features h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-features ul {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.image-placeholder {
    background: linear-gradient(135deg, rgba(0, 217, 95, 0.1), rgba(37, 211, 102, 0.05));
    border: 2px solid rgba(0, 217, 95, 0.2);
    border-radius: 24px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.image-placeholder:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(0, 217, 95, 0.1);
    border-radius: 24px;
    padding: 48px;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(0, 217, 95, 0.05);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    right: 32px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.plan-price {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    margin-bottom: 8px;
}

.plan-price span {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 32px 0;
}

.plan-features li {
    padding: 12px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
    font-size: 18px;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 100px 0;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(0, 217, 95, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    background: linear-gradient(135deg, rgba(0, 217, 95, 0.1), rgba(37, 211, 102, 0.05));
    border: 2px solid var(--primary);
    border-radius: 32px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 95, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.cta-content h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cta-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(0, 217, 95, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

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

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
    
    .chatflow-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1.02) translateY(-8px);
    }
    
    .stats {
        margin: 0 16px;
    }
    
    .cta-content {
        padding: 60px 24px;
    }
    
    .chatflow-features-list {
        grid-template-columns: 1fr;
    }
    
    .chatflow-cta {
        flex-direction: column;
    }
    
    .chatflow-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .mockup-content {
        padding: 16px;
        min-height: 250px;
    }
    
    .bubble-text {
        max-width: 85%;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
