/* =========================================
   Kodilex Landing Page
   ========================================= */

/* --- Hero --- */
.kx-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1923 0%, #1a2e44 50%, #0d3b5e 100%);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.kx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0, 168, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 212, 150, 0.08) 0%, transparent 60%);
}

.kx-hero-content {
    position: relative;
    z-index: 2;
}

.kx-brand-name {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(135deg, #00a8ff 0%, #00d496 50%, #00a8ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kx-brand-shimmer 4s ease-in-out infinite;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

@keyframes kx-brand-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.kx-badge {
    display: inline-block;
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.35);
    color: #00a8ff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.kx-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.kx-hero-title span {
    background: linear-gradient(90deg, #00a8ff, #00d496);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kx-hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.kx-btn-primary {
    background: linear-gradient(90deg, #00a8ff, #0078d4);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.4);
    color: #fff;
}

.kx-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.kx-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Hero visual */
.kx-hero-visual {
    position: relative;
    z-index: 2;
}

/* --- 3D Scene --- */
.kx-3d-scene {
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* === Sun (center) === */
.kx-sun {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,220,0.9) 0%, transparent 18%),
        radial-gradient(circle at 60% 40%, rgba(255,245,140,0.6) 0%, transparent 22%),
        radial-gradient(circle at 22% 60%, rgba(255,200,50,0.5) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(255,160,20,0.6) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, #fdd835 0%, #f9a825 35%, #ef6c00 65%, #bf360c 85%, #4e1600 100%);
    box-shadow:
        0 0 14px rgba(255, 230, 80, 0.7),
        0 0 35px rgba(255, 190, 40, 0.5),
        0 0 60px rgba(255, 140, 0, 0.3),
        0 0 100px rgba(255, 87, 34, 0.15),
        0 0 150px rgba(200, 40, 0, 0.06);
    position: absolute;
    z-index: 10;
    animation: kx-sun-shimmer 5s ease-in-out infinite;
}


/* Animated sun surface — lava/magma convective cells */
.kx-sun-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        /* bright hot spots — lava peaks */
        radial-gradient(circle at 20% 22%, rgba(255,255,180,0.95) 0%, rgba(255,220,60,0.4) 12%, transparent 20%),
        radial-gradient(circle at 55% 35%, rgba(255,250,160,0.85) 0%, rgba(255,210,40,0.35) 14%, transparent 22%),
        radial-gradient(circle at 78% 50%, rgba(255,240,120,0.8)  0%, rgba(255,190,30,0.3)  10%, transparent 18%),
        radial-gradient(circle at 35% 65%, rgba(255,255,200,0.9)  0%, rgba(255,230,80,0.45) 11%, transparent 19%),
        radial-gradient(circle at 65% 75%, rgba(255,245,140,0.75) 0%, rgba(255,200,50,0.3)  13%, transparent 21%),
        radial-gradient(circle at 12% 50%, rgba(255,230,100,0.7)  0%, rgba(255,180,30,0.3)  10%, transparent 17%),
        radial-gradient(circle at 50% 15%, rgba(255,250,170,0.8)  0%, rgba(255,215,50,0.35) 12%, transparent 20%),
        radial-gradient(circle at 85% 28%, rgba(255,235,100,0.65) 0%, rgba(255,190,40,0.25) 11%, transparent 18%),
        /* dark cracks between cells */
        radial-gradient(circle at 38% 42%, rgba(180,80,0,0.5) 0%, transparent 8%),
        radial-gradient(circle at 60% 58%, rgba(160,60,0,0.4) 0%, transparent 7%),
        radial-gradient(circle at 25% 55%, rgba(170,70,0,0.35) 0%, transparent 6%),
        radial-gradient(circle at 72% 35%, rgba(150,50,0,0.3)  0%, transparent 7%);
    animation: kx-surface-churn 6s ease-in-out infinite alternate;
    z-index: 1;
    mix-blend-mode: hard-light;
    opacity: 0.85;
}

/* Plasma eruption base */
.kx-plasma {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Plasma eruption 1 — large, top-right */
.kx-plasma-1 {
    width: 20px;
    height: 36px;
    top: -28px;
    right: -4px;
    background: radial-gradient(ellipse at 50% 100%,
        rgba(255, 180, 0, 0.7) 0%, rgba(255, 100, 0, 0.4) 40%, transparent 70%);
    border-radius: 50% 50% 40% 40%;
    filter: blur(3px);
    animation: kx-plasma-erupt1 6s ease-in-out infinite;
    transform-origin: 50% 100%;
}

/* Plasma eruption 2 — medium, bottom-left */
.kx-plasma-2 {
    width: 14px;
    height: 24px;
    bottom: -18px;
    left: 4px;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(255, 200, 50, 0.65) 0%, rgba(255, 120, 0, 0.35) 45%, transparent 75%);
    border-radius: 40% 40% 50% 50%;
    filter: blur(2px);
    animation: kx-plasma-erupt2 7.5s ease-in-out 1.5s infinite;
    transform-origin: 50% 0%;
}

/* Plasma eruption 3 — small wisp, left */
.kx-plasma-3 {
    width: 10px;
    height: 18px;
    top: 8px;
    left: -12px;
    background: radial-gradient(ellipse at 100% 50%,
        rgba(255, 220, 80, 0.6) 0%, rgba(255, 140, 0, 0.3) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(2px);
    animation: kx-plasma-erupt3 9s ease-in-out 3s infinite;
    transform-origin: 100% 50%;
}

@keyframes kx-sun-shimmer {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(255,230,80,0.7),
            0 0 35px rgba(255,190,40,0.5),
            0 0 60px rgba(255,140,0,0.3),
            0 0 100px rgba(255,87,34,0.15),
            0 0 150px rgba(200,40,0,0.06);
    }
    50% {
        box-shadow:
            0 0 22px rgba(255,230,80,0.85),
            0 0 48px rgba(255,190,40,0.65),
            0 0 80px rgba(255,140,0,0.4),
            0 0 125px rgba(255,87,34,0.22),
            0 0 180px rgba(200,40,0,0.1);
    }
}

@keyframes kx-surface-churn {
    0% {
        background-position:
            0px 0px, 0px 0px, 0px 0px, 0px 0px,
            0px 0px, 0px 0px, 0px 0px, 0px 0px,
            0px 0px, 0px 0px, 0px 0px, 0px 0px;
    }
    100% {
        background-position:
            5px 3px, -4px 5px, 3px -4px, -3px 4px,
            4px -3px, -5px 2px, 2px -5px, -3px 3px,
            -2px 3px, 3px -2px, -3px -2px, 2px 3px;
    }
}

@keyframes kx-plasma-erupt1 {
    0%, 100% { transform: scaleY(0.3) scaleX(0.7);  opacity: 0.2; }
    15%      { transform: scaleY(1.1) scaleX(1);     opacity: 0.9; }
    35%      { transform: scaleY(0.85) scaleX(1.15); opacity: 0.7; }
    55%      { transform: scaleY(1.0) scaleX(0.9);   opacity: 0.8; }
    75%      { transform: scaleY(0.5) scaleX(0.8);   opacity: 0.4; }
}

@keyframes kx-plasma-erupt2 {
    0%, 100% { transform: scaleY(0.2) scaleX(0.6);  opacity: 0.15; }
    20%      { transform: scaleY(0.9) scaleX(1.1);   opacity: 0.85; }
    45%      { transform: scaleY(1.05) scaleX(0.85); opacity: 0.7; }
    70%      { transform: scaleY(0.4) scaleX(0.7);   opacity: 0.3; }
}

@keyframes kx-plasma-erupt3 {
    0%, 100% { transform: scaleX(0.3) scaleY(0.5);  opacity: 0.1; }
    25%      { transform: scaleX(1.0) scaleY(1.1);   opacity: 0.75; }
    50%      { transform: scaleX(0.8) scaleY(0.9);   opacity: 0.6; }
    80%      { transform: scaleX(0.4) scaleY(0.6);   opacity: 0.2; }
}

/* Outer glow halo */
.kx-sun-glow {
    position: absolute;
    width: 350%;
    height: 350%;
    top: -125%;
    left: -125%;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle,
            rgba(255, 245, 130, 0.18) 0%,
            rgba(255, 210, 50, 0.10)  18%,
            rgba(255, 160, 20, 0.05)  38%,
            rgba(255, 100, 0, 0.02)   55%,
            transparent 72%
        );
    animation: kx-sun-pulse 4s ease-in-out infinite;
}

@keyframes kx-sun-pulse {
    0%, 100% { opacity: 0.6;  transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.1); }
}


