/* === CSS Variables === */
:root {
    --bg-dark: #6284C6;
    --bg-surface: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(98, 132, 198, 0.6);
    --border-glass: rgba(255, 255, 255, 0.2);

    --primary-blue: #6284C6;
    --primary-blue-glow: rgba(255, 255, 255, 0.3);
    --primary-yellow: #F2D449;
    --primary-yellow-dim: rgba(242, 212, 73, 0.4);

    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-dark: #0f172a;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'TeX Gyre Termes', 'Times New Roman', serif;
    --font-spartan: 'League Spartan', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

/* === Typography === */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-pure);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === UI Elements === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

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

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #f7e87b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-yellow-dim);
}

.btn-accent {
    background: transparent;
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-accent:hover {
    background-color: var(--primary-yellow-dim);
    color: var(--primary-yellow);
}

.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

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

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
}

.logo {
    font-size: 2.2rem;
    font-family: var(--font-logo);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--primary-yellow);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-spartan);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-primary);
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--text-pure);
}

/* === Background Animated Mesh === */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.blob-1,
.blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-blue-glow);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(245, 224, 80, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for navbar */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-pure);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary-yellow);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.led-by {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}

.led-by strong {
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
}

/* === Features === */
.features {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--primary-yellow);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

/* === CTA Section === */
.cta-section {
    padding: 6rem 0;
}

.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-blue-glow);
    filter: blur(80px);
    z-index: 0;
}

.cta-box h2,
.cta-box p,
.cta-box .btn {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Responsiveness === */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        margin-top: 0.5rem;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links a:not(.btn) {
        display: none;
        /* Hide standard links to save space */
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand .logo-group {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    body {
        padding-top: 40px;
    }
}