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

:root {
    /* Brand Colors */
    --bg-deep-navy: #1C2147;
    --brand-blue: #2F8FBE;
    --brand-orange: #F28C28;
    --accent-teal: #3AA6C9;
    --accent-deep-orange: #E46F1F;
    --text-white: #F2F2F2;
    --text-muted: rgba(242, 242, 242, 0.7);
    --glass-bg: rgba(28, 33, 71, 0.6);
    --glass-border: rgba(47, 143, 190, 0.2);
    
    /* Gradients */
    --grad-blue: linear-gradient(135deg, var(--brand-blue) 0%, var(--accent-teal) 100%);
    --grad-orange: linear-gradient(135deg, var(--brand-orange) 0%, var(--accent-deep-orange) 100%);
    --grad-hero: radial-gradient(circle at top right, rgba(47, 143, 190, 0.15), transparent 40%),
                 radial-gradient(circle at bottom left, rgba(242, 140, 40, 0.1), transparent 40%);

    /* Spacing & Sizing */
    --section-padding: 100px 0;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    
    /* Shadows */
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

body {
    background-color: var(--bg-deep-navy);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

/* Typography Helpers */
.text-gradient-blue {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--grad-blue);
    color: white;
    box-shadow: 0 10px 20px rgba(47, 143, 190, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47, 143, 190, 0.4);
}

.btn--secondary {
    background: var(--grad-orange);
    color: white;
    box-shadow: 0 10px 20px rgba(242, 140, 40, 0.3);
}

.btn--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(242, 140, 40, 0.4);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
}

.btn--outline:hover {
    background: var(--brand-blue);
    color: white;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar--scrolled {
    background: rgba(28, 33, 71, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav__logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav__link:hover, .nav__link.active {
    opacity: 1;
    color: var(--brand-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--brand-blue);
    filter: blur(150px);
    opacity: 0.05;
    top: -100px;
    right: -100px;
    z-index: -1;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--brand-blue);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    opacity: 0.7;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--brand-blue);
}

.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__description {
        margin: 0 auto 40px;
    }
    
    .hero__actions {
        justify-content: center;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nav__mobile_toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .nav__mobile_toggle {
        display: block;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-deep-navy);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav__links.active {
        display: flex;
    }
    
    .nav__links .btn {
        margin-top: 15px;
        width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* Global Responsive Overrides for Inline Grids */
@media (max-width: 768px) {
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.5fr"],
    [style*="grid-template-columns: 1.5fr 1fr"],
    [style*="grid-template-columns: 1fr 1.4fr"],
    [style*="grid-template-columns: 1.4fr 1fr"],
    [style*="grid-template-columns: 0.8fr 1.2fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Prevent minmax constraints from breaking small mobile screens */
    [style*="minmax(360px"],
    [style*="minmax(300px"],
    [style*="minmax(280px"],
    [style*="minmax(250px"] {
        grid-template-columns: 1fr !important;
    }
    
    .hero__actions {
        flex-wrap: wrap;
    }
    .hero__actions .btn {
        width: 100%;
    }
}
