/* ============================================
   Mavikon - Landing Page CSS
   ============================================ */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --border-color: rgba(255,255,255,0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10,10,15,0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59,130,246,0.4);
}

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 11px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-actions .btn {
    padding: 14px 28px;
    font-size: 14px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================
   Hero Visual - Dashboard Preview
   ============================================ */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-badge {
    background: rgba(16,185,129,0.1);
    color: var(--success);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preview-stat {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 14px;
}

.preview-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.preview-stat-value {
    font-size: 18px;
    font-weight: 700;
}

.preview-stat-value.positive {
    color: var(--success);
}

.preview-chart {
    height: 100px;
    background: linear-gradient(180deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: translateY(-30px);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card.left {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: -2s;
}

.floating-card.right {
    right: -40px;
    bottom: 20%;
    animation-delay: -4s;
}

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

.floating-card.right {
    animation: float2 6s ease-in-out infinite;
}

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

.floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 6px;
}

.floating-icon.success {
    background: rgba(16,185,129,0.15);
    color: var(--success);
}

.floating-icon.accent {
    background: rgba(59,130,246,0.15);
    color: var(--accent);
}

.floating-label {
    font-size: 10px;
    color: var(--text-muted);
}

.floating-value {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 24px;
    background: var(--bg-card);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ============================================
   Integrations
   ============================================ */
.integrations {
    padding: 100px 24px;
}

.integrations-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.integration-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 40px;
    text-align: center;
    transition: all 0.3s;
    min-width: 160px;
}

.integration-item:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.integration-item i {
    font-size: 36px;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.integration-item h4 {
    font-size: 15px;
    font-weight: 600;
}

.integration-item.active {
    border-color: rgba(16,185,129,0.3);
}

.integration-item.active i {
    color: var(--success);
}

.integration-badge {
    font-size: 10px;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 100px 24px;
    background: var(--bg-card);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta .btn-primary {
    padding: 16px 40px;
    font-size: 15px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 56px 24px 28px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 14px;
    max-width: 280px;
}

.footer h5 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.footer ul {
    list-style: none;
}

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

.footer ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,15,0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent);
}

.mobile-menu .btn {
    margin-top: 12px;
    font-size: 14px;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .floating-card {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 18px;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .hero {
        padding: 70px 20px 40px !important;
        min-height: auto;
        overflow-x: hidden;
    }
    
    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 26px;
        letter-spacing: -0.5px;
    }
    
    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .hero-badge {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .hero-stats {
        gap: 8px;
        justify-content: space-between;
        margin-top: 32px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 60px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    /* Dashboard Preview - Horizontal Scroll on Mobile */
    .hero-visual {
        margin: 0;
    }
    
    .dashboard-preview {
        padding: 12px;
    }
    
    .preview-header {
        margin-bottom: 12px;
    }
    
    .preview-title {
        font-size: 13px;
    }
    
    .preview-stats {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .preview-stats::-webkit-scrollbar {
        display: none;
    }
    
    .preview-stat {
        flex: 0 0 auto;
        min-width: 110px;
        padding: 12px;
    }
    
    .preview-stat-value {
        font-size: 16px;
    }
    
    .preview-chart {
        height: 60px;
    }
    
    /* Features Mobile */
    .features {
        padding: 50px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 18px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
        margin-bottom: 14px;
    }
    
    .feature-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .feature-card p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .section-header {
        margin-bottom: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-desc {
        font-size: 13px;
    }
    
    /* Integrations Mobile */
    .integrations {
        padding: 50px 20px;
    }
    
    .integrations-grid {
        gap: 8px;
    }
    
    .integration-item {
        padding: 14px 16px;
        min-width: 100px;
        flex: 1;
    }
    
    .integration-item i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .integration-item h4 {
        font-size: 12px;
    }
    
    .integration-badge {
        font-size: 9px;
    }
    
    /* CTA Mobile */
    .cta {
        padding: 50px 20px;
    }
    
    .cta h2 {
        font-size: 22px;
    }
    
    .cta p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .cta .btn-primary {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 36px 20px 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-brand .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .footer-brand .logo-text {
        font-size: 18px;
    }
    
    .footer-brand p {
        max-width: 100%;
        font-size: 12px;
    }
    
    .footer h5 {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .footer ul a {
        font-size: 12px;
    }
    
    .footer ul li {
        margin-bottom: 6px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 11px;
    }
    
    .social-links a {
        font-size: 14px;
    }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 380px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .logo-text {
        font-size: 15px;
    }
    
    .mobile-menu-btn {
        font-size: 16px;
    }
    
    .hero {
        padding: 64px 16px 36px !important;
    }
    
    .hero-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .hero-desc {
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 7px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .cta h2 {
        font-size: 20px;
    }
    
    .feature-card {
        padding: 16px;
    }
}

