:root {
    --primary: #8ec740;
    --primary-glow: rgb(142 199 64);
    --bg-dark: #0a0b0c;
    --bg-panel: #16181a;
    --bg-panel-light: #212427;
    --text-main: #f5f6f7;
    --text-muted: #9ba0a6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.large-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

/* Navigation Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10, 11, 12, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo img {
    height: 91px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

/* 1. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    width: 100%;
}

.glass-panel {
    max-width: 700px;
    background: rgba(22, 24, 26, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-headline .line {
    display: block;
    overflow: hidden;
}

.hero-headline .word {
    display: inline-block;
    transform: translateY(100%);
}

.highlight {
    color: var(--primary);
}

.hero-subheadline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
}

/* 2. Chaos to Order Section */
.chaos-to-order {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
}

.split-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.split-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.split-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.side-overlay.dark {
    background: rgba(0,0,0,0.7);
}

.side-overlay.bright {
    background: linear-gradient(to right, rgba(10,11,12,0.95) 0%, rgba(10,11,12,0.6) 100%);
}

/* Initially hide order side for scroll reveal */
.order-side {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.split-content-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    z-index: 10;
}

.split-text-box {
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
}

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

/* 3. By the Numbers */
.stats-section {
    padding: 6rem 0;
    background: var(--bg-panel);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    position: relative;
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.stat-card:hover .stat-underline {
    width: 100%;
}

/* 4. Core Service Portfolio */
.services-section {
    padding: 8rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-top: 4rem;
}

.bento-card {
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card.large {
    grid-column: span 2;
}

.bento-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: rgba(70, 255, 130, 0.3);
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.bento-card:hover .learn-more {
    opacity: 1;
    transform: translateX(0);
}

/* 5. Industries We Empower */
.industries-section {
    padding: 8rem 0;
    background: var(--bg-panel-light);
}

.industries-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
}

.industry-item {
    flex: 1;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--bg-panel);
    transition: all 0.3s ease;
    cursor: pointer;
}

.industry-item:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.industry-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.industry-item:hover .industry-icon,
.industry-item:hover p {
    color: var(--bg-dark);
}

.industry-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

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

/* 6. Tech & Visibility */
.tech-section {
    padding: 10rem 0;
    overflow: hidden;
}

.tech-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tech-content {
    flex: 1;
}

.tech-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.tech-visual {
    flex: 1;
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    border-radius: 12px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(70,255,130,0.1);
    /* GSAP will animate this */
}

.dashboard-mockup img {
    border-radius: 12px;
    width: 100%;
}

.pulse-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

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

.dot-1 { top: 20%; left: 30%; }
.dot-2 { top: 60%; right: 20%; animation-delay: 0.5s; }
.dot-3 { bottom: 30%; left: 40%; animation-delay: 1s; }


/* 7. Our Competitive Edge */
.advantage-section {
    padding: 8rem 0;
    background: var(--bg-panel);
}

.tabs-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.tabs-nav {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: var(--text-main);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 0; height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.tabs-content {
    position: relative;
    min-height: 150px;
}

.tab-pane {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tab-pane p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-panel-light) 0%, var(--bg-dark) 100%);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* 8. Footer */
.site-footer {
    background: #0f1113;
    padding: 6rem 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand .footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand .tagline {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.site-footer h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Inner Pages */
.page-header {
    padding: 12rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-panel-light) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.content-section {
    padding: 4rem 0 8rem;
    background: var(--bg-dark);
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Forms */
.form-container {
    max-width: 800px;
    background: var(--bg-panel);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    padding: 1rem;
    background: var(--bg-panel-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Custom Cursor — only on real mouse devices */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none !important;
    }
    a, button, input, textarea, .tab-btn, .btn {
        cursor: none !important;
    }
}

/* Hide custom cursor dot on touch/mobile */
@media (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #8ec740;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: difference; /* Professional touch so it contrasts on any background */
}

/* Hover state animation */
.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(142, 199, 64, 0.2);
    border-color: transparent;
}

/* Responsive */

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 11, 12, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
.mobile-nav-drawer.open {
    display: flex;
}
.mobile-nav-drawer a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s ease;
}
.mobile-nav-drawer a:hover {
    color: var(--primary);
}
.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: none !important;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-card.large {
        grid-column: span 2;
    }
    .tech-container {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-links, .header-cta {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }

    /* Hero */
    .hero-headline {
        font-size: 2.6rem;
    }
    .glass-panel {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    .hero-subheadline {
        font-size: 1rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }

    /* Services Bento */
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.large {
        grid-column: span 1;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    /* Industries */
    .industries-row {
        flex-direction: column;
        align-items: stretch;
    }
    .industry-item {
        justify-content: flex-start;
        padding: 1rem;
    }

    /* Chaos/Order section */
    .chaos-order-text {
        font-size: 2.5rem;
    }

    /* Tech section */
    .tech-container {
        flex-direction: column;
    }
    .tab-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Inner pages */
    .page-header {
        padding: 8rem 0 3rem;
    }
    .page-header .hero-headline {
        font-size: 2.2rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-container {
        padding: 0 1rem;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
    .large-btn {
        width: 100%;
        text-align: center;
    }

    /* Policy pages */
    .policy-content {
        padding: 2rem 1.5rem;
    }

    /* Coming soon */
    .coming-soon-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .glass-panel {
        padding: 1.5rem 1rem;
    }
    .logo img {
        height: 60px;
    }
    .chaos-order-text {
        font-size: 1.8rem;
    }
}