/* === Planets === */
.kx-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 5;
}

.kx-planet-body {
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

/* Mercury */
.kx-planet-1 .kx-planet-body {
    width: 8px; height: 8px;
    background: radial-gradient(circle at 35% 35%, #cfd8dc, #78909c);
    box-shadow: 0 0 8px rgba(176, 190, 197, 0.5);
}

/* Venus */
.kx-planet-2 .kx-planet-body {
    width: 12px; height: 12px;
    background: radial-gradient(circle at 35% 35%, #ffe0b2, #e65100);
    box-shadow: 0 0 12px rgba(230, 81, 0, 0.4);
}

/* Earth */
.kx-planet-3 .kx-planet-body {
    width: 14px; height: 14px;
    background: radial-gradient(circle at 35% 35%, #4fc3f7, #1565c0 55%, #0d47a1);
    box-shadow: 0 0 16px rgba(33, 150, 243, 0.5);
}

.kx-planet-3 .kx-planet-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 55% 35% at 50% 45%, rgba(76, 175, 80, 0.55), transparent),
        radial-gradient(ellipse 35% 25% at 28% 60%, rgba(76, 175, 80, 0.3), transparent);
}

/* Moon (orbits Earth) */
.kx-moon {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #e0e0e0, #9e9e9e);
    box-shadow: 0 0 6px rgba(224, 224, 224, 0.4);
    position: absolute;
    transform: translate(-50%, -50%);
}

/* Mars */
.kx-planet-4 .kx-planet-body {
    width: 10px; height: 10px;
    background: radial-gradient(circle at 35% 35%, #ef9a9a, #c62828);
    box-shadow: 0 0 12px rgba(198, 40, 40, 0.45);
}

/* Jupiter */
.kx-planet-5 .kx-planet-body {
    width: 22px; height: 22px;
    background: radial-gradient(circle at 35% 35%, #ffe0b2, #d4a056 40%, #a1887f);
    box-shadow: 0 0 20px rgba(212, 160, 86, 0.35);
}

.kx-planet-5 .kx-planet-body::before {
    content: '';
    position: absolute;
    top: 45%; left: 10%; right: 10%;
    height: 2px;
    background: rgba(141, 110, 80, 0.4);
    border-radius: 50%;
}

/* Saturn */
.kx-planet-6 .kx-planet-body {
    width: 18px; height: 18px;
    background: radial-gradient(circle at 35% 35%, #fff9c4, #f9a825 50%, #c6a04b);
    box-shadow: 0 0 16px rgba(249, 168, 37, 0.35);
}

.kx-planet-6 .kx-planet-body::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 36px; height: 12px;
    transform: translate(-50%, -50%) rotateX(55deg);
    border: 2px solid rgba(255, 210, 100, 0.55);
    border-radius: 50%;
    box-shadow:
        0 0 4px rgba(249, 200, 80, 0.4),
        inset 0 0 3px rgba(249, 200, 80, 0.2);
}

/* Uranus */
.kx-planet-7 .kx-planet-body {
    width: 14px; height: 14px;
    background: radial-gradient(circle at 35% 35%, #b2ebf2, #00acc1 60%, #006064);
    box-shadow: 0 0 14px rgba(0, 172, 193, 0.4);
}

/* Neptune */
.kx-planet-8 .kx-planet-body {
    width: 13px; height: 13px;
    background: radial-gradient(circle at 35% 35%, #9fa8da, #283593 60%, #1a237e);
    box-shadow: 0 0 14px rgba(40, 53, 147, 0.5);
}

/* === Planet Popover === */
.kx-planet-popover {
    position: absolute;
    top: 0;
    left: 0;
    width: 230px;
    overflow: visible;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.97), rgba(26, 46, 68, 0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 168, 255, 0.25);
    border-radius: 12px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 6px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 168, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kx-planet-popover.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Arrow — flips left/right based on planet position */
.kx-popover-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}
.kx-popover-arrow.arrow-left {
    left: -8px;
    border-right: 8px solid rgba(15, 25, 35, 0.97);
    filter: drop-shadow(-2px 0 4px rgba(0,0,0,0.3));
}
.kx-popover-arrow.arrow-right {
    right: -8px;
    border-left: 8px solid rgba(15, 25, 35, 0.97);
    filter: drop-shadow(2px 0 4px rgba(0,0,0,0.3));
}

.kx-popover-inner {
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    position: relative;
}
.kx-popover-inner::-webkit-scrollbar { width: 3px; }
.kx-popover-inner::-webkit-scrollbar-thumb { background: rgba(0,168,255,0.3); border-radius: 3px; }

.kx-popover-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8899aa;
    font-size: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.kx-popover-close:hover {
    background: rgba(255, 60, 60, 0.15);
    border-color: rgba(255, 60, 60, 0.3);
    color: #ff6b6b;
}

.kx-popover-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-right: 20px;
}

.kx-popover-planet-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.35s;
}

.kx-popover-name {
    font-size: 14px;
    font-weight: 700;
    color: #e8eef4;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.kx-popover-type {
    font-size: 9px;
    color: #6b8ba4;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.kx-popover-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.kx-popover-stat {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
}

.kx-popover-stat:hover {
    background: rgba(0, 168, 255, 0.06);
    border-color: rgba(0, 168, 255, 0.15);
}

.kx-popover-stat i {
    font-size: 11px;
    color: #00a8ff;
    margin-top: 1px;
    flex-shrink: 0;
}

.kx-popover-label {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #5a7a8f;
    font-weight: 600;
    margin-bottom: 1px;
}

.kx-popover-value {
    display: block;
    font-size: 10.5px;
    color: #c8d8e8;
    font-weight: 500;
    line-height: 1.2;
}

.kx-popover-fact {
    font-size: 10px;
    line-height: 1.5;
    color: #7a9ab0;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-style: italic;
}

/* Hover effects on planets */
.kx-planet-body {
    transition: box-shadow 0.3s, filter 0.3s, transform 0.3s ease, opacity 0.3s ease;
}
.kx-planet:hover .kx-planet-body {
    filter: brightness(1.4) drop-shadow(0 0 6px rgba(255,255,255,0.3));
}
.kx-sun {
    transition: filter 0.2s;
}
.kx-sun:hover {
    filter: brightness(1.15);
}

/* Mobile: make popover full width within the scene */
@media (max-width: 576px) {
    .kx-planet-popover {
        width: 200px;
    }
    .kx-popover-inner {
        padding: 10px;
        max-height: 240px;
    }
    .kx-popover-stats {
        grid-template-columns: 1fr;
    }
    .kx-popover-planet-icon {
        width: 24px;
        height: 24px;
    }
    .kx-popover-name {
        font-size: 12px;
    }
    .kx-popover-fact {
        display: none;
    }
}

/* === Background stars === */
.kx-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: kx-twinkle 3s ease-in-out infinite;
}

.kx-star-1 { width: 2px; height: 2px; top: 5%;  left: 10%; animation-delay: 0s; }
.kx-star-2 { width: 3px; height: 3px; top: 12%; right: 8%; animation-delay: 0.8s; }
.kx-star-3 { width: 2px; height: 2px; top: 70%; left: 5%;  animation-delay: 1.5s; }
.kx-star-4 { width: 2px; height: 2px; top: 85%; right: 15%; animation-delay: 0.3s; }
.kx-star-5 { width: 3px; height: 3px; top: 30%; left: 2%;  animation-delay: 2.1s; }
.kx-star-6 { width: 2px; height: 2px; top: 55%; right: 3%; animation-delay: 1.2s; }
.kx-star-7 { width: 2px; height: 2px; bottom: 5%; left: 40%; animation-delay: 0.6s; }
.kx-star-8  { width: 3px; height: 3px; top: 8%;  left: 65%; animation-delay: 1.8s; }
.kx-star-9  { width: 2px; height: 2px; top: 22%; left: 48%; animation-delay: 0.4s; }
.kx-star-10 { width: 1px; height: 1px; top: 62%; left: 28%; animation-delay: 2.8s; }
.kx-star-11 { width: 3px; height: 3px; top: 42%; right: 10%; animation-delay: 1.6s; }
.kx-star-12 { width: 2px; height: 2px; top: 78%; left: 58%; animation-delay: 0.9s; }
.kx-star-13 { width: 1px; height: 1px; top: 35%; left: 78%; animation-delay: 3.2s; }
.kx-star-14 { width: 2px; height: 2px; top: 92%; left: 18%; animation-delay: 1.4s; }
.kx-star-15 { width: 3px; height: 3px; top: 18%; left: 38%; animation-delay: 2.5s; }
.kx-star-16 { width: 1px; height: 1px; top: 68%; right: 22%; animation-delay: 0.7s; }

@keyframes kx-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.4); }
}

