:root {
    /* Colors */
    --bg-dark: #020202;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --primary: #376ab1;
    /* Blue */
    --primary-glow: rgba(55, 106, 177, 0.4);
    --secondary: #7dc0de;
    /* Light Blue */
    --accent: #96b4a8;
    /* Sage Green */
    --accent-warm: #a95c2e;
    /* Terracotta Orange */

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);

    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 1rem;
}

* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #376ab1, #7dc0de, #96b4a8, #a95c2e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.8;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(55, 106, 177, 0.5);
    box-shadow: 0 12px 40px rgba(55, 106, 177, 0.15), 0 0 0 1px rgba(55, 106, 177, 0.1);
    transform: translateY(-5px);
}

/* Button Premium with Gradient Border - Final Definitive Version */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    color: white !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;

    /* REFINED GRADIENT BORDER TECHNIQUE (SOFTER) */
    border: 1.7px solid transparent;
    background-image: linear-gradient(#020202, #020202),
        linear-gradient(45deg, #376ab1, #4a90e2, #a95c2e, #c77d4e);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background-image: linear-gradient(rgba(55, 106, 177, 0.1), rgba(55, 106, 177, 0.1)),
        linear-gradient(45deg, #4a90e2, #376ab1, #c77d4e, #a95c2e);
    box-shadow: 0 8px 25px rgba(55, 106, 177, 0.2), 0 0 10px rgba(169, 92, 46, 0.15);
    transform: translateY(-2px) scale(1.01);
}

/* Ensure no shadows or pseudo-elements are inherited */
.btn-primary::before,
.btn-primary::after {
    display: none !important;
}

.box-shadow-glow {
    box-shadow: 0 0 15px var(--primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: #888;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

/* Background Stars Animation can be done in JS or CSS, here's a simple CSS base */
.star-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 50%, rgba(10, 20, 40, 0.5) 0%, rgba(2, 2, 2, 1) 100%);
}

.star-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}