/* =============================================================
   KODILEX LANDING — "Deep Space" design system
   One continuous cosmos: the solar-system hero sets the world,
   every section floats in it as a glass instrument panel.

   Tokens:
     void   #05070d   page space (blue-tinted near-black)
     deep   #0a0f1a   raised surfaces (drawers, modal, header)
     glass  rgba(140,175,255,.05) + hairline rgba(140,175,255,.12)
     ink    #e9eef8   primary text     dim #93a1ba secondary
     cyan   #3cc7ff → mint #2be2a6     the brand orbit-gradient
     amber  #ffb02e   the Sun — scarce, only for "live/today" marks

   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono
   (eyebrows as code comments, data, dates).
   ============================================================= */

:root {
    --kx-void: #05070d;
    --kx-deep: #0a0f1a;
    --kx-glass: rgba(140, 175, 255, 0.05);
    --kx-glass-strong: rgba(140, 175, 255, 0.09);
    --kx-line: rgba(140, 175, 255, 0.12);
    --kx-line-strong: rgba(140, 175, 255, 0.22);
    --kx-ink: #e9eef8;
    --kx-dim: #93a1ba;
    --kx-faint: #5c6b85;
    --kx-cyan: #3cc7ff;
    --kx-mint: #2be2a6;
    --kx-amber: #ffb02e;
    --kx-grad: linear-gradient(100deg, #3cc7ff, #2be2a6);
    --kx-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --kx-font-body: 'Inter', sans-serif;
    --kx-font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

/* --- Page base: the whole landing shares one void --- */
body {
    background: var(--kx-void);
    font-family: var(--kx-font-body);
    color: var(--kx-dim);
}

::selection { background: rgba(60, 199, 255, 0.35); color: #fff; }

/* Loading spinner (markup ships bg-white — retint to the void) */
#spinner.bg-white { background-color: var(--kx-void) !important; }
#spinner .spinner-border { color: var(--kx-cyan) !important; }

/* Quality floor: visible keyboard focus everywhere */
.kx-btn-primary:focus-visible,
.kx-btn-outline:focus-visible,
.kx-btn-glass:focus-visible,
.kx-btn-header:focus-visible,
.kx-panel-btn:focus-visible,
.kx-header-link:focus-visible,
.kx-btt:focus-visible,
.kx-cal-toggle:focus-visible,
.kx-ann-toggle:focus-visible,
.kx-stock-toggle:focus-visible {
    outline: 2px solid var(--kx-cyan);
    outline-offset: 3px;
}

/* Scroll-reveal (JS adds .kx-reveal, then .in when visible) */
.kx-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.kx-reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .kx-reveal { opacity: 1; transform: none; transition: none; }
    .kx-star, .kx-sun, .kx-sun-glow, .kx-sun-surface, .kx-plasma,
    .kx-brand-name, .kx-btt { animation: none !important; }
}

/* =============================================================
   HERO
   ============================================================= */
.kx-hero {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 65% 55% at 72% 38%, rgba(60, 199, 255, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 45% 45% at 15% 85%, rgba(43, 226, 166, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 55% 40% at 40% 0%, rgba(90, 70, 200, 0.08) 0%, transparent 65%),
        var(--kx-void);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.kx-hero-content {
    position: relative;
    z-index: 2;
}

.kx-brand-name {
    font-family: var(--kx-font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(135deg, #3cc7ff 0%, #2be2a6 50%, #3cc7ff 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; }
}

/* Eyebrow chip — a code comment, in mono */
.kx-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--kx-font-mono);
    background: rgba(60, 199, 255, 0.08);
    border: 1px solid rgba(60, 199, 255, 0.28);
    color: var(--kx-cyan);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 7px 16px;
    border-radius: 8px;
    margin-bottom: 1.6rem;
}

.kx-badge::before {
    content: '// ';
    opacity: 0.6;
    white-space: pre;
}

.kx-hero-title {
    font-family: var(--kx-font-display);
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--kx-ink);
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.kx-hero-title span {
    background: linear-gradient(90deg, #3cc7ff, #2be2a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kx-hero-sub {
    font-size: 1.08rem;
    color: var(--kx-dim);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* --- Buttons --- */
/* Primary: bright orbit-gradient with dark ink — the "engine on" look */
.kx-btn-primary {
    font-family: var(--kx-font-display);
    background: var(--kx-grad);
    color: #041019;
    border: none;
    padding: 14px 34px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.kx-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(60, 199, 255, 0.35), 0 2px 10px rgba(43, 226, 166, 0.25);
    color: #041019;
}

.kx-btn-outline {
    font-family: var(--kx-font-display);
    background: rgba(140, 175, 255, 0.04);
    color: var(--kx-ink);
    border: 1px solid var(--kx-line-strong);
    padding: 14px 34px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.2s ease;
}

.kx-btn-outline:hover {
    background: rgba(140, 175, 255, 0.1);
    border-color: rgba(60, 199, 255, 0.55);
    color: #fff;
}

/* Hero visual */
.kx-hero-visual {
    position: relative;
    z-index: 2;
}

/* =============================================================
   SOLAR SYSTEM SCENE (mechanics unchanged — the page signature)
   ============================================================= */
.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:
        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%),
        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;
}

.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%;
}

.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%;
}

.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(150deg, rgba(10, 15, 26, 0.97), rgba(13, 22, 40, 0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--kx-line-strong);
    border-radius: 14px;
    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(60, 199, 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(10, 15, 26, 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(10, 15, 26, 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(60,199,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-family: var(--kx-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--kx-ink);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.kx-popover-type {
    font-family: var(--kx-font-mono);
    font-size: 9px;
    color: var(--kx-faint);
    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(60, 199, 255, 0.06);
    border-color: rgba(60, 199, 255, 0.15);
}

.kx-popover-stat i {
    font-size: 11px;
    color: var(--kx-cyan);
    margin-top: 1px;
    flex-shrink: 0;
}

.kx-popover-label {
    display: block;
    font-family: var(--kx-font-mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--kx-faint);
    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);
}

@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 inside the scene === */
.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 === */
.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, #3cc7ff, #2be2a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(60, 199, 255, 0.5));
    font-family: var(--kx-font-mono);
    line-height: 1;
    text-align: center;
}

/* =============================================================
   STATS BAR (markup currently commented out — styled to match)
   ============================================================= */
.kx-stats {
    background: transparent;
    padding: 48px 0;
    border-bottom: 1px solid var(--kx-line);
}

.kx-stat-item { text-align: center; padding: 0 24px; }

.kx-stat-number {
    font-family: var(--kx-font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--kx-ink);
    line-height: 1;
    margin-bottom: 6px;
}

.kx-stat-number span { color: var(--kx-cyan); }

.kx-stat-label {
    font-size: 0.85rem;
    color: var(--kx-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kx-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--kx-line);
    margin: 0 auto;
}

/* =============================================================
   SECTION SHELLS — one continuous space, hairline separations
   ============================================================= */
.kx-services {
    padding: 110px 0;
    background:
        radial-gradient(ellipse 50% 55% at 12% 10%, rgba(60, 199, 255, 0.05) 0%, transparent 60%),
        transparent;
    border-top: 1px solid var(--kx-line);
    position: relative;
}

/* Eyebrow label — a code comment in mono; the section's true "type" */
.kx-section-label {
    font-family: var(--kx-font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: var(--kx-cyan);
    margin-bottom: 14px;
}

.kx-section-label::before {
    content: '// ';
    opacity: 0.55;
    white-space: pre;
}

.kx-section-title {
    font-family: var(--kx-font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--kx-ink);
    line-height: 1.15;
    margin-bottom: 16px;
}

.kx-section-sub {
    font-size: 1rem;
    color: var(--kx-dim);
    max-width: 560px;
    line-height: 1.75;
}

/* --- Service cards: glass instrument panels --- */
.kx-service-card {
    background: var(--kx-glass);
    border-radius: 18px;
    padding: 36px 28px;
    height: 100%;
    border: 1px solid var(--kx-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.kx-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--kx-grad);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.kx-service-card:hover {
    transform: translateY(-6px);
    background: var(--kx-glass-strong);
    border-color: rgba(60, 199, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(60, 199, 255, 0.06);
}

.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: 22px;
    border: 1px solid transparent;
}

.kx-icon-blue   { background: rgba(60, 199, 255, 0.1);  border-color: rgba(60, 199, 255, 0.25);  color: #3cc7ff; }
.kx-icon-green  { background: rgba(43, 226, 166, 0.1);  border-color: rgba(43, 226, 166, 0.25);  color: #2be2a6; }
.kx-icon-purple { background: rgba(154, 134, 255, 0.1); border-color: rgba(154, 134, 255, 0.25); color: #9a86ff; }
.kx-icon-orange { background: rgba(255, 176, 46, 0.1);  border-color: rgba(255, 176, 46, 0.25);  color: #ffb02e; }
.kx-icon-red    { background: rgba(255, 107, 130, 0.1); border-color: rgba(255, 107, 130, 0.25); color: #ff6b82; }
.kx-icon-teal   { background: rgba(64, 224, 240, 0.1);  border-color: rgba(64, 224, 240, 0.25);  color: #40e0f0; }

.kx-service-card h5 {
    font-family: var(--kx-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--kx-ink);
    margin-bottom: 10px;
}

.kx-service-card p {
    font-size: 0.9rem;
    color: var(--kx-dim);
    line-height: 1.7;
    margin: 0;
}

/* =============================================================
   ABOUT — the constellation canvas section
   ============================================================= */
.kx-about {
    padding: 110px 0;
    background:
        radial-gradient(ellipse 55% 60% at 88% 25%, rgba(43, 226, 166, 0.05) 0%, transparent 60%),
        transparent;
    border-top: 1px solid var(--kx-line);
    position: relative;
    overflow: hidden;
    color: var(--kx-ink);
}

.kx-web-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.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: var(--kx-grad);
    color: #041019;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(60, 199, 255, 0.3);
}

.kx-about-badge .big { font-family: var(--kx-font-mono); font-size: 2rem; font-weight: 700; line-height: 1; }
.kx-about-badge .small { font-size: 0.75rem; opacity: 0.8; margin-top: 4px; font-weight: 600; }

.kx-about .kx-section-title { color: var(--kx-ink); }
.kx-about .kx-section-sub { color: var(--kx-dim); }
.kx-about .kx-section-label { color: var(--kx-mint); }

.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: #c7d2e4;
}

.kx-check-list li i {
    color: var(--kx-mint);
    margin-top: 3px;
    flex-shrink: 0;
}

/* =============================================================
   CONTENT SECTIONS (News / Events / Announcements / Practices)
   ============================================================= */
.kx-section {
    padding: 80px 0 90px;
    border-top: 1px solid var(--kx-line);
}

.kx-news          { background: radial-gradient(ellipse 45% 50% at 8% 0%, rgba(60, 199, 255, 0.04) 0%, transparent 60%), transparent; }
.kx-events        { background: transparent; }
.kx-announcements { background: transparent; }
.kx-funding       { background: transparent; }
.kx-best-practices { background: radial-gradient(ellipse 45% 50% at 92% 0%, rgba(43, 226, 166, 0.04) 0%, transparent 60%), transparent; }

/* Section heading */
.kx-iwc-heading { margin-bottom: 48px; }

.kx-iwc-heading h2 {
    font-family: var(--kx-font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--kx-ink);
    margin-bottom: 12px;
    line-height: 1.15;
}

.kx-iwc-heading .kx-accent-word {
    background: linear-gradient(90deg, #3cc7ff, #2be2a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kx-iwc-heading p {
    font-size: 1rem;
    color: var(--kx-dim);
    margin-bottom: 20px;
    font-weight: 400;
}

/* Decorative watermark under headings — quiet mono ghost */
.kx-heading-deco {
    display: block;
    height: 10px;
    line-height: 10px;
    font-family: var(--kx-font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: rgba(140, 175, 255, 0.12);
    user-select: none;
    pointer-events: none;
    overflow: hidden;
    margin-top: 6px;
}

/* =============================================================
   PANEL CARDS — expanding horizon strips
   ============================================================= */
.kx-panel-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--kx-line);
    border-bottom: 1px solid var(--kx-line);
}

.kx-panel {
    flex: 1;
    min-height: 530px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: var(--kx-deep);
    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, #0a0f1a 0%, #0e1a2e 100%);
}
.kx-panel:nth-child(even):not([style*="background-image"]) {
    background: linear-gradient(135deg, #0e1a2e 0%, #0a2236 100%);
}

/* Space-blue overlay — deepens on hover so text lifts off the image */
.kx-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.25) 0%, rgba(5, 7, 13, 0.45) 100%);
    transition: background 0.4s ease;
    z-index: 1;
}

.kx-panel:hover .kx-panel-overlay {
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.88) 100%);
}

.kx-panel:hover { flex: 2.2; }

.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-family: var(--kx-font-display);
    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(233, 238, 248, 0.75);
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 600px;
}

.kx-panel-btn {
    font-family: var(--kx-font-display);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--kx-grad);
    color: #041019;
    padding: 10px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    width: fit-content;
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kx-panel-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(60, 199, 255, 0.3);
    color: #041019;
}

/* "See all" — quiet outline in the brand hue */
.kx-btn-glass {
    font-family: var(--kx-font-display);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(60, 199, 255, 0.06);
    border: 1px solid rgba(60, 199, 255, 0.4);
    color: var(--kx-cyan);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.kx-btn-glass:hover {
    background: var(--kx-grad);
    border-color: transparent;
    color: #041019;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(60, 199, 255, 0.28);
}

/* Badges (used in modal) */
.kx-badge-sm {
    display: inline-block;
    font-family: var(--kx-font-mono);
    background: rgba(60, 199, 255, 0.1);
    color: var(--kx-cyan);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.kx-badge-green {
    background: rgba(43, 226, 166, 0.1);
    color: var(--kx-mint);
}

/* Meta tags (used in modal) */
.kx-funding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.kx-meta-tag {
    font-family: var(--kx-font-mono);
    font-size: 0.72rem;
    color: var(--kx-dim);
    background: var(--kx-glass);
    border: 1px solid var(--kx-line);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Card base classes (used by modal JS + panel content) */
.kx-card-title {
    font-family: var(--kx-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--kx-ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.kx-card-text {
    font-size: 0.88rem;
    color: var(--kx-dim);
    line-height: 1.6;
    flex: 1;
}

/* =============================================================
   SIDE DRAWERS — one unified dark-glass system
   (calendar right; announcements + stocks left)
   ============================================================= */

/* --- Shared toggle look; position/side stays per-drawer --- */
.kx-cal-toggle,
.kx-ann-toggle,
.kx-stock-toggle {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border: 1px solid var(--kx-line-strong);
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--kx-cyan);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}

.kx-cal-toggle {
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(60px);
    border-radius: 14px 0 0 14px;
    border-right: none;
}

.kx-ann-toggle {
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-60px);
    border-radius: 0 14px 14px 0;
    border-left: none;
    color: var(--kx-mint);
}

.kx-stock-toggle {
    left: 0;
    top: calc(50% + 60px);
    transform: translateY(-50%) translateX(-60px);
    border-radius: 0 14px 14px 0;
    border-left: none;
}

.kx-cal-toggle.visible,
.kx-ann-toggle.visible,
.kx-stock-toggle.visible {
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}

.kx-cal-toggle.visible:hover {
    transform: translateY(-50%) translateX(-4px);
    border-color: rgba(60, 199, 255, 0.5);
}

.kx-ann-toggle.visible:hover,
.kx-stock-toggle.visible:hover {
    transform: translateY(-50%) translateX(4px);
    border-color: rgba(60, 199, 255, 0.5);
}

.kx-cal-toggle.hidden {
    transform: translateY(-50%) translateX(60px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.kx-ann-toggle.hidden,
.kx-stock-toggle.hidden {
    transform: translateY(-50%) translateX(-60px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- Shared backdrop --- */
.kx-cal-backdrop,
.kx-ann-backdrop,
.kx-stock-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 8, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.kx-cal-backdrop.open,
.kx-ann-backdrop.open,
.kx-stock-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- Shared drawer shells --- */
.kx-cal-drawer,
.kx-ann-drawer,
.kx-stock-drawer {
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 1070;
    background: var(--kx-deep);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.kx-cal-drawer {
    right: 0;
    width: 80%;
    max-width: 800px;
    transform: translateX(100%);
    border-left: 1px solid var(--kx-line);
    box-shadow: -16px 0 60px rgba(0, 0, 0, 0.6);
}

.kx-ann-drawer {
    left: 0;
    width: 30%;
    min-width: 360px;
    transform: translateX(-100%);
    border-right: 1px solid var(--kx-line);
    box-shadow: 16px 0 60px rgba(0, 0, 0, 0.6);
}

.kx-stock-drawer {
    left: 0;
    width: 30%;
    min-width: 380px;
    transform: translateX(-100%);
    border-right: 1px solid var(--kx-line);
    box-shadow: 16px 0 60px rgba(0, 0, 0, 0.6);
}

.kx-cal-drawer.open,
.kx-ann-drawer.open,
.kx-stock-drawer.open {
    transform: translateX(0);
}

/* --- Shared drawer headers --- */
.kx-cal-drawer-header,
.kx-ann-drawer-header,
.kx-stock-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    background: rgba(140, 175, 255, 0.03);
    border-bottom: 1px solid var(--kx-line);
    color: var(--kx-ink);
    flex-shrink: 0;
}

.kx-cal-drawer-header h5,
.kx-ann-drawer-header h5,
.kx-stock-drawer-header h5 {
    font-family: var(--kx-font-display);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--kx-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kx-cal-drawer-header h5 i { color: var(--kx-cyan); }
.kx-ann-drawer-header h5 i { color: var(--kx-mint); }
.kx-stock-drawer-header h5 i { color: var(--kx-cyan); }

.kx-cal-drawer-close,
.kx-ann-drawer-close,
.kx-stock-drawer-close {
    background: rgba(140, 175, 255, 0.06);
    border: 1px solid var(--kx-line);
    color: var(--kx-dim);
    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,
.kx-ann-drawer-close:hover,
.kx-stock-drawer-close:hover {
    background: rgba(140, 175, 255, 0.14);
    color: var(--kx-ink);
}

.kx-cal-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

/* =============================================================
   CALENDAR (inside right drawer) — dark instrument panel
   ============================================================= */
.kx-cal {
    background: var(--kx-glass);
    border: 1px solid var(--kx-line);
    border-radius: 16px;
    padding: 20px;
}

.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 var(--kx-line-strong);
    border-radius: 8px;
    overflow: hidden;
}

.kx-cal-month {
    font-family: var(--kx-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--kx-ink);
    margin: 0;
}

.kx-cal-nav {
    background: none;
    border: 1px solid var(--kx-line-strong);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--kx-dim);
    cursor: pointer;
    transition: all 0.15s ease;
}

.kx-cal-nav:hover {
    background: rgba(60, 199, 255, 0.15);
    border-color: rgba(60, 199, 255, 0.5);
    color: var(--kx-cyan);
}

.kx-cal-today-btn {
    background: none;
    border: 1px solid var(--kx-line-strong);
    border-radius: 8px;
    padding: 0 12px;
    height: 32px;
    font-family: var(--kx-font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--kx-dim);
    cursor: pointer;
    transition: all 0.15s ease;
}

.kx-cal-today-btn:hover {
    background: rgba(255, 176, 46, 0.14);
    border-color: rgba(255, 176, 46, 0.5);
    color: var(--kx-amber);
}

.kx-cal-view-btn {
    background: none;
    border: none;
    padding: 0 12px;
    height: 30px;
    font-family: var(--kx-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--kx-dim);
    cursor: pointer;
    transition: all 0.15s ease;
    border-right: 1px solid var(--kx-line-strong);
}

.kx-cal-view-btn:last-child { border-right: none; }

.kx-cal-view-btn.active {
    background: rgba(60, 199, 255, 0.2);
    color: var(--kx-cyan);
}

.kx-cal-view-btn:hover:not(.active) {
    background: rgba(140, 175, 255, 0.08);
    color: var(--kx-ink);
}

/* 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-family: var(--kx-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kx-faint);
    padding: 6px 0;
}

/* Calendar grid */
.kx-cal-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kx-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    min-height: 72px;
}

.kx-cal-day {
    position: relative;
    min-height: 72px;
    padding: 4px 0 2px 0;
    background: rgba(140, 175, 255, 0.04);
    border-radius: 10px;
    cursor: default;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.kx-cal-empty { background: transparent; }

.kx-cal-num {
    font-family: var(--kx-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--kx-dim);
    text-align: right;
    padding-right: 6px;
    line-height: 1;
}

/* Today — the one amber (sun) mark on the page */
.kx-cal-today {
    background: rgba(255, 176, 46, 0.08);
}

.kx-cal-today .kx-cal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kx-amber);
    color: #1c1102;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    float: right;
    margin-right: 3px;
    font-size: 0.72rem;
}

.kx-cal-has-event {
    cursor: pointer;
    background: rgba(60, 199, 255, 0.07);
}

.kx-cal-has-event:hover {
    background: rgba(60, 199, 255, 0.16);
    transform: scale(1.03);
    z-index: 2;
}

.kx-cal-selected {
    background: rgba(60, 199, 255, 0.85) !important;
}

.kx-cal-selected .kx-cal-num {
    color: #041019;
    font-weight: 700;
}

/* Event bars */
.kx-cal-bar {
    height: 16px;
    line-height: 16px;
    font-size: 0.63rem;
    font-weight: 600;
    color: #041019;
    background: linear-gradient(180deg, #55d0ff 0%, #22a7e0 100%);
    border-radius: 4px;
    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.4);
}

.kx-cal-bar:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
    z-index: 5;
}

/* Event type colors — cyan / mint / amber, all dark-ink text */
.kx-cal-bar.ev-type-1 {
    background: linear-gradient(180deg, #55d0ff 0%, #22a7e0 100%);
}
.kx-cal-bar.ev-type-2 {
    background: linear-gradient(180deg, #43ecb5 0%, #1cc38a 100%);
}
.kx-cal-bar.ev-type-3 {
    background: linear-gradient(180deg, #ffc95e 0%, #f0a01e 100%);
}

/* Week view */
.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: var(--kx-glass);
    border: 1px solid var(--kx-line);
    border-left: 3px solid var(--kx-cyan);
    border-radius: 12px;
    margin-bottom: 10px;
    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-family: var(--kx-font-mono);
    font-size: 0.72rem;
    color: var(--kx-cyan);
    font-weight: 600;
    margin-bottom: 4px;
}

.kx-cal-ev-title {
    font-family: var(--kx-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--kx-ink);
    margin-bottom: 4px;
}

.kx-cal-ev-desc {
    font-size: 0.85rem;
    color: var(--kx-dim);
    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; }
}

/* =============================================================
   DETAIL MODAL — dark glass
   ============================================================= */
.kx-modal-trigger { cursor: pointer; }

.kx-modal-content {
    border: 1px solid var(--kx-line-strong);
    border-radius: 18px;
    overflow: hidden;
    background: var(--kx-deep);
    color: var(--kx-dim);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.kx-modal-header {
    background: rgba(140, 175, 255, 0.04);
    color: var(--kx-ink);
    border-bottom: 1px solid var(--kx-line);
    padding: 20px 24px;
}

.kx-modal-header .modal-title {
    font-family: var(--kx-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--kx-ink);
}

.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;
    border-bottom: 1px solid var(--kx-line);
}

.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: var(--kx-dim);
    margin-bottom: 16px;
    font-style: italic;
}

.kx-modal-text {
    font-size: 0.95rem;
    color: #b9c4d8;
    line-height: 1.75;
}

.kx-modal-text p { margin-bottom: 12px; }

.kx-modal-text strong { color: var(--kx-ink); }

.kx-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--kx-line);
}

/* Modal outline button carries inline blue overrides in JS — normalize */
.kx-modal-links .kx-btn-outline {
    color: var(--kx-cyan) !important;
    border-color: rgba(60, 199, 255, 0.4) !important;
}

/* =============================================================
   MOBILE APP DOWNLOAD
   ============================================================= */
.kx-download {
    padding: 110px 0;
    background:
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(43, 226, 166, 0.05) 0%, transparent 60%),
        transparent;
    border-top: 1px solid var(--kx-line);
}

.kx-download-header {
    max-width: 680px;
    margin-bottom: 64px;
}

.kx-download-card {
    background: var(--kx-glass);
    border: 1px solid var(--kx-line);
    border-radius: 22px;
    padding: 48px 40px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.kx-download-card:hover {
    border-color: rgba(43, 226, 166, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(43, 226, 166, 0.06);
}

.kx-download-card h3 {
    font-family: var(--kx-font-display);
    color: var(--kx-ink);
    font-weight: 700;
}

.kx-download-icon {
    font-size: 5rem;
    color: var(--kx-mint);
    display: block;
    margin-bottom: 20px;
}

.kx-download-sub {
    color: var(--kx-faint);
    font-family: var(--kx-font-mono);
    font-size: 0.82rem;
}

.kx-download-steps-title {
    font-family: var(--kx-font-display);
    color: var(--kx-ink);
    margin-bottom: 32px;
    font-size: 1.2rem;
    font-weight: 700;
}

.kx-download-step {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.kx-download-step h6 {
    color: var(--kx-ink);
    margin-bottom: 4px;
    font-weight: 600;
}

.kx-download-step p {
    color: var(--kx-dim);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.65;
}

/* Step numbers — mono digits in a gradient ring */
.kx-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:
        linear-gradient(var(--kx-void), var(--kx-void)) padding-box,
        var(--kx-grad) border-box;
    border: 1.5px solid transparent;
    color: var(--kx-cyan);
    font-family: var(--kx-font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================================
   ANNOUNCEMENTS DRAWER cards
   ============================================================= */
.kx-ann-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kx-ann-card {
    background: var(--kx-glass);
    border: 1px solid var(--kx-line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.kx-ann-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 226, 166, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.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 30%, rgba(10, 15, 26, 0.8) 100%);
}

.kx-ann-card-body { padding: 16px 18px 18px; }

.kx-ann-card-date {
    font-family: var(--kx-font-mono);
    font-size: 0.72rem;
    color: var(--kx-mint);
    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: var(--kx-ink);
    margin-bottom: 6px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.kx-ann-card:hover .kx-card-title { color: var(--kx-mint); }

.kx-ann-card .kx-card-text {
    font-size: 0.82rem;
    color: var(--kx-dim);
    line-height: 1.5;
    margin: 0;
}

.kx-ann-drawer-body .kx-btn-glass {
    font-size: 0.82rem;
    padding: 10px 24px;
}

@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: 1px solid var(--kx-line-strong);
    border-radius: 50%;
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--kx-cyan);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}

.kx-btt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.kx-btt:hover {
    transform: translateY(-4px);
    border-color: rgba(60, 199, 255, 0.55);
    box-shadow: 0 8px 28px rgba(60, 199, 255, 0.25);
}

/* =============================================================
   CTA BANNER — the launch pad
   ============================================================= */
.kx-cta {
    padding: 110px 0;
    background: transparent;
    border-top: 1px solid var(--kx-line);
    position: relative;
    overflow: hidden;
}

.kx-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 90% at 80% 50%, rgba(60, 199, 255, 0.08) 0%, transparent 70%);
}

/* Gradient-border glass card */
.kx-cta-content {
    position: relative;
    z-index: 2;
    background:
        linear-gradient(var(--kx-deep), var(--kx-deep)) padding-box,
        linear-gradient(120deg, rgba(60, 199, 255, 0.5), rgba(43, 226, 166, 0.5), rgba(60, 199, 255, 0.12)) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 56px 52px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.kx-cta h2 {
    font-family: var(--kx-font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--kx-ink);
    margin-bottom: 16px;
}

.kx-cta p {
    color: var(--kx-dim);
    font-size: 1rem;
    margin-bottom: 0;
}

.kx-cta-info-title {
    font-family: var(--kx-font-display);
    color: var(--kx-ink);
    font-weight: 600;
}

.kx-cta-info-title i { color: var(--kx-cyan); }

.kx-cta-info-line {
    color: var(--kx-dim);
    margin-bottom: 0;
}

/* =============================================================
   HEADER NAV — floating glass bridge
   ============================================================= */
.kx-header-nav {
    background: rgba(5, 7, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--kx-line);
    padding: 1px 0;
    overflow: visible;
    position: relative;
    z-index: 200;
}

.kx-header-container {
    position: relative;
    overflow: visible;
}

.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-family: var(--kx-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(135deg, #3cc7ff, #2be2a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kx-logo-spacer { display: none; }

.kx-header-link {
    font-family: var(--kx-font-display);
    color: var(--kx-dim) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.kx-header-link:hover {
    color: #fff !important;
    background: rgba(140, 175, 255, 0.08);
}

.kx-btn-header {
    font-family: var(--kx-font-display);
    background: var(--kx-grad);
    color: #041019;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 700;
    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, filter 0.2s ease;
}

.kx-btn-header:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 4px 18px rgba(60, 199, 255, 0.35);
    color: #041019;
}

.kx-header-toggler {
    border: 1px solid var(--kx-line-strong);
    color: var(--kx-dim);
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.kx-header-toggler:focus { box-shadow: none; }

/* Language switcher inside the dark header */
.kx-header-nav .lang-switch {
    display: flex;
    gap: 4px;
}

.kx-header-nav .lang-btn {
    font-family: var(--kx-font-mono);
    background: rgba(140, 175, 255, 0.06);
    border: 1px solid var(--kx-line);
    color: var(--kx-dim);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kx-header-nav .lang-btn:hover,
.kx-header-nav .lang-btn.active {
    background: rgba(60, 199, 255, 0.15);
    border-color: rgba(60, 199, 255, 0.45);
    color: var(--kx-cyan);
}

@media (max-width: 991px) {
    .kx-header-nav .navbar-collapse {
        border-top: 1px solid var(--kx-line);
        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 — table
   ============================================================= */
.kx-stock-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.kx-stock-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--kx-line);
}

.kx-stock-table thead th {
    padding: 13px 16px;
    font-family: var(--kx-font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kx-faint);
    border-bottom: 1px solid var(--kx-line-strong);
    background: rgba(140, 175, 255, 0.05);
    position: sticky;
    top: 0;
}

.kx-stock-table tbody tr {
    transition: background 0.2s;
    background: rgba(140, 175, 255, 0.02);
}

.kx-stock-table tbody tr:nth-child(even) {
    background: rgba(140, 175, 255, 0.045);
}

.kx-stock-table tbody tr:hover {
    background: rgba(60, 199, 255, 0.08);
}

.kx-stock-table tbody td {
    padding: 11px 16px;
    font-family: var(--kx-font-mono);
    font-size: 0.84rem;
    color: #c3cddf;
    border-bottom: 1px solid var(--kx-line);
}

.kx-stock-table tbody tr:last-child td { border-bottom: none; }

.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.82rem;
}

.kx-stock-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--kx-line);
    background: transparent;
    margin-top: auto;
}

.kx-stock-date {
    font-family: var(--kx-font-mono);
    font-size: 0.74rem;
    color: var(--kx-faint);
    font-weight: 500;
}

.kx-stock-source {
    font-family: var(--kx-font-mono);
    font-size: 0.74rem;
    color: var(--kx-cyan);
    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.78rem;
    }
}

/* =============================================================
   FOOTER — grounded in the same void
   (overrides the shared footerHome.css light-green look)
   ============================================================= */
.footer-section {
    background: transparent !important;
    border-top: 1px solid var(--kx-line);
    margin-top: 0 !important;
    padding-top: 56px;
    padding-bottom: 24px;
    color: var(--kx-dim);
}

.footer-section h6 {
    font-family: var(--kx-font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    color: var(--kx-cyan) !important;
    font-weight: 500 !important;
    text-transform: lowercase !important;
}

.footer-section h6::before {
    content: '// ';
    opacity: 0.55;
    white-space: pre;
}

.footer-section .text-secondary,
.footer-section .text-muted,
.footer-section p,
.footer-section small {
    color: var(--kx-dim) !important;
}

.footer-section .text-success,
.footer-section .fa-envelope,
.footer-section .fa-copyright {
    color: var(--kx-mint) !important;
}

.footer-section .social-box {
    background: var(--kx-glass) !important;
    border: 1px solid var(--kx-line) !important;
    color: var(--kx-dim) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.footer-section .social-box:hover {
    border-color: rgba(60, 199, 255, 0.5) !important;
    color: var(--kx-cyan) !important;
    background: rgba(60, 199, 255, 0.08) !important;
    transform: translateY(-2px);
}

.footer-section .social-box i { color: inherit !important; }
.footer-section .social-box span { color: inherit !important; }

.footer-section #txtEmail {
    background: var(--kx-glass) !important;
    border: 1px solid var(--kx-line-strong) !important;
    border-radius: 12px !important;
    color: var(--kx-ink) !important;
    height: 50px;
    font-size: 14px;
}

.footer-section #txtEmail::placeholder { color: var(--kx-faint); }

.footer-section #txtEmail:focus {
    border-color: rgba(60, 199, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(60, 199, 255, 0.12) !important;
    outline: none;
}

.footer-section .fa-envelope.position-absolute { color: var(--kx-cyan) !important; }

.footer-section #btnSubscribe {
    font-family: var(--kx-font-display);
    background: var(--kx-grad) !important;
    color: #041019 !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700;
    box-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-section #btnSubscribe:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 24px rgba(60, 199, 255, 0.3) !important;
}

.footer-section hr {
    border-top: 1px solid var(--kx-line) !important;
    opacity: 1 !important;
}

/* =============================================================
   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: linear-gradient(180deg, rgba(5, 7, 13, 0.45) 0%, rgba(5, 7, 13, 0.85) 100%); }
    .kx-cta-content { padding: 36px 24px; }
}

@media (max-width: 768px) {
    /* Override customstyle.css body padding that adds 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;
    }

    .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;
    }
}