/* === Deep-space nebula background === */
.kx-space-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 55% 50%, rgba(13, 59, 94, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 35% 45% at 15% 25%, rgba(0, 80, 180, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 85% 75%, rgba(90, 0, 170, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* === Asteroid belt particles === */
/* Asteroid rocks */
.kx-rock {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(190, 200, 210, 0.85);
    pointer-events: none;
    box-shadow: 0 0 4px rgba(200, 215, 225, 0.5);
}

/* KODILEX letters */
.kx-asteroid {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: transparent;
    background: linear-gradient(135deg, #00a8ff, #00d496);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(0, 168, 255, 0.5));
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1;
    text-align: center;
}


/* --- Stats bar --- */
.kx-stats {
    background: #fff;
    padding: 48px 0;
    border-bottom: 1px solid #eef0f3;
}

.kx-stat-item {
    text-align: center;
    padding: 0 24px;
}

.kx-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0d3b5e;
    line-height: 1;
    margin-bottom: 6px;
}

.kx-stat-number span {
    color: #00a8ff;
}

.kx-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kx-stat-divider {
    width: 1px;
    height: 50px;
    background: #e9ecef;
    margin: 0 auto;
}

/* --- Services --- */
.kx-services {
    padding: 96px 0;
    background: #f8fafc;
}

.kx-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00a8ff;
    margin-bottom: 12px;
}

.kx-section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0f1923;
    line-height: 1.2;
    margin-bottom: 16px;
}

.kx-section-sub {
    font-size: 1rem;
    color: #6c757d;
    max-width: 560px;
    line-height: 1.7;
}

.kx-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    height: 100%;
    border: 1px solid #eef0f3;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kx-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a8ff, #00d496);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.kx-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.kx-service-card:hover::after {
    transform: scaleX(1);
}

