@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-glass: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-success: #10b981;
    --color-success-hover: #059669;
    --color-glow-blue: rgba(59, 130, 246, 0.15);
    --color-glow-green: rgba(16, 185, 129, 0.15);
    --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    min-height: 100vh;
    line-height: 1.6;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Grid & Two Column Layouts */
.layout-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 968px) {
    .layout-two-column {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Buttons */
.btn-primary, .btn-small, .btn, .btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #1d4ed8);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

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

.btn-demo {
    background: linear-gradient(135deg, var(--color-success), #047857);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 1rem;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-small {
    background: linear-gradient(135deg, var(--color-success), #047857);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* 1. TOP NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #ffffff 60%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

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

.navbar .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.mobile-cta {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .navbar .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-glass);
        padding: 100px 30px;
        flex-direction: column;
        gap: 24px;
        transition: var(--transition-smooth);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar .nav-links.active {
        right: 0;
    }
    
    .navbar .nav-links a {
        font-size: 1.1rem;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar .nav-links .mobile-cta {
        display: inline-flex !important;
        margin-top: 10px;
        justify-content: center;
        border-bottom: none;
    }
}

/* 2. HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 15, 25, 0.15) 0%,
        rgba(11, 15, 25, 0.35) 60%,
        var(--bg-base) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    padding: 24px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* 3. TRUST SECTION */
.trust-section {
    padding: 60px 0;
    background: rgba(17, 24, 39, 0.4);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* SECTION STACK */
.section-stack {
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

/* 4. SYSTEM FLOW SECTION */
.flow-box {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 18px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.flow-step:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
}

.flow-step-num {
    background: var(--color-accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.flow-step-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.visual-lopa {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.visual-lopa img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.visual-slot {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.visual-slot img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: var(--transition-smooth);
}

.visual-slot img:hover {
    transform: scale(1.02);
}

/* 5. KNOWLEDGE SECTION */
.grid-knowledge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-knowledge .card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-glass);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.grid-knowledge .card:hover {
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

@media (max-width: 576px) {
    .grid-knowledge {
        grid-template-columns: 1fr 1fr;
    }
}

/* 6. AI SECTION */
.flow-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--color-success);
    margin-bottom: 24px;
    width: fit-content;
}

/* 7. DASHBOARD SECTION */
.dashboard-frame {
    position: relative;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #070a13;
}

.dashboard-frame img {
    width: 100%;
    display: block;
    height: auto;
    opacity: 0.9;
}

.dashboard-frame .ui-label {
    position: absolute;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    pointer-events: none;
}

.ui-label:nth-child(2) { top: 15%; left: 8%; }
.ui-label:nth-child(3) { top: 40%; right: 12%; }
.ui-label:nth-child(4) { bottom: 20%; left: 25%; }

/* 8. COMPLIANCE SECTION */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.compliance-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.compliance-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.compliance-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .compliance-grid {
        grid-template-columns: 1fr;
    }
}

/* 9. ABOUT SECTION */
.about-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.about-box p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 10. CONTACT SECTION */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-container input, .contact-container textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.contact-container input:focus, .contact-container textarea:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-container textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-container button {
    background: linear-gradient(135deg, var(--color-accent), #1d4ed8);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition-smooth);
}

.contact-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

/* PRE-FINAL CTA STRIP */
.cta-strip {
    background: linear-gradient(135deg, #1e3a8a, #0b0f19);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 60px 0;
    text-align: center;
}

.cta-strip h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* 11. FOOTER */
footer {
    border-top: 1px solid var(--border-glass);
    background: #070a13;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer .footer-links {
    display: flex;
    gap: 24px;
}

footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

@media (max-width: 576px) {
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* MOBILE RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
    /* Header sizes */
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Section padding overrides */
    .section-stack {
        padding: 40px 0 !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    /* Flow box */
    .flow-box {
        padding: 20px;
        gap: 12px;
    }
    
    .flow-step {
        padding: 10px 14px;
        gap: 12px;
    }
    
    .flow-step-text {
        font-size: 0.9rem;
    }
    
    /* Flow mini wrapping */
    .flow-mini {
        flex-wrap: wrap;
        font-size: 0.75rem;
        padding: 8px 12px;
        gap: 6px;
        line-height: 1.4;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Dashboard Labels hiding to prevent overlap */
    .dashboard-frame .ui-label {
        display: none;
    }
    
    /* Contact */
    .contact-container {
        padding: 24px;
    }
    
    /* Trust Grid adjustments */
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-item h3 {
        font-size: 1.8rem;
    }
    
    .trust-item p {
        font-size: 0.85rem;
    }
    
    /* CTA strip */
    .cta-strip {
        padding: 40px 20px;
    }
    
    .cta-strip h2 {
        font-size: 1.6rem;
    }
    
    .cta-strip p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .cta-strip .btn-primary {
        font-size: 1rem !important;
        padding: 12px 24px !important;
    }
}
