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

:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-accent: #1a1a1a;
    --accent-color: #00D2FF;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #D1D1D1; /* Brighter grey for readability */
    --text-muted: #888888;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

[data-vimeo-id] {
    cursor: pointer;
}

/* Before/After Placeholder */
.comparison-placeholder {
    width: 100%;
    height: 180px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.comparison-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--accent-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.comparison-placeholder:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-overlay svg {
    fill: var(--bg-color);
    width: 24px;
    height: 24px;
    margin-left: 4px; /* Optical centering for play triangle */
}

.reel-card {
    display: flex;
    flex-direction: column;
}

.reel-card .comparison-placeholder {
    height: 300px;
}


/* Technical Spec Sheet */
.spec-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-color);
    padding: 1.5rem 2rem;
    height: 100%;
    transition: var(--transition-smooth);
}

.spec-box:hover {
    background: rgba(0, 210, 255, 0.05);
}

.spec-header {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.spec-benefit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    display: block;
}

.spec-list {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 2;
}

/* Tech Stack Ribbon */
.tech-stack-ribbon {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.tech-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Trusted By Ribbon */
.trusted-ribbon {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trusted-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition-smooth);
}

.trusted-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

.trust-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* Hero Enhancements */
.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 5;
    text-align: left;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #050505 0%, #050505 15%, rgba(5,5,5,0.7) 35%, transparent 70%);
    z-index: 1;
}

/* Digital Grid Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 3; /* Move above overlay */
    pointer-events: none;
}

/* Subtle Blue Color Grade Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    mix-blend-mode: soft-light;
    opacity: 0.1;
    z-index: 2; /* Move above overlay */
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}


.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    display: none; /* Hide the old CSS icon */
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

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

.nav-cta {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.8rem !important;
}

@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--accent-color);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--accent-color);
    }
}

/* Form Utilities */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #fff;
    transform: scale(1.05);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-outline.btn-secondary-border {
    border-color: rgba(0, 210, 255, 0.3); /* Subtle cyan border */
}

.btn-outline:hover {
    border-color: var(--accent-color);
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-color);
}

.tagline-light { font-weight: 500; opacity: 0.9; }
.tagline-heavy { font-weight: 800; color: var(--accent-color); }

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

.hero-video {
    position: absolute;
    top: 0;
    left: 10%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: -1;
    filter: contrast(1.05);
}

.hero .container {
    margin-left: 0;
    max-width: 100%;
    padding-left: 10%;
}

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

.hero-tagline {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.3em;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Scroll Arrow */
.scroll-arrow {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    cursor: pointer;
    color: var(--accent-color);
    opacity: 0.6;
    transition: var(--transition-smooth);
    animation: scrollPulse 2s infinite ease-in-out;
}

.scroll-arrow.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
    animation: none;
}

.scroll-arrow:hover {
    opacity: 1;
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* Grid Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--surface-color);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

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

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 1100px;
    position: relative;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
}

.modal-video-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background: #000;
}

.modal-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
    
    .hero .container {
        padding-left: 5%;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-video {
        left: 0;
    }

    .hero-overlay {
        background: radial-gradient(circle at center, rgba(5,5,5,0.4) 0%, #050505 100%);
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero div[style*="display: flex"] {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .trusted-grid {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .trust-logo {
        font-size: 0.9rem;
    }

    .section-padding h2 {
        font-size: 2.2rem !important;
    }

    /* Stack Capabilities header */
    .section-padding div[style*="display: flex; justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Stats stacking */
    div[style*="display: flex; justify-content: center; gap: 4rem"] {
        flex-direction: column;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1rem !important;
    }
}