.kx-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.kx-icon-blue   { background: rgba(0, 168, 255, 0.1); color: #00a8ff; }
.kx-icon-green  { background: rgba(0, 212, 150, 0.1); color: #00d496; }
.kx-icon-purple { background: rgba(108, 92, 231, 0.1); color: #6c5ce7; }
.kx-icon-orange { background: rgba(253, 150, 68, 0.1); color: #fd9644; }
.kx-icon-red    { background: rgba(255, 71, 87, 0.1);  color: #ff4757; }
.kx-icon-teal   { background: rgba(0, 184, 212, 0.1);  color: #00b8d4; }

.kx-service-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 10px;
}

.kx-service-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.65;
    margin: 0;
}

/* --- About / CTA --- */
.kx-about {
    padding: 96px 0;
    background: linear-gradient(135deg, #0f1923 0%, #1a2e44 50%, #0d3b5e 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.kx-web-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.kx-about-img-wrap {
    position: relative;
}

.kx-about-img-wrap img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
}

.kx-about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #0078d4, #00a8ff);
    color: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 120, 212, 0.35);
}

.kx-about-badge .big { font-size: 2rem; font-weight: 800; line-height: 1; }
.kx-about-badge .small { font-size: 0.75rem; opacity: 0.85; margin-top: 4px; }

.kx-about .kx-section-title { color: #fff; }
.kx-about .kx-section-sub { color: rgba(255, 255, 255, 0.7); }
.kx-about .kx-section-label { color: #00d496; }

.kx-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.kx-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.kx-check-list li i {
    color: #00d496;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Content Sections (News, Events, Announcements, Funding, Best Practices) --- */
.kx-section {
    padding: 60px 0 70px;
}

.kx-news          { background: #fff; }
.kx-events        { background: #f7f8fc; }
.kx-announcements { background: #fff; }
.kx-funding       { background: #f7f8fc; }
.kx-best-practices { background: #fff; }

/* Section heading — IWConnect "Our Products." style */
.kx-iwc-heading {
    margin-bottom: 48px;
}

.kx-iwc-heading h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #0f1923;
    margin-bottom: 12px;
    line-height: 1.2;
}

.kx-iwc-heading .kx-accent-word {
    color: #00a8ff;
}

.kx-iwc-heading p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Decorative element — animated pulse bar */
.kx-heading-deco {
    display: block;
    height: 9px;
    line-height: 9px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.06);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03),
        0 -1px 0 rgba(0, 0, 0, 0.4),
        0 2px 3px rgba(0, 0, 0, 0.15);
    user-select: none;
    pointer-events: none;
    overflow: hidden;
    margin-top: 6px;
}

/* =============================================
   PANEL CARDS — IWConnect "Expanding Horizons" style
   ============================================= */

.kx-panel-row {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.kx-panel {
    flex: 1;
    min-height: 530px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fallback gradient when no image */
.kx-panel:nth-child(odd):not([style*="background-image"]) {
    background: linear-gradient(135deg, #0f1923 0%, #1a2e44 100%);
}
.kx-panel:nth-child(even):not([style*="background-image"]) {
    background: linear-gradient(135deg, #1a2e44 0%, #0d3b5e 100%);
}

/* Dark overlay — always present, stronger on hover */
.kx-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.4s ease;
    z-index: 1;
}

.kx-panel:hover .kx-panel-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Hover: panel grows, others shrink */
.kx-panel:hover {
    flex: 2.2;
}

/* Content — hidden by default, appears on hover */
.kx-panel-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 36px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.kx-panel:hover .kx-panel-content {
    opacity: 1;
    transform: translateY(0);
}

.kx-panel-content .kx-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.35;
}

.kx-panel-content .kx-card-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
}

.kx-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #CF0018;
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    width: fit-content;
    transition: background 0.2s ease, transform 0.2s ease;
}

.kx-panel-btn:hover {
    background: #e2498a;
    transform: translateY(-2px);
}

/* "See all" button */
.kx-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #CF0018;
    color: #CF0018;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.kx-btn-glass:hover {
    background: #CF0018;
    border-color: #CF0018;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 0, 24, 0.25);
}

/* Badges (used in modal) */
.kx-badge-sm {
    display: inline-block;
    background: rgba(207, 0, 24, 0.1);
    color: #CF0018;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.kx-badge-green {
    background: rgba(0, 201, 167, 0.1);
    color: #00a86b;
}

/* Funding meta tags (used in modal) */
.kx-funding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.kx-meta-tag {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Card base classes (used by modal JS + panel content) */
.kx-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.kx-card-text {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}

/* =============================================
   CALENDAR DRAWER (slide-out from right)
   ============================================= */

/* Toggle button — fixed on right edge at 50% */
.kx-cal-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(60px);
    opacity: 0;
    pointer-events: none;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -4px 4px 20px rgba(0, 120, 212, 0.35);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.kx-cal-toggle.visible {
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}

.kx-cal-toggle.visible:hover {
    transform: translateY(-50%) translateX(-4px);
    box-shadow: -6px 4px 28px rgba(0, 120, 212, 0.45);
}

.kx-cal-toggle.hidden {
    transform: translateY(-50%) translateX(60px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Backdrop */
.kx-cal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.kx-cal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer panel */
.kx-cal-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 800px;
    height: 100vh;
    z-index: 1070;
    background: #f7f8fc;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.kx-cal-drawer.open {
    transform: translateX(0);
}

.kx-cal-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, #0f1923, #0d3b5e);
    color: #fff;
    flex-shrink: 0;
}

.kx-cal-drawer-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kx-cal-drawer-header h5 i {
    color: #00a8ff;
}

.kx-cal-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.kx-cal-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.kx-cal-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

/* Calendar card inside drawer */
.kx-cal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

/* ── Toolbar ── */
.kx-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.kx-cal-toolbar-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kx-cal-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    overflow: hidden;
}

.kx-cal-month {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f1923;
    margin: 0;
}

.kx-cal-nav {
    background: none;
    border: 1px solid #d0d5dd;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #344054;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kx-cal-nav:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.kx-cal-today-btn {
    background: none;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 0 12px;
    height: 32px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kx-cal-today-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.kx-cal-view-btn {
    background: none;
    border: none;
    padding: 0 12px;
    height: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667085;
    cursor: pointer;
    transition: all 0.15s ease;
    border-right: 1px solid #d0d5dd;
}

.kx-cal-view-btn:last-child {
    border-right: none;
}

.kx-cal-view-btn.active {
    background: #3b82f6;
    color: #fff;
}

.kx-cal-view-btn:hover:not(.active) {
    background: #f2f4f7;
}

/* ── Weekday headers ── */
.kx-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}

.kx-cal-weekdays div {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    padding: 6px 0;
}

/* ── Calendar grid ── */
.kx-cal-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ── Week row ── */
.kx-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    min-height: 72px;
}

/* ── Day cell ── */
.kx-cal-day {
    position: relative;
    min-height: 72px;
    padding: 4px 0 2px 0;
    background: #f8f9fb;
    border-radius: 10px;
    cursor: default;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.kx-cal-empty {
    background: transparent;
}

.kx-cal-num {
    font-size: 0.85rem;
    font-weight: 500;
    color: #3d4f5c;
    text-align: right;
    padding-right: 6px;
    line-height: 1;
}

.kx-cal-today {
    background: rgba(0, 168, 255, 0.08);
}

.kx-cal-today .kx-cal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00a8ff;
    color: #fff;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    float: right;
    margin-right: 3px;
    font-size: 0.75rem;
}

.kx-cal-has-event {
    cursor: pointer;
    background: rgba(0, 168, 255, 0.05);
}

.kx-cal-has-event:hover {
    background: rgba(0, 168, 255, 0.12);
    transform: scale(1.03);
    z-index: 2;
}

.kx-cal-selected {
    background: #00a8ff !important;
}

.kx-cal-selected .kx-cal-num {
    color: #fff;
    font-weight: 700;
}

/* ── Event bars (grid items inside week) ── */
.kx-cal-bar {
    height: 16px;
    line-height: 16px;
    font-size: 0.63rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #29b6f6 0%, #0288d1 100%);
    border-radius: 3px;
    padding: 0 5px;
    margin: 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    z-index: 2;
    transition: filter 0.15s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.25);
}

.kx-cal-bar:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 5;
}

/* Event type colors — 3D gradients */
.kx-cal-bar.ev-type-1 {
    background: linear-gradient(180deg, #26c6da 0%, #0097a7 100%);
    box-shadow: 0 1px 3px rgba(0,151,167,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.kx-cal-bar.ev-type-2 {
    background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
    box-shadow: 0 1px 3px rgba(46,125,50,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.kx-cal-bar.ev-type-3 {
    background: linear-gradient(180deg, #ffee58 0%, #f9a825 100%);
    color: #333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    box-shadow: 0 1px 3px rgba(249,168,37,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ── Week view specific ── */
.kx-cal-grid.view-week .kx-cal-day {
    min-height: 160px;
}

/* Event list below calendar */
.kx-cal-event-list {
    margin-top: 20px;
}

.kx-cal-ev-item {
    padding: 16px 20px;
    background: #f7f8fc;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #00a8ff;
    animation: kx-cal-fade-in 0.3s ease;
}

@keyframes kx-cal-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kx-cal-ev-date {
    font-size: 0.75rem;
    color: #00a8ff;
    font-weight: 600;
    margin-bottom: 4px;
}

.kx-cal-ev-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1923;
    margin-bottom: 4px;
}

.kx-cal-ev-desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .kx-cal-drawer { width: 95%; }
    .kx-cal { padding: 14px; }
    .kx-cal-toolbar { gap: 6px; }
    .kx-cal-month { font-size: 0.95rem; }
    .kx-cal-num { font-size: 0.7rem; }
    .kx-cal-day { min-height: 56px; }
    .kx-cal-bar { height: 15px; line-height: 15px; font-size: 0.55rem; }
    .kx-cal-drawer-body { padding: 12px; }
    .kx-cal-today-btn { font-size: 0.7rem; padding: 0 8px; height: 28px; }
    .kx-cal-view-btn { font-size: 0.68rem; padding: 0 8px; height: 26px; }
    .kx-cal-nav { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* --- Modal trigger cursor --- */
.kx-modal-trigger {
    cursor: pointer;
}

/* --- Detail Modal --- */
.kx-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.kx-modal-header {
    background: linear-gradient(135deg, #0f1923, #0d3b5e);
    color: #fff;
    border-bottom: none;
    padding: 20px 24px;
}

.kx-modal-header .modal-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.kx-modal-header .btn-close {
    filter: invert(1);
}

.kx-modal-body {
    padding: 24px;
}

.kx-modal-img-wrap {
    margin: -24px -24px 20px -24px;
    max-height: 320px;
    overflow: hidden;
}

.kx-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 320px;
}

.kx-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.kx-modal-subtitle p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 16px;
    font-style: italic;
}

.kx-modal-text {
    font-size: 0.95rem;
    color: #3d4f5c;
    line-height: 1.7;
}

.kx-modal-text p {
    margin-bottom: 12px;
}

.kx-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
}

/* --- Mobile App Download --- */
.kx-download {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1520 0%, #0f1f2e 100%);
}

.kx-download-header {
    max-width: 680px;
    margin-bottom: 64px;
}

.kx-download-card {
    background: rgba(0, 168, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.18);
    border-radius: 20px;
    padding: 48px 40px;
}

.kx-download-icon {
    font-size: 5rem;
    color: #3ddc84;
    display: block;
    margin-bottom: 20px;
}

.kx-download-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.kx-download-steps-title {
    color: #fff;
    margin-bottom: 32px;
    font-size: 1.2rem;
}

.kx-download-step {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.kx-download-step h6 {
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

.kx-download-step p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin: 0;
}

.kx-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   ANNOUNCEMENTS DRAWER (slide-out from left)
   ============================================= */

/* Toggle button — fixed on left edge at 50% */
.kx-ann-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-60px);
    opacity: 0;
    pointer-events: none;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 20px rgba(108, 92, 231, 0.35);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.kx-ann-toggle.visible {
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}

.kx-ann-toggle.visible:hover {
    transform: translateY(-50%) translateX(4px);
    box-shadow: 6px 4px 28px rgba(108, 92, 231, 0.45);
}

.kx-ann-toggle.hidden {
    transform: translateY(-50%) translateX(-60px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Backdrop */
.kx-ann-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.kx-ann-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer panel — from left, 30% width */
.kx-ann-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    min-width: 360px;
    height: 100vh;
    z-index: 1070;
    background: #f7f8fc;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.kx-ann-drawer.open {
    transform: translateX(0);
}

.kx-ann-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    flex-shrink: 0;
}

.kx-ann-drawer-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kx-ann-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.kx-ann-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.kx-ann-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Announcement card — vertical, image + text */
.kx-ann-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kx-ann-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 92, 231, 0.15);
}

.kx-ann-card-img {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.kx-ann-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kx-ann-card:hover .kx-ann-card-img img {
    transform: scale(1.06);
}

.kx-ann-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(108, 92, 231, 0.15) 100%);
}

.kx-ann-card-body {
    padding: 16px 18px 18px;
}

.kx-ann-card-date {
    font-size: 0.75rem;
    color: #6c5ce7;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kx-ann-card .kx-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.kx-ann-card:hover .kx-card-title {
    color: #6c5ce7;
}

.kx-ann-card .kx-card-text {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Btn glass inside drawer */
.kx-ann-drawer-body .kx-btn-glass {
    border-color: #6c5ce7;
    color: #6c5ce7;
    font-size: 0.82rem;
    padding: 10px 24px;
}

.kx-ann-drawer-body .kx-btn-glass:hover {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #fff;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

@media (max-width: 768px) {
    .kx-ann-drawer { width: 85%; min-width: unset; }
}

/* --- Back to Top --- */
.kx-btt {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1040;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.4);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: kx-btt-pulse 2s ease-in-out infinite paused;
}

.kx-btt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation-play-state: running;
}

.kx-btt:hover {
    animation-play-state: paused;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 120, 212, 0.55);
}

@keyframes kx-btt-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 120, 212, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 120, 212, 0.4),
                    0 0 0 10px rgba(0, 168, 255, 0.15),
                    0 0 0 20px rgba(0, 168, 255, 0.05);
    }
}

/* --- CTA Banner --- */
.kx-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1923 0%, #0d3b5e 100%);
    position: relative;
    overflow: hidden;
}

