:root {
    /* Colors */
    --primary-blue: #0A3D91;
    --primary-blue-light: #1A56DB;
    --primary-blue-neon: #3b82f6;
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Variables */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    
    /* Shadows */
    --shadow-neon: 0 0 20px rgba(59, 130, 246, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(10, 61, 145, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(10, 61, 145, 0.2) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-blue {
    background: linear-gradient(135deg, var(--primary-blue-neon), #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(26, 86, 219, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-neon);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 12px 30px;
}

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

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

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

.nav-item {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-item:hover {
    color: white;
}

.nav-btn {
    padding: 10px 24px;
    background: var(--primary-blue-light);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-blue-neon);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-blue-neon);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.visible {
    opacity: 1;
}

/* Navbar scrolled state */
.navbar.scrolled {
    padding: 8px 30px;
    background: rgba(15, 23, 42, 0.98);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    display: none; /* Replaced by body mesh gradient */
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 24px;
    color: white;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-video-wrapper {
    width: 100%;
    max-width: 1000px;
    perspective: 1200px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: rotateX(5deg) scale(0.98);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(10, 61, 145, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.video-container:hover {
    transform: rotateX(0deg) scale(1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Features - Bento Grid Style */
.features-section {
    padding: 120px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(10, 61, 145, 0.2);
}

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

/* Spanning items for Bento look */
.feature-card:nth-child(1) { grid-column: span 2; }
.feature-card:nth-child(4) { grid-column: span 2; }

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(10, 61, 145, 0.3);
    color: var(--primary-blue-neon);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: white;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-perks li {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-perks i {
    color: var(--primary-blue-neon);
    font-size: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.contact-form-wrapper {
    padding: 50px;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.5);
    color: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue-neon);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.form-group select option {
    background: var(--bg-surface);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Section - Simplified & Enlarged */
.footer {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-social-only {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    color: white;
    background: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-neon);
}

.copyright {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card:nth-child(1),
    .feature-card:nth-child(4) { grid-column: span 1; }

    .hero-title { font-size: 4rem; }
    .section-header h2 { font-size: 2.5rem; }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info h2 { font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Body: disable fixed bg attachment (iOS safari blurry bug) */
    body {
        background-attachment: scroll;
    }

    /* Navbar: full-width pill bar at top */
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 12px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .brand-logo { height: 34px; }

    /* Desktop nav hidden; mobile drawer slides in from right */
    .nav-links {
        display: flex !important; /* keep in DOM */
        position: fixed;
        top: 0;
        right: -100%;
        height: 100dvh;
        width: min(320px, 85vw);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 40px;
        background: var(--bg-surface);
        border-left: 1px solid rgba(255,255,255,0.07);
        z-index: 999;
        transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto;
    }

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

    .mobile-overlay {
        display: block; /* exists in DOM, controlled by opacity */
    }

    .nav-item {
        width: 100%;
        padding: 16px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: var(--text-main);
    }

    .nav-btn {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 110px 0 60px;
        min-height: auto;
    }

    .hero-container { gap: 40px; }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Disable 3D tilt on video for mobile (breaks layout) */
    .video-container {
        transform: none !important;
    }

    /* Features */
    .features-section { padding: 70px 0; }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .feature-card:nth-child(1),
    .feature-card:nth-child(4) { grid-column: span 1; }

    /* Contact */
    .contact-section { padding: 70px 0; }

    .contact-info h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .contact-form h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 40px;
    }

    .social-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .footer-social-only { gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .badge { font-size: 0.75rem; padding: 6px 12px; }

    .hero { padding: 100px 0 50px; }

    .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }

    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .contact-perks li { font-size: 0.95rem; gap: 12px; }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 13px 14px;
        font-size: 0.95rem;
    }

    .social-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .footer-social-only { gap: 16px; }
    .copyright { font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL (≤ 360px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .hero-title { font-size: 1.7rem; }
    .section-header h2 { font-size: 1.5rem; }
    .contact-info h2 { font-size: 1.5rem; }
    .feature-card { padding: 22px 18px; }
    .contact-form-wrapper { padding: 22px 16px; }
}
