/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    /* Brand Colors */
    --ks-primary: #0353EA;   /* Authoritative Blue */
    --ks-secondary: #00E661; /* Conversion Green */
    --ks-dark: #121212;      /* Rich Black */
    --ks-text-light: #555555;
    --ks-white: #FFFFFF;
    
    /* Typography */
    --ks-font-heading: 'Fredoka', sans-serif;
    --ks-font-body: 'Roboto', sans-serif;
    
    /* Layout */
    --ks-container: 1300px;
    --ks-header-height: 85px;
    --ks-transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ks-font-body);
    color: var(--ks-dark);
    line-height: 1.6;
    background: var(--ks-white);
    overflow-x: hidden;
}

/* --- 2. HEADER SECTION --- */
.site-header {
    background: var(--ks-white);
    width: 100%;
    position: fixed; /* Changed to fixed for the 2026 sticky feel */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--ks-container);
    margin: 0 auto;
    padding: 20px;
}

.site-logo a {
    font-family: var(--ks-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--ks-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Navigation - Mobile First */
.main-navigation { display: none; }

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--ks-dark);
    font-size: 16px;
    font-weight: 500;
    transition: var(--ks-transition);
}

.main-navigation a:hover { color: var(--ks-primary); }

/* Socials */
.header-socials {
    display: none;
    align-items: center;
    gap: 12px;
}

.social-icon {
    background: var(--ks-primary);
    color: var(--ks-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: var(--ks-transition);
}

.social-icon:hover { background: var(--ks-dark); transform: translateY(-2px); }

.social-handle {
    font-weight: 600;
    color: var(--ks-primary);
    margin-left: 5px;
    font-size: 15px;
}

.header-border {
    height: 4px;
    background: var(--ks-secondary);
    width: calc(100% - 40px);
    max-width: 1260px;
    margin: 0 auto;
}

.mobile-toggle {
    display: block;
    cursor: pointer;
    color: var(--ks-primary);
    font-size: 24px;
}

/* --- 3. MOBILE OFFCANVAS --- */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--ks-white);
    z-index: 1100;
    transition: var(--ks-transition);
    padding: 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.offcanvas-menu.active { right: 0; }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1050;
}

.overlay.active { display: block; }

/* --- 4. HERO SECTION --- */
.ks-hero {
    padding: 30px 0;
    margin-top: var(--ks-header-height);
}

.ks-hero-container {
    max-width: var(--ks-container);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.ks-hero-content { text-align: center; }

.ks-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50px;
    padding: 8px 18px;
    /*margin-bottom: 25px;*/
    font-size: 14px;
}

.ks-badge-icon { color: var(--ks-secondary); margin-right: 8px; }

.ks-hero-title {
    font-family: var(--ks-font-heading);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.ks-hero-title .ks-highlight { color: var(--ks-primary); }

.ks-hero-description {
    font-size: 17px;
    color: var(--ks-text-light);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ks-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.ks-btn-primary, .ks-btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--ks-font-heading);
    transition: var(--ks-transition);
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.ks-btn-primary {
    background: var(--ks-primary);
    color: var(--ks-white);
    box-shadow: 0 10px 20px rgba(3, 83, 234, 0.2);
}

.ks-btn-secondary {
    background: transparent;
    color: var(--ks-dark);
    border: 1px solid rgba(0,0,0,0.1);
}

.ks-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(3, 83, 234, 0.3); }

/* --- 5. DECORATIVE ELEMENTS --- */
.ks-hero-visual { position: relative; display: flex; justify-content: center; }
.ks-complex-diagram img { max-width: 100%; height: auto; }

.ks-accent-overlay { position: absolute; inset: 0; pointer-events: none; z-index: -1; }

.ks-accent-ring {
    width: 150px; height: 150px; border: 4px solid var(--ks-primary);
    border-radius: 50%; opacity: 0.1;
    position: absolute; left: -50px; top: 100px;
}

.ks-accent-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    position: absolute; right: 20px; top: 20px;
}

.ks-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ks-secondary); }

/* --- 6. DESKTOP MEDIA QUERIES --- */
@media (min-width: 992px) {
    /* Header Desktop */
    .main-navigation, .header-socials { display: flex; }
    .mobile-toggle { display: none; }

    /* Hero Desktop */
    .ks-hero { padding: 40px 0; }
    .ks-hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    .ks-hero-content { text-align: left; }
    .ks-hero-description { margin-left: 0; }
    .ks-hero-title { font-size: 58px; }
    .ks-hero-actions { flex-direction: row; justify-content: flex-start; }
    .ks-btn-primary, .ks-btn-secondary { width: auto; }
}