@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&display=swap');

:root {
    /* Color System - Antigravity Light with Blue Accents */
    --bg-absolute: #f4f8fd; /* Slightly blue-tinted white */
    --bg-surface: #ffffff;
    --bg-surface-elevated: #eef4ff; /* Light blue */
    
    --color-teal: #0ea5e9;
    --color-cobalt: #0055ff; /* Deep blue from typical logos */
    --color-glow-rgb: 0, 85, 255;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 85, 255, 0.1);
    --border-glow: rgba(0, 85, 255, 0.2);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Physics & Animation Transitions */
    --transition-physics: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.3s ease;
    --shadow-neon: 0 4px 20px rgba(15, 23, 42, 0.04), 0 0 40px rgba(15, 23, 42, 0.02);
    --shadow-neon-hover: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 60px rgba(15, 23, 42, 0.04);
}

/* Zero-Gravity Scrollbar & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-absolute);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100%;
}

body {
    background-color: var(--bg-absolute);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-absolute);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

/* Background Canvas Layer */
#antigravity-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Main Content Layer */
.content-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Keyframe Animations: Zero-G Float */
@keyframes float-zero-g {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 50px rgba(37, 99, 235, 0.2);
    }
}

/* Levitating Logo Core Container */
.logo-cube-vector {
    display: inline-block;
    animation: float-zero-g 6s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.1));
}
.logo-cube-vector img {
    max-width: 250px;
    height: auto;
    mix-blend-mode: multiply; /* Removes the white background box */
}

/* Interactive Card Matrix Grid */
.cards-matrix-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    perspective: 1000px;
}

/* Glassmorphism Interactive Cards */
.anti-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-physics);
    transform-style: preserve-3d;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 16px rgba(0, 85, 255, 0.04);
}

.anti-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--color-glow-rgb), 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Interactive Card Parallax Hover Matrix */
.anti-card:hover {
    transform: scale(1.03) translateY(-8px);
    border-color: rgba(0, 85, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 85, 255, 0.1);
    background: #ffffff;
}

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

/* Sibling Blur State Pattern handled via Container Hover Parent class */
.cards-matrix-container:hover .anti-card:not(:hover) {
    transform: scale(0.97) blur(1px);
    opacity: 0.7;
}

/* Floating Input Forms */
.lead-form-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    margin: 4rem auto;
    box-shadow: var(--shadow-neon);
    backdrop-filter: blur(20px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: #ffffff;
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.75rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--color-teal);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
}

/* Buttons and States */
.btn-vector {
    background: linear-gradient(90deg, var(--color-cobalt) 0%, var(--color-teal) 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1.1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-physics);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-vector:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.btn-vector::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: var(--transition-physics);
    pointer-events: none;
}

.btn-vector:hover::after {
    left: 120%;
}

/* Loading State */
.btn-vector.state-loading {
    cursor: wait;
    opacity: 0.8;
    pointer-events: none;
}

.btn-vector.state-loading::before {
    content: '';
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* Success Messages */
.success-vector-message {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-physics);
    text-align: center;
    padding: 2rem;
    display: none;
}

.success-vector-message.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-physics);
    pointer-events: none;
}

/* Footer Light Theme Adjustment */
footer p {
    color: var(--text-muted);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.1rem 2rem;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 85, 255, 0.08), 0 4px 20px rgba(0, 85, 255, 0.04);
    padding: 0.7rem 2rem;
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.navbar-logo {
    height: 36px;
    width: auto;
    mix-blend-mode: multiply;
}

.navbar-brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.navbar-brand-name span {
    color: var(--color-cobalt);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-cobalt);
    background: rgba(0, 85, 255, 0.05);
}

.nav-link-cta {
    background: linear-gradient(90deg, #0055ff, #0ea5e9);
    color: #ffffff !important;
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.2);
    margin-left: 0.5rem;
    transition: var(--transition-physics) !important;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 85, 255, 0.3) !important;
    background: linear-gradient(90deg, #0044dd, #0ea5e9) !important;
    color: #fff !important;
}

/* Mobile toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .navbar-toggle { display: flex; }

    .navbar-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75vw; max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 30px rgba(0, 85, 255, 0.1);
    }

    .navbar-links.open { right: 0; }

    .nav-link { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; }
    .nav-link-cta { width: 100%; text-align: center; margin-left: 0; margin-top: 1rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(2);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    margin-top: 0.5rem;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #0ea5e9; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.3); }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