.kx-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0, 168, 255, 0.12) 0%, transparent 70%);
}

.kx-cta-content { position: relative; z-index: 2; }

.kx-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.kx-cta p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .kx-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .kx-hero-visual {
        margin-top: 48px;
    }

    .kx-about-badge {
        right: 0;
        bottom: -10px;
    }

    .kx-stat-divider { display: none; }

    .kx-panel-row { flex-wrap: wrap; }
    .kx-panel { flex: 1 1 50%; min-height: 300px; }
}

@media (max-width: 576px) {
    .kx-3d-scene { height: 280px; }
    .kx-sun { width: 48px; height: 48px; }
    .kx-plasma { display: none; }
    .kx-btn-primary, .kx-btn-outline, .kx-btn-glass { width: 100%; justify-content: center; }
    .kx-panel-row { flex-direction: column; }
    .kx-panel { min-height: 220px; }
    .kx-panel:hover { flex: unset; }
    .kx-panel-content { opacity: 1; transform: none; padding: 24px 20px; }
    .kx-panel-overlay { background: rgba(0, 0, 0, 0.55); }
}

@media (max-width: 768px) {
    /* Override customstyle.css body padding that adds white gaps on mobile */
    .kx-header-nav {
        margin-top: -1rem;
    }

    .kx-header-nav,
    .kx-hero,
    .kx-stats,
    .kx-services,
    .kx-about,
    .kx-section,
    .kx-download,
    .kx-cta {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    /* Remove border-radius and reset padding on containers inside kx sections */
    .kx-header-nav .container,
    .kx-hero .container,
    .kx-stats .container,
    .kx-services .container,
    .kx-about .container,
    .kx-section .container,
    .kx-download .container,
    .kx-cta .container {
        border-radius: 0 !important;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* --- Header Nav --- */
.kx-header-nav {
    background: rgba(15, 25, 35, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1px 0;
    overflow: visible;
    position: relative;
    z-index: 200;
}

/* Container must be positioned so logo can be absolute within it */
.kx-header-container {
    position: relative;
    overflow: visible;
}

/* Logo + brand name sit inside the navbar flow */
.kx-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    text-decoration: none;
}

.kx-header-logo {
    display: block;
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.kx-header-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(135deg, #00a8ff, #00d496);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Spacer no longer needed — brand is in flex flow */
.kx-logo-spacer {
    display: none;
}

.kx-header-link {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.kx-header-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
}

.kx-btn-header {
    background: linear-gradient(90deg, #00a8ff, #0078d4);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kx-btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 168, 255, 0.4);
    color: #fff;
}

.kx-header-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    font-size: 0.9rem;
}

.kx-header-toggler:focus {
    box-shadow: none;
}

/* Language switcher inside Kodilex dark header */
.kx-header-nav .lang-switch {
    display: flex;
    gap: 4px;
}

.kx-header-nav .lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kx-header-nav .lang-btn:hover,
.kx-header-nav .lang-btn.active {
    background: rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.4);
    color: #00a8ff;
}

@media (max-width: 991px) {
    .kx-header-nav .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 10px;
        padding: 12px 0 4px;
    }

    .kx-header-link {
        padding: 10px 8px !important;
    }

    .kx-btn-header {
        margin-top: 8px;
        width: fit-content;
    }

    .kx-header-nav .lang-switch {
        margin-top: 8px;
    }
}

/* --- MSE Stock Drawer --- */
.kx-stock-toggle {
    position: fixed;
    left: 0;
    top: calc(50% + 60px);
    transform: translateY(-50%) translateX(-60px);
    opacity: 0;
    pointer-events: none;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 20px rgba(14, 165, 233, 0.35);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.kx-stock-toggle.visible {
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}

.kx-stock-toggle.visible:hover {
    transform: translateY(-50%) translateX(4px);
    box-shadow: 6px 4px 28px rgba(14, 165, 233, 0.45);
}

.kx-stock-toggle.hidden {
    transform: translateY(-50%) translateX(-60px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.kx-stock-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.kx-stock-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.kx-stock-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    min-width: 380px;
    height: 100vh;
    z-index: 1070;
    background: #f7f8fc;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.kx-stock-drawer.open {
    transform: translateX(0);
}

.kx-stock-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    flex-shrink: 0;
}

.kx-stock-drawer-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kx-stock-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.kx-stock-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.kx-stock-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: #1e1e24;
}

.kx-stock-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #33333d;
}

.kx-stock-table thead th {
    padding: 13px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    border-bottom: 2px solid #33333d;
    background: #28282f;
    position: sticky;
    top: 0;
}

.kx-stock-table tbody tr {
    transition: background 0.2s;
    background: #25252c;
}

.kx-stock-table tbody tr:nth-child(even) {
    background: #2c2c34;
}

.kx-stock-table tbody tr:hover {
    background: #34343f;
}

.kx-stock-table tbody td {
    padding: 11px 16px;
    font-size: 0.88rem;
    color: #d1d5db;
    border-bottom: 1px solid #2f2f38;
}

.kx-stock-symbol {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
}

.kx-stock-symbol:hover {
    text-decoration: underline;
}

.kx-trend-up .kx-stock-symbol,
.kx-trend-up .kx-stock-change {
    color: #4ade80;
}

.kx-trend-down .kx-stock-symbol,
.kx-trend-down .kx-stock-change {
    color: #f87171;
}

.kx-trend-neutral .kx-stock-symbol,
.kx-trend-neutral .kx-stock-change {
    color: #60a5fa;
}

.kx-stock-change {
    font-weight: 600;
    font-size: 0.85rem;
}

.kx-stock-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #33333d;
    background: #1e1e24;
    margin-top: auto;
}

.kx-stock-date {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}

.kx-stock-source {
    font-size: 0.78rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.kx-stock-source:hover {
    color: #7dd3fc;
}

@media (max-width: 768px) {
    .kx-stock-drawer { width: 85%; min-width: unset; }

    .kx-stock-table thead th,
    .kx-stock-table tbody td {
        padding: 9px 12px;
        font-size: 0.82rem;
    }
}
