/* ============================================
   GLOBAL.CSS - Core Variables & Base Styles
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #000080;
    --primary-rgb: 0, 0, 128;
    --primary-dark: #000066;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --brand-primary: #000080;
    --brand-dark: #1e293b;
    --brand-muted: #64748b;
    --brand-white: #ffffff;
    --brand-border: #e2e8f0;

    /* Text */
    --text-main: #334155;
    --text-muted: #64748b;

    /* UI Elements */
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;

    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

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

ul {
    list-style: none;
}

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

.mobile-hidden {
    display: block;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.hidden-desktop {
    display: none;
}

.visible-desktop {
    display: block;
}

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

    .visible-desktop {
        display: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 80px 0;
}

.section-spacing {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section, .section-spacing {
        padding: 50px 0;
    }
}

.flex-split {
    display: flex;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .flex-split {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* ============================================
   COMPONENT LIBRARY
   ============================================ */

.badge-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.badge-accent {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-rgb), 0.05);
}

.card-premium {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 128, 0.25);
    color: var(--white);
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 128, 0.25);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Premium Hero Styles (Shared) --- */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.6s ease-out forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-glow-wrap {
    position: relative;
    display: inline-block;
}

.hero-radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 128, 0.12) 0%,
            rgba(255, 153, 51, 0.08) 40%,
            transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* --- Typing Cursor Styles --- */
.cursor, .msme-cursor, .demo-cursor {
    color: #000080 !important;
    font-weight: 700;
    margin-left: 2px;
    animation: cursor-blink 0.8s infinite;
}

#msme-typing-header, #experts-typing-header, .typed-text {
    color: #000080 !important;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}