/* ==========================================================================
   KODA GRID PRODUCTION — MODERN SAAS LANDING PAGE STYLES
   Aesthetic: White & Gradient-Grey Grid | Huly & Clay Inspired Elegance
   ========================================================================== */

:root {
    color-scheme: light;
    --bg: #f0f2f6;
    --bg-subtle: #e6e9f0;
    --card-bg: #ffffff;
    --card-hover: #ffffff;
    --black: #090a0f;
    --text-primary: #090a0f;
    --text-secondary: #4a4e5a;
    --text-muted: #828796;

    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-card: rgba(0, 0, 0, 0.09);
    --border-hover: rgba(0, 0, 0, 0.22);

    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-amber: #f97316;
    --accent-emerald: #10b981;

    --ease-cinema: cubic-bezier(.14, .82, .22, 1);
    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
    --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── KODY SUPPORT ASSISTANT (Light Blueprint Theme & Interactive Round FAB Launcher) ── */
.kody-widget {
    position: fixed;
    right: 28px;
    bottom: 26px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
}

/* Round Circle Launcher with Smooth Hover Expansion */
.kody-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    width: 56px;
    /* Perfect round circle by default */
    border-radius: 9999px;
    padding: 0;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.45), 0 2px 8px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s ease,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.kody-launcher:hover,
.kody-launcher:focus-visible,
.kody-launcher[aria-expanded="true"] {
    width: 178px;
    /* Smoothly expands into capsule on hover */
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -4px rgba(2, 132, 199, 0.55), 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.kody-launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.kody-launcher:hover .kody-launcher-icon {
    transform: scale(1.06);
}

.kody-launcher-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

.kody-launcher-label {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-8px);
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease,
        transform 0.25s ease,
        padding 0.35s ease;
    pointer-events: none;
}

.kody-launcher:hover .kody-launcher-label,
.kody-launcher:focus-visible .kody-launcher-label,
.kody-launcher[aria-expanded="true"] .kody-launcher-label {
    opacity: 1;
    max-width: 125px;
    transform: translateX(0);
    padding-right: 18px;
}

/* Chat Panel - 100% Matching Blueprint Frosted Glass Theme */
.kody-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: min(390px, calc(100vw - 32px));
    height: min(550px, calc(100vh - 110px));
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(14, 165, 233, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    animation: kody-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kody-panel[hidden] {
    display: none;
}

@keyframes kody-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kody-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid rgba(186, 230, 253, 0.7);
}

.kody-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.35);
}

.kody-panel-avatar-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.kody-heading {
    display: grid;
    gap: 3px;
    flex: 1;
}

.kody-heading strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.kody-heading span {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kody-heading span i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.kody-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.kody-close:hover {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.12);
}

.kody-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.kody-message {
    max-width: 88%;
    font-size: 0.86rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    animation: kody-msg-in 0.25s ease-out;
}

@keyframes kody-msg-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.kody-message span {
    display: block;
    padding: 11px 14px;
    border-radius: 16px;
}

.kody-bot-message {
    align-self: flex-start;
    color: #1e293b;
}

.kody-bot-message span {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.kody-bot-message a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.18s ease;
}

.kody-bot-message a:hover {
    color: #0369a1;
}

.kody-user-message {
    align-self: flex-end;
    color: #ffffff;
}

.kody-user-message span {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px -3px rgba(2, 132, 199, 0.4);
}

/* Typing Indicator Animation */
.kody-typing-bubble {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    animation: kody-msg-in 0.2s ease-out;
}

.kody-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
    opacity: 0.4;
    animation: kody-dot-pulse 1.2s infinite ease-in-out;
}

.kody-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.kody-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes kody-dot-pulse {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.kody-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0;
}

.kody-suggestions button {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 9999px;
    padding: 7px 12px;
    font: 600 0.74rem 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kody-suggestions button:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.kody-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #edf0f6;
    background: #ffffff;
}

.kody-form input {
    min-width: 0;
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 14px;
    outline: none;
    font: 400 0.86rem 'Inter', sans-serif;
    color: #0f172a;
    transition: all 0.2s ease;
}

.kody-form input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.kody-form button {
    width: 44px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #0284c7;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
}

.kody-form button:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.4);
}

.kody-note {
    text-align: center;
    padding: 0 12px 10px;
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 500;
}

.kody-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media(max-width:600px) {
    .kody-widget {
        right: 14px;
        bottom: 14px;
    }

    .kody-panel {
        bottom: 66px;
        height: min(540px, calc(100dvh - 94px));
        min-height: 360px;
    }

    .kody-launcher {
        width: 52px;
        height: 52px;
    }

    .kody-launcher-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .kody-launcher-img {
        width: 28px;
        height: 28px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .kody-panel {
        animation: none;
    }

    .kody-launcher {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════
   KODA GRID — CUSTOM 3D MASCOT BOT INTRO EXPERIENCE
   - 100% Matched to Main Site Blueprint & Light Aesthetic
   - 3D Mascot Bot (Hover Thruster, Floating, Waving, Powers Grid)
   - Deep Slate & Electric Azure Typography
   ══════════════════════════════════════════════════ */
.koda-loader-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    z-index: 999999;
    background-color: #f0f9ff;
    background: radial-gradient(circle at 50% 38%, #e0f2fe 0%, #f0f9ff 45%, #ffffff 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.95s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform, opacity;
}

body.loader-active {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* Matching Blueprint Grid for Intro Screen */
.bot-intro-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 1;
}

.bot-intro-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 62% 46%, rgba(56, 189, 248, 0.24) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.koda-loader-screen.loader-dismissed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none !important;
}

.koda-loader-screen.loader-hidden {
    display: none !important;
}

/* Intro Stage Layout */
.bot-intro-stage {
    position: relative;
    width: 90%;
    max-width: 960px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    z-index: 2;
}

/* Left: Brand Container */
.bot-brand-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
    max-width: 580px;
}

.bot-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.15);
    font-size: 0.76rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bot-badge-pill.pill-active {
    opacity: 1;
    transform: translateY(0);
}

.bot-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 8px #0ea5e9;
    animation: beaconPulse 1.8s infinite ease-in-out;
}

.bot-badge-ver {
    padding: 1px 6px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 6px;
    font-size: 0.68rem;
    color: #0284c7;
}

/* Letters Row */
.bot-letters-row {
    display: flex;
    align-items: baseline;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: clamp(3rem, 6.5vw, 5.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.b-letter {
    display: inline-block;
    color: #0f172a;
    opacity: 0;
    transform: translateY(18px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
}

.b-letter.letter-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.b-letter.letter-powered {
    text-shadow: 0 0 24px rgba(2, 132, 199, 0.45);
}

.b-space {
    width: 0.28em;
}

.b-g,
.b-r,
.b-i,
.b-d {
    color: #0284c7;
}

/* SaaS Platform Pill Under Intro Title */
.bot-saas-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.32);
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.bot-saas-pill.saas-in {
    opacity: 1;
    transform: translateY(0);
}

.saas-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.8);
}

.saas-pill-text {
    line-height: 1;
}

.bot-tagline {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    font-weight: 500;
    color: #475569;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.bot-tagline.tagline-in {
    opacity: 1;
    transform: translateY(0);
}

/* Right: 3D Mascot Bot Rig */
.bot-mascot-rig {
    position: relative;
    width: 290px;
    height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transform: translate3d(240px, -40px, 0) scale(0.6) rotate(15deg);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.bot-mascot-rig.bot-entered {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.bot-mascot-rig.bot-hovering {
    animation: botHoverFloat 3.2s infinite ease-in-out;
}

.bot-mascot-img {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(14, 165, 233, 0.28)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.12));
    user-select: none;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Speech / Greeting Hologram Bubble */
.bot-hologram-bubble {
    position: absolute;
    top: -20px;
    right: 15px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 24px -2px rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284c7;
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    pointer-events: none;
}

.bot-hologram-bubble.bubble-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover Thruster Light Aura */
.bot-thruster-aura {
    position: absolute;
    bottom: 30px;
    width: 80px;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.85) 0%, rgba(2, 132, 199, 0.5) 45%, transparent 75%);
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.85;
    animation: thrusterPulse 1.4s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 1;
}

/* Realistic Ground Shadow */
.bot-ground-shadow {
    position: absolute;
    bottom: -15px;
    width: 140px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.18) 0%, rgba(14, 165, 233, 0.1) 40%, transparent 75%);
    border-radius: 50%;
    filter: blur(8px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

/* Floating animation */
@keyframes botHoverFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -14px, 0) rotate(-1.5deg);
    }
}

@keyframes thrusterPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

/* Modern Skip Button */
.bot-skip-btn {
    position: absolute;
    bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 9999px;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 10;
}

.bot-skip-btn:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.15);
}

.bot-skip-btn i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.bot-skip-btn:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .bot-intro-stage {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        gap: 30px;
        padding: 20px;
    }

    .bot-brand-container {
        align-items: center;
    }

    .bot-mascot-rig {
        width: 200px;
        height: 200px;
        transform: translate3d(0, 40px, 0) scale(0.6);
    }

    .bot-mascot-img {
        width: 160px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0 !important;
    padding: 0 !important;
}

html,
body {
    width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8fafc !important;
    background-image:
        radial-gradient(circle at 75% 25%, rgba(224, 242, 254, 0.9) 0%, rgba(240, 249, 255, 0.82) 45%, rgba(255, 255, 255, 0.88) 100%),
        linear-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px) !important;
    background-size: auto, 38px 38px, 38px 38px !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat, repeat, repeat !important;
    color: var(--text-primary);
    font-family: var(--font-head);
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ── INTERACTIVE MOUSE-REACTIVE GRID CANVAS ── */
#grid-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── FULL-WIDTH TOPBAR NAVIGATION (Pixel-Perfect Viewport Alignment) ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    padding: 0 clamp(20px, 4vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-bottom: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 0;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
    justify-content: flex-start;
    z-index: 10;
}

.brand-logo,
.topbar .brand-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.brand:hover .brand-logo {
    transform: scale(1.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #0f172a;
    line-height: 1.1;
    font-family: var(--font-head);
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1px;
}

.brand-sub {
    font-size: 0.54rem;
    letter-spacing: 0.2em;
    color: #64748b;
    font-weight: 700;
}

.brand-saas-tag {
    display: none !important;
}

/* Nav Links across all pages - Absolutely Centered in Viewport */
.nav-center-links,
.topbar-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 50;
    pointer-events: auto;
}

.nav-link,
.topbar-nav .nav-item {
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.nav-link:hover,
.topbar-nav .nav-item:hover {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.12);
}

.nav-link.active,
.topbar-nav .nav-item.active {
    color: #0284c7;
    background: transparent;
}

.top-actions,
.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 10;
}

/* Theme Toggle Button (Light/Dark Mode) */
.nav-theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.24);
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    padding: 0;
}

.nav-theme-toggle:hover {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.22);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.nav-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: rgba(241, 245, 249, 0.88);
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.88rem;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
}

.nav-social-btn:hover {
    color: #0284c7;
    background: #e0f2fe;
    transform: translateY(-1px);
}

.nav-social-btn.social-discord:hover { color: #5865f2; background: rgba(88, 101, 242, 0.14); }
.nav-social-btn.social-instagram:hover { color: #e1306c; background: rgba(225, 48, 108, 0.13); }
.nav-social-btn.social-linkedin:hover { color: #0a66c2; background: rgba(10, 102, 194, 0.12); }
.nav-social-btn.social-github:hover { color: #24292f; background: rgba(36, 41, 47, 0.12); }

.nav-cta-btn,
.btn-pill-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #0284c7;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 14px -3px rgba(2, 132, 199, 0.45);
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nav-cta-btn:hover,
.btn-pill-dark:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -3px rgba(2, 132, 199, 0.55);
}

.top-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--black);
    color: #fff;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.22s var(--ease-smooth);
}

.top-cta-btn:hover {
    background: #252830;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── HERO SECTION ── */
.hero {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 80px);
    max-height: 920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px clamp(20px, 5vw, 60px) 50px;
    isolation: isolate;
}

/* ── FROSTED BLUR BACKDROP BEHIND HERO TEXT ── */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: min(960px, 94vw);
    height: min(620px, 86vh);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72) 0%, rgba(238, 241, 247, 0.45) 55%, transparent 78%);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 44px;
    pointer-events: none;
    z-index: 0;
}

.saas-badge-pill,
.hero-headline,
.hero-description,
.hero-cta-group {
    position: relative;
    z-index: 2;
}

/* SaaS Badge Pill */
.saas-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border-radius: 100px;
    background: rgba(240, 242, 246, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    margin-bottom: 26px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.saas-badge-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.25);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: live-pulse 2s infinite ease-in-out;
}

.badge-text {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--black);
    text-transform: uppercase;
}

.badge-sep {
    color: rgba(0, 0, 0, .22);
    font-size: .75rem;
}

.badge-sub {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--text-secondary);
}

.badge-arrow {
    font-size: .75rem;
    color: var(--accent-indigo);
    transition: transform 0.2s ease;
}

.saas-badge-pill:hover .badge-arrow {
    transform: translateX(3px);
}

/* Hero Headline */
.hero-headline {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 800;
    text-transform: uppercase;
}

.headline-tag {
    font-size: clamp(.64rem, 1.3vw, .82rem);
    font-weight: 700;
    letter-spacing: .32em;
    color: #4b4f5c;
    margin-bottom: 18px;
    opacity: 0.9;
}

.headline-row-first {
    display: flex;
    gap: clamp(14px, 2.5vw, 32px);
    font-size: clamp(3.6rem, 8.4vw, 7.2rem);
    color: var(--black);
}

.headline-row-second {
    margin-top: .06em;
    font-size: clamp(3.4rem, 7.8vw, 6.6rem);
    letter-spacing: -.065em;
}

.headline-row-second .burst-word--accent,
.headline-row-second .letter {
    color: transparent !important;
    -webkit-text-stroke: 2.8px #090a0f !important;
    position: relative;
}

/* Kinetic Letters */
.letter {
    display: inline-block;
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: blur(0);
    transition: transform 0.95s var(--ease-cinema) var(--letter-delay, 0s),
        opacity 0.6s ease var(--letter-delay, 0s),
        filter 0.7s ease var(--letter-delay, 0s);
}

.hero.intro-armed .letter {
    opacity: 0;
    transform: translate(var(--from-x, 0), var(--from-y, 0)) rotate(var(--from-rot, 0deg)) scale(1.4);
    filter: blur(6px);
}

.hero.intro-live .letter {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: blur(0);
}

/* Hero Description */
.hero-description {
    opacity: 1;
    transform: translateY(0);
    margin: 24px auto 0;
    max-width: 660px;
    color: #262933;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -.01em;
}

/* Hero CTAs (Huly Glowing CTA & Clay Clean Pill) */
.hero-cta-group {
    opacity: 1;
    transform: translateY(0);
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Huly Glowing Button with Radiant Rim Glow */
.btn-glow-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 32px;
    border-radius: 100px;
    background: #090a0f;
    color: #ffffff;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .06em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transition: all .28s var(--ease-smooth);
    isolation: isolate;
}

.btn-glow-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(99, 102, 241, 0.9), rgba(6, 182, 212, 0.9));
    z-index: -1;
    opacity: 0.65;
    filter: blur(6px);
    transition: opacity .3s ease, filter .3s ease;
}

.btn-glow-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 42px rgba(249, 115, 22, 0.28);
}

.btn-glow-primary:hover::before {
    opacity: 1;
    filter: blur(10px);
}

.btn-glow-primary i {
    font-size: .85rem;
    transition: transform .22s ease;
}

.btn-glow-primary:hover i {
    transform: translateX(4px);
}

/* Clay Clean Secondary Pill Button */
.btn-clean-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.16);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    transition: all .24s var(--ease-smooth);
}

.btn-clean-secondary:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.btn-clean-secondary .ext-icon {
    font-size: .95rem;
    color: var(--text-muted);
    transition: transform .2s ease, color .2s ease;
}

.btn-clean-secondary:hover .ext-icon {
    color: var(--black);
    transform: translate(2px, -2px);
}

.btn-clean-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 24px;
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: all .2s ease;
}

.btn-clean-ghost:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.intro-complete .hero-description,
.intro-complete .hero-cta-group {
    opacity: 1;
    transform: translateY(0);
}

.intro-complete .hero-cta-group {
    pointer-events: auto;
}

/* Animated Burst Lines */
.burst-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.burst-lines span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--ray-length, 24vw);
    height: 1px;
    transform-origin: left center;
    transform: rotate(var(--ray-angle)) scaleX(0);
    opacity: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .08), transparent);
    transition: transform .9s var(--ease-cinema) var(--ray-delay, 0s), opacity .3s ease var(--ray-delay, 0s);
}

.intro-live .burst-lines span {
    transform: rotate(var(--ray-angle)) scaleX(1);
    opacity: .55;
}

/* ── OUR PROJECTS SECTION (Unique Bento Grid Format) ── */
.projects-section {
    position: relative;
    z-index: 2;
    padding: 100px clamp(20px, 6vw, 90px) 140px;
    max-width: 1360px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .24em;
    color: var(--accent-indigo);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.05;
    color: var(--black);
    text-transform: uppercase;
}

.section-desc {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 620px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* Unique Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Base Bento Card */
.bento-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: clamp(28px, 3.5vw, 42px);
    box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.28s var(--ease-smooth), border-color 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.12), 0 0 28px rgba(99, 102, 241, 0.08);
}

/* Card 1: Modulo (Spans 6 columns on desktop) */
.card-modulo {
    grid-column: span 6;
    background: linear-gradient(145deg, #ffffff 60%, rgba(99, 102, 241, 0.04) 100%);
}

/* Card 2: Profile Hub (Spans 6 columns on desktop) */
.card-profile {
    grid-column: span 6;
    background: linear-gradient(145deg, #ffffff 60%, rgba(6, 182, 212, 0.04) 100%);
}

/* Card 5: Full Portfolio Labs (Full 12 columns) */
.card-portfolio-banner {
    grid-column: span 12;
    background: linear-gradient(145deg, #252936 0%, #1c202a 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.card-portfolio-banner:hover {
    border-color: rgba(1, 124, 252, 0.4);
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.18), 0 0 30px rgba(1, 124, 252, 0.12);
}

/* Card Header & Badges */
.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-pill {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}

.pill-saas {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.pill-web {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.pill-games {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.pill-cloud {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-studio {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--accent-emerald);
}

.live-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* Card Content Typography */
.card-title {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.15;
}

.card-portfolio-banner .card-title {
    color: #ffffff;
}

.card-description {
    color: var(--text-secondary);
    font-size: clamp(.88rem, 1.2vw, .98rem);
    line-height: 1.65;
    margin-bottom: 26px;
}

.card-portfolio-banner .card-description {
    color: #a4a8b5;
}

/* ── AUTHENTIC DISCORD BOT INTERFACE MOCKUP (MODULO) ── */
.discord-ui-frame {
    background: #313338;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
}

.discord-channel-header {
    background: #2b2d31;
    border-bottom: 1px solid #1f2023;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
}

.discord-channel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #f2f3f5;
}

.discord-hash {
    color: #80848e;
    font-size: .85rem;
}

.discord-channel-badge {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(35, 165, 90, 0.15);
    color: #23a55a;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.discord-channel-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b5bac1;
    font-size: .8rem;
}

.discord-message-row {
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.discord-bot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #5865f2;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.discord-message-content {
    flex: 1;
    min-width: 0;
}

.discord-author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.discord-author-name {
    font-size: .88rem;
    font-weight: 700;
    color: #ffffff;
}

.discord-bot-tag {
    background: #5865f2;
    color: #ffffff;
    font-size: .62rem;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 3px;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.discord-bot-tag i {
    font-size: .55rem;
}

.discord-timestamp {
    font-size: .7rem;
    color: #949ba4;
    font-weight: 400;
}

/* Discord Rich Embed */
.discord-embed {
    background: #2b2d31;
    border-left: 4px solid #5865f2;
    border-radius: 4px;
    padding: 12px 14px;
    margin: 8px 0 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.discord-embed-author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .75rem;
    font-weight: 600;
    color: #5865f2;
    margin-bottom: 4px;
}

.discord-embed-title {
    font-size: .88rem;
    font-weight: 700;
    color: #f2f3f5;
    margin-bottom: 6px;
}

.discord-embed-desc {
    font-size: .8rem;
    line-height: 1.5;
    color: #dbdee1;
    margin-bottom: 10px;
}

.discord-mention {
    background: rgba(88, 101, 242, 0.2);
    color: #c9cdfb;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    font-size: .78rem;
}

.discord-embed-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px 12px;
    margin-bottom: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discord-field-name {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #949ba4;
    letter-spacing: .04em;
}

.discord-field-value {
    font-size: .76rem;
    font-weight: 600;
    color: #f2f3f5;
}

.discord-field-value code {
    background: #1e1f22;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: .72rem;
    color: #e0e1e5;
}

.discord-field-value.text-emerald {
    color: #23a55a;
}

.discord-field-value.text-red {
    color: #f23f43;
}

.discord-embed-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    color: #949ba4;
}

.discord-footer-logo {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

/* Discord Component Buttons */
.discord-components-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}

.discord-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.discord-btn-blurple {
    background: #5865f2;
    color: #ffffff;
}

.discord-btn-gray {
    background: #4e5058;
    color: #ffffff;
}

.discord-btn-danger {
    background: #da373c;
    color: #ffffff;
}

/* Interactive Profile Wave Widget */
.widget-wave-preview {
    background: #08090d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wave-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 48px;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo));
    border-radius: 3px;
    animation: wave-bounce 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) {
    height: 16px;
    animation-delay: 0.1s;
}

.wave-bar:nth-child(2) {
    height: 32px;
    animation-delay: 0.25s;
}

.wave-bar:nth-child(3) {
    height: 44px;
    animation-delay: 0.4s;
}

.wave-bar:nth-child(4) {
    height: 26px;
    animation-delay: 0.15s;
}

.wave-bar:nth-child(5) {
    height: 38px;
    animation-delay: 0.3s;
}

.wave-bar:nth-child(6) {
    height: 20px;
    animation-delay: 0.45s;
}

.widget-wave-preview p {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: #9297a7;
    margin-top: 12px;
    text-transform: uppercase;
}

/* Card Footer: Tech tags & Action Button */
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.card-portfolio-banner .card-footer-row {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.tech-stack-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-item {
    font-size: .65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

.card-portfolio-banner .tag-item {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e4ea;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--black);
    transition: all .2s ease;
}

.card-action-btn:hover {
    color: var(--accent-indigo);
    transform: translateX(4px);
}

.card-portfolio-banner .card-action-btn {
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-portfolio-banner .card-action-btn:hover {
    background: #017cfc;
    border-color: #017cfc;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(1, 124, 252, 0.4);
    transform: translateY(-2px);
}

/* ── CONTACT & ENTERPRISE CTA SECTION (Exact Image 2 Style — Minimalist White with Blueprint Cubes) ── */
.contact-cta-section {
    position: relative;
    z-index: 2;
    padding: 130px 24px 140px;
    background: #ffffff;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(14, 165, 233, 0.12);
}

.contact-cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}

.contact-cta-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #090a0f;
    margin-bottom: 36px;
}

.contact-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-cta-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-cta-blue:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.btn-cta-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.22s ease;
}

.btn-cta-light:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-cta-light i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.btn-cta-light:hover i {
    transform: translateX(3px);
}

/* Floating Architectural Blueprint Wireframe Cubes (Exact Image 2 Reference) */
.contact-cubes-overlay {
    position: absolute;
    left: clamp(20px, 6vw, 100px);
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 220px;
    pointer-events: none;
    z-index: 1;
}

.blueprint-cube {
    position: absolute;
    width: 68px;
    height: 68px;
    border: 1.5px dashed #94a3b8;
    border-radius: 4px;
    opacity: 0.45;
}

.blueprint-cube::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 14px;
    width: 68px;
    height: 68px;
    border: 1.5px dashed #94a3b8;
    border-radius: 4px;
}

.blueprint-cube::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 14px;
    width: 1px;
    height: 1px;
    box-shadow: -14px 14px 0 0 #94a3b8, 54px 14px 0 0 #94a3b8;
}

.cube-top {
    top: 20px;
    left: 0;
    transform: rotate(-6deg);
    animation: cubeFloat1 7s ease-in-out infinite alternate;
}

.cube-bottom {
    bottom: 20px;
    left: 10px;
    transform: rotate(4deg);
    animation: cubeFloat2 9s ease-in-out infinite alternate;
}

@keyframes cubeFloat1 {
    0% {
        transform: rotate(-6deg) translateY(0);
    }

    100% {
        transform: rotate(-3deg) translateY(-10px);
    }
}

@keyframes cubeFloat2 {
    0% {
        transform: rotate(4deg) translateY(0);
    }

    100% {
        transform: rotate(8deg) translateY(-8px);
    }
}

/* ── MINIMALIST SINGLE-LINE FOOTER (Exact Image 6 Style) ── */
.minimal-footer {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 26px clamp(20px, 5vw, 90px);
}

.minimal-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.minimal-footer-left {
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: -0.01em;
}

.minimal-footer-right {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.minimal-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.minimal-social-link i {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.minimal-social-link--linkedin i { color: #0a66c2; }
.minimal-social-link--instagram i { color: #e4405f; }
.minimal-social-link--discord i { color: #5865f2; }
.minimal-social-link--github i { color: #181717; }

.minimal-social-link--linkedin:hover,
.minimal-social-link--linkedin:focus-visible { color: #0a66c2; }
.minimal-social-link--instagram:hover,
.minimal-social-link--instagram:focus-visible { color: #e4405f; }
.minimal-social-link--discord:hover,
.minimal-social-link--discord:focus-visible { color: #5865f2; }
.minimal-social-link--github:hover,
.minimal-social-link--github:focus-visible { color: #181717; }

.minimal-social-link:hover,
.minimal-social-link:focus-visible {
    transform: translateY(-1px);
}
.minimal-social-link:hover i,
.minimal-social-link:focus-visible i { color: inherit; }

.minimal-social-link i.fa-x-twitter {
    color: #0f172a;
}

/* ── ANIMATIONS ── */
@keyframes live-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes wave-bounce {
    0% {
        transform: scaleY(0.4);
    }

    100% {
        transform: scaleY(1.15);
    }
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 1080px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-modulo,
    .card-profile,
    .card-portfolio-banner {
        grid-column: span 1;
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .nav-socials {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 88px 16px 40px;
        min-height: auto;
        max-height: none;
    }

    .headline-tag {
        font-size: .62rem;
        letter-spacing: .22em;
        margin-bottom: 12px;
    }

    .headline-row-first {
        gap: 8px;
        font-size: clamp(2.3rem, 11vw, 3.6rem);
        flex-wrap: wrap;
        justify-content: center;
        letter-spacing: -.05em;
    }

    .headline-row-second {
        margin-top: .04em;
        font-size: clamp(2.1rem, 9.8vw, 3.2rem);
        letter-spacing: -.05em;
    }

    .headline-row-second .burst-word--accent,
    .headline-row-second .letter {
        -webkit-text-stroke-width: 1.8px !important;
    }

    .hero-description {
        font-size: .95rem;
        line-height: 1.55;
        margin-top: 18px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        margin-top: 24px;
        gap: 12px;
    }

    .btn-glow-primary,
    .btn-clean-secondary,
    .btn-clean-ghost {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .projects-section {
        padding: 60px 16px 80px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card-modulo,
    .card-profile,
    .card-games,
    .card-cloud,
    .card-portfolio-banner {
        grid-column: span 1;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .huly-beam {
        display: none;
    }

    .ecosystem-section {
        padding: 30px 16px 80px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .letter {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-description,
    .hero-cta-group {
        opacity: 1;
        transform: none;
    }

    .scene-video {
        display: none;
    }
}


/* ══════════════════════════════════════════════════════════════════
   KODA GRID — 3D SHOWCASE, IMAGE 4 MATRIX & 3D GLOBE
   ══════════════════════════════════════════════════════════════════ */

/* ── 2. 3D MACBOOK & MOBILE SHOWCASE SECTION (Blurred Frosted Glass & Full-Bleed 100vh Fill) ── */
.modulo-showcase-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: radial-gradient(circle at 75% 35%, rgba(224, 242, 254, 0.88) 0%, rgba(240, 249, 255, 0.82) 45%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    overflow: hidden;
    border: none !important;
    box-sizing: border-box;
}

.modulo-showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Full blueprint grid pattern covering the entire section from edge to edge */
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 1;
}

.modulo-showcase-section::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Ambient radial glow highlighting the 3D devices and typography */
    background: radial-gradient(circle at 75% 35%, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.08) 45%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.modulo-showcase-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.modulo-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.15);
    font-size: 0.74rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 22px;
    text-decoration: none;
    width: fit-content;
}

.modulo-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 8px #0ea5e9;
    animation: beaconPulse 2s infinite ease-in-out;
}

.modulo-badge-sep {
    color: #cbd5e1;
}

.modulo-badge-sub {
    color: #475569;
    font-weight: 600;
}

.badge-arrow {
    font-size: 0.65rem;
    color: #0284c7;
    margin-left: 2px;
}

.modulo-showcase-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    color: #0f172a;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.highlight-blue-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modulo-showcase-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 24px;
    max-width: 520px;
}

.modulo-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.spec-tag i {
    color: #0284c7;
    font-size: 0.75rem;
}

.modulo-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-blue-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: #0284c7;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.45);
    transition: all 0.25s ease;
}

.btn-blue-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.55);
}

.btn-clean-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(203, 213, 225, 0.9);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.btn-clean-outline:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f8fafc;
}

/* ── FLOATING 3D KODA BOT COMPANION (Hero Mascot) ── */
.hero-bot-companion {
    position: absolute;
    top: -30px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 9999px;
    box-shadow: 0 10px 28px -4px rgba(14, 165, 233, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 12;
    animation: heroBotBob 3.6s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.hero-bot-companion:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 36px -4px rgba(14, 165, 233, 0.35);
}

.hero-bot-companion-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.3));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-bot-companion:hover .hero-bot-companion-img {
    transform: rotate(-10deg) scale(1.15);
}

.hero-bot-companion-text {
    display: flex;
    flex-direction: column;
}

.hero-bot-companion-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
}

.hero-bot-companion-status {
    font-size: 0.66rem;
    font-weight: 600;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

@keyframes heroBotBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ── 3D DEVICES STAGE (Tablet + Smartphone) ── */
.devices-stage-3d {
    position: relative;
    width: 100%;
    min-height: 480px;
    perspective: 1600px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-grid-overlay {
    display: none !important;
}

/* ── 3D MACBOOK PRO LAPTOP (Authentic Standing Screen + 3D Backlit Aluminum Keyboard Deck) ── */
.laptop-3d-wrap {
    position: relative;
    width: 92%;
    max-width: 580px;
    transform: rotateY(-16deg) rotateX(8deg) rotateZ(-1deg);
    transform-style: preserve-3d;
    perspective: 1200px;
    z-index: 5;
    pointer-events: none;
}

.laptop-3d {
    position: relative;
    transform-style: preserve-3d;
}

/* 1. Laptop Lid / Standing Display with Opening Animation on Start */
.laptop-lid {
    position: relative;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-radius: 18px 18px 6px 6px;
    padding: 8px 8px 9px;
    box-shadow:
        0 -8px 24px rgba(15, 23, 42, 0.4),
        0 0 0 1px #020617,
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
    z-index: 2;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transform: rotateX(68deg);
    animation: laptopOpenLid 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    will-change: transform, filter;
}

@keyframes laptopOpenLid {
    0% {
        transform: rotateX(68deg);
        filter: brightness(0.35);
    }
    100% {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
}

.laptop-camera-notch {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 5px;
    border-radius: 0 0 5px 5px;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    z-index: 10;
}

.camera-lens {
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 2px rgba(14, 165, 233, 0.8);
}

.camera-sensor {
    width: 1.5px;
    height: 1.5px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0.85;
    box-shadow: 0 0 2px #22c55e;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    background: #000000;
    cursor: default;
}

.laptop-scroll-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.laptop-screen-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.laptop-scroll-hint {
    display: none !important;
}

.laptop-chin {
    text-align: center;
    padding-top: 3px;
}

.laptop-brand {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* 2. MacBook Pro Clutch Barrel Hinge */
.laptop-hinge {
    height: 6px;
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #0f172a 100%);
    border-radius: 3px;
    margin: 1px 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 3;
}

/* 3. 3D Aluminum Unibody Keyboard Deck Base */
.laptop-base {
    position: relative;
    transform-origin: top center;
    transform: rotateX(68deg) translateZ(2px);
    background: linear-gradient(180deg, #1e2634 0%, #101622 35%, #080b12 100%);
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px 4px 22px 22px;
    padding: 10px 12px 18px;
    box-shadow:
        0 40px 80px -10px rgba(15, 23, 42, 0.65),
        0 15px 30px -5px rgba(14, 165, 233, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.85);
    margin-top: -3px;
    z-index: 1;
}

/* Keyboard Row with Flanking Speaker Grilles (MacBook Pro Signature) */
.laptop-keyboard-section {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.laptop-speaker {
    width: 14px;
    border-radius: 4px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0.65px, #020617 0.75px);
    background-size: 2.2px 2.2px;
    opacity: 0.8;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.85);
    flex-shrink: 0;
}

/* Recessed Anodized Black Keyboard Well */
.keyboard-well {
    background: #020617;
    border-radius: 7px;
    padding: 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2.5px 6px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.kb-row {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
    justify-content: space-between;
}

.kb-row-fn {
    margin-bottom: 4px;
}

.key {
    background: linear-gradient(180deg, #222938 0%, #131722 55%, #090c14 100%);
    color: #f1f5f9;
    border-radius: 2.8px;
    font-size: 7.5px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 14.5px;
    flex: 1;
    box-shadow:
        0 1.5px 0 #020408,
        0 2.5px 3.5px rgba(0, 0, 0, 0.75),
        inset 0 0.8px 0 rgba(255, 255, 255, 0.32);
    user-select: none;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.key-fn {
    height: 10.5px;
    font-size: 6.5px;
    color: #cbd5e1;
}

.key-esc {
    flex: 1.3;
}

.key-power {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.touch-id-ring {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: #020617;
    box-shadow: inset 0 0 2px rgba(14, 165, 233, 0.5);
}

.key-del,
.key-tab {
    flex: 1.5;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-caps {
    flex: 1.7;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-enter {
    flex: 1.7;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-shift-l {
    flex: 2.1;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-shift-r {
    flex: 2.1;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-mod {
    flex: 1.2;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-cmd {
    flex: 1.4;
    font-size: 6.5px;
    text-transform: lowercase;
}

.key-space {
    flex: 4.8;
    background: linear-gradient(180deg, #222938 0%, #131722 55%, #090c14 100%);
}

.key-arrows {
    display: flex;
    gap: 2px;
    flex: 1.8;
}

.key-arr-updown {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.key-arr-up,
.key-arr-down {
    height: 6.5px;
    font-size: 5px;
}

.key-arr-left,
.key-arr-right {
    font-size: 5.5px;
}

/* Force Touch Glass Trackpad */
.laptop-trackpad {
    width: 145px;
    height: 48px;
    margin: 8px auto 0;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

/* Front Opening Lip Notch */
.laptop-thumb-notch {
    width: 44px;
    height: 3.5px;
    margin: 6px auto -14px;
    border-radius: 0 0 4px 4px;
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Base Shadow */
.laptop-shadow {
    position: absolute;
    bottom: -32px;
    left: 4%;
    right: 4%;
    height: 45px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.45) 0%, transparent 75%);
    pointer-events: none;
    filter: blur(10px);
}

/* ── 3D MOBILE DEVICE (Realistic Titanium iPhone) ── */
.phone-3d-wrap {
    position: absolute;
    right: 0;
    bottom: -24px;
    width: 185px;
    z-index: 10;
    transform: translateZ(55px) rotateY(-10deg) rotateX(4deg) rotateZ(1deg);
    transform-style: preserve-3d;
    animation: phoneFloatAmbient 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes phoneFloatAmbient {
    0% {
        transform: translateZ(55px) rotateY(-10deg) rotateX(4deg) translateY(0);
    }

    100% {
        transform: translateZ(70px) rotateY(-8deg) rotateX(2deg) translateY(-12px);
    }
}

/* Titanium Hardware Buttons */
.phone-hw-btn {
    position: absolute;
    background: linear-gradient(180deg, #94a3b8 0%, #475569 50%, #1e293b 100%);
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.6), inset 0 0.8px 0 rgba(255, 255, 255, 0.5);
}

.btn-action {
    left: -3px;
    top: 68px;
    width: 3.5px;
    height: 16px;
}

.btn-vol-up {
    left: -3px;
    top: 92px;
    width: 3.5px;
    height: 28px;
}

.btn-vol-down {
    left: -3px;
    top: 126px;
    width: 3.5px;
    height: 28px;
}

.btn-power {
    right: -3px;
    top: 90px;
    width: 3.5px;
    height: 38px;
}

.phone-3d {
    background: #090d16;
    border: 2.8px solid rgba(255, 255, 255, 0.52);
    border-radius: 38px;
    padding: 5px;
    box-shadow:
        0 35px 75px -10px rgba(15, 23, 42, 0.65),
        0 0 0 1.5px #020617,
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        0 10px 28px -4px rgba(14, 165, 233, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #000000;
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Dynamic Island Removed */
.phone-dynamic-island {
    display: none !important;
}

.island-camera {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #0369a1 0%, #000000 70%);
    box-shadow: 0 0 1px rgba(2, 132, 199, 0.6);
}

.island-sensor {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #020617;
    opacity: 0.8;
}

/* Static Modulo Screen (No Scroll) */
.phone-scroll-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    cursor: default;
}

.phone-scroll-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.phone-scroll-body .phone-screen-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Interactive Scroll Hint Badge */
.phone-scroll-hint {
    display: none !important;
}
    backdrop-filter: blur(8px);
    z-index: 11;
    pointer-events: none;
    opacity: 0.92;
    animation: bounceHint 2.4s infinite ease-in-out;
    transition: opacity 0.3s ease;
}

@keyframes bounceHint {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.phone-shadow {
    position: absolute;
    bottom: -16px;
    left: 10%;
    right: 10%;
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

.screen-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 60%);
    pointer-events: none;
}

/* Floating nodes */
.device-node-floating {
    position: absolute;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 9999px;
    box-shadow: 0 8px 20px -3px rgba(14, 165, 233, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 12;
    backdrop-filter: blur(10px);
}

.node-top-left {
    top: 10px;
    left: -10px;
}

.node-bottom-right {
    bottom: -15px;
    left: 40px;
}

.node-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
}

.dot-green {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* ── 3. ARCHITECTURAL LOGO MATRIX & INTEGRATIONS (Image 1 & Image 4 Style) ── */
.integrations-section,
.projects-section {
    padding: 90px 24px 90px;
    width: 100%;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    position: relative;
    border-bottom: 1px solid rgba(14, 165, 233, 0.16);
    box-sizing: border-box;
}

.integrations-container {
    max-width: 1240px;
    margin: 0 auto;
}

.logo-matrix-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    margin-bottom: 60px;
}

.matrix-sidebar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 44px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(14, 165, 233, 0.18);
}

.matrix-sidebar-heading {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin-bottom: 30px;
}

.matrix-sidebar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: all 0.2s ease;
}

.matrix-sidebar-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

.matrix-sidebar-btn i {
    font-size: 0.72rem;
}

/* 2 Rows x 5 Columns Logo Grid */
.matrix-grid-cells {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 110px);
    gap: 1px;
    background: rgba(14, 165, 233, 0.18);
}

.matrix-logo-cell {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.matrix-logo-cell:hover {
    background: #f8fbff;
}

.matrix-logo-cell-empty {
    cursor: default;
}

.matrix-logo-cell-empty:hover {
    background: rgba(255, 255, 255, 0.85);
}

.matrix-products-error {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    color: var(--text-secondary, #64748b);
    background: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.95rem;
}

.cell-logo-img {
    height: 30px;
    max-width: 44px;
    object-fit: contain;
}

.cell-logo-img.roblox-img {
    height: 24px;
    filter: brightness(0) !important;
}

.cell-logo-name {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.cell-icon-discord {
    font-size: 26px;
    color: #5865F2;
}

.cell-icon-python {
    font-size: 26px;
    color: #3776AB;
}

.cell-icon-docker {
    font-size: 28px;
    color: #2496ED;
}

.cell-icon-github {
    font-size: 26px;
    color: #181717;
}

.cell-icon-db {
    font-size: 24px;
    color: #0284c7;
}

.cell-icon-api {
    font-size: 24px;
    color: #10b981;
}

.cell-icon-audio {
    font-size: 24px;
    color: #6366f1;
}

/* Image 4 Typographic Heading Below Logo Grid */
.image4-statement-wrap {
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0 10px;
}

.image4-statement-heading {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 700;
    line-height: 1.35;
    color: #334155;
    letter-spacing: -0.02em;
}

.text-blue-strong {
    color: #0284c7;
    font-weight: 800;
}

/* ── 4. RELIABILITY & 3D GRID GLOBE SECTION (Image 8 Style) ── */
.reliability-section {
    padding: 100px 24px 80px;
    width: 100%;
    background: rgba(248, 251, 254, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    position: relative;
    border-top: 1px solid rgba(14, 165, 233, 0.14);
    border-bottom: 1px solid rgba(14, 165, 233, 0.14);
    box-sizing: border-box;
}

.reliability-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reliability-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}

.globe-stage-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-canvas-wrap {
    position: relative;
    width: 460px;
    height: 460px;
    max-width: 100%;
}

#grid-globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.globe-orbit-badge {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: 9999px;
    box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.22);
    pointer-events: none;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.globe-badge-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.globe-badge-text {
    display: flex;
    flex-direction: column;
}

.globe-badge-text .badge-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.globe-badge-text .badge-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #10b981;
}

.dot-live {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
}

.dot-cyan {
    background: #0ea5e9;
    box-shadow: 0 0 5px #0ea5e9;
}

.reliability-content {
    max-width: 500px;
}

.reliability-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.reliability-desc {
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 28px;
}

.link-status-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-status-view:hover {
    color: #0369a1;
    transform: translateX(4px);
}

/* ── 5. RESPONSIVE ADJUSTMENTS & MOBILE FIX (Strict Horizontal Lock) ── */
html,
body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    touch-action: pan-y;
}

@media (max-width: 1024px) {
    .modulo-showcase-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .modulo-badge-pill {
        margin: 0 auto 22px;
    }

    .modulo-showcase-desc {
        margin: 0 auto 24px;
    }

    .modulo-tags-row {
        justify-content: center;
    }

    .modulo-actions-row {
        justify-content: center;
    }

    .devices-stage-3d {
        max-width: 540px;
        margin: 0 auto;
    }

    .grid-matrix-table {
        grid-template-columns: repeat(2, 1fr);
    }

    .reliability-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .reliability-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .reliability-actions {
        display: flex;
        justify-content: center;
    }

}

@media (max-width: 768px) {

    /* Navbar Strictly Fixed Full-Width Header */
    .topbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        height: 60px !important;
        padding: 0 16px !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(14, 165, 233, 0.16) !important;
        position: fixed !important;
        touch-action: pan-y !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.96) !important;
    }

    .topbar > .brand { margin-right: auto !important; flex: 0 0 auto !important; }
    .topbar > .top-actions { margin-left: auto !important; flex: 0 0 auto !important; justify-content: flex-end !important; }
    .globe-orbit-badge .badge-status { display: none !important; }

    .topbar .brand-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .brand-text strong {
        font-size: 0.88rem !important;
    }

    .brand-meta {
        display: none !important;
    }

    .nav-center-links {
        display: none !important;
    }

    .nav-socials {
        display: none !important;
    }

    .nav-cta-btn {
        padding: 6px 12px !important;
        font-size: 0.74rem !important;
        gap: 4px !important;
    }

    .modulo-showcase-section {
        padding: 86px 16px 50px !important;
    }

    .modulo-showcase-title {
        font-size: 2.1rem !important;
    }

    .modulo-actions-row {
        flex-direction: column !important;
        width: 100% !important;
    }

    .btn-blue-primary,
    .btn-clean-outline {
        width: 100% !important;
        justify-content: center !important;
    }

    .devices-stage-3d {
        min-height: 340px !important;
        perspective: 1000px !important;
    }

    .laptop-3d-wrap {
        width: 95% !important;
        transform: rotateY(-10deg) rotateX(6deg) !important;
    }

    .laptop-base {
        transform: rotateX(60deg) !important;
        padding: 8px 10px 14px !important;
    }

    .key {
        font-size: 6px !important;
        height: 11px !important;
    }

    .laptop-trackpad {
        width: 100px !important;
        height: 34px !important;
    }

    .phone-3d-wrap {
        width: 115px !important;
        right: 6px !important;
        bottom: -10px !important;
    }

    .globe-stage-wrapper {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .device-node-floating {
        display: none !important;
    }

    .projects-section {
        padding: 60px 16px !important;
    }

    .image4-statement-heading {
        font-size: 1.65rem !important;
    }

    .logo-matrix-wrap {
        grid-template-columns: 1fr !important;
    }

    .matrix-sidebar {
        border-right: none !important;
        border-bottom: 1px solid rgba(14, 165, 233, 0.18) !important;
        padding: 24px 20px !important;
    }

    .matrix-sidebar-heading {
        margin-bottom: 16px !important;
    }

    .matrix-grid-cells {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
    }

    .matrix-logo-cell {
        height: 76px !important;
        padding: 12px !important;
    }

    .cell-logo-name {
        font-size: 0.88rem !important;
    }

    .image4-statement-heading {
        font-size: 1.55rem !important;
    }

    .reliability-section {
        padding: 60px 16px !important;
    }

    .globe-canvas-wrap {
        width: 320px !important;
        height: 320px !important;
    }

}

/* ══════════════════════════════════════════════════════════════════
   ERROR PAGES STYLING (400, 403, 404, 500 — Matching Landing Page Blueprint)
   ══════════════════════════════════════════════════════════════════ */
.error-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f8fafc !important;
    background-image:
        radial-gradient(circle at 75% 25%, rgba(224, 242, 254, 0.9) 0%, rgba(240, 249, 255, 0.82) 45%, rgba(255, 255, 255, 0.88) 100%),
        linear-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.12) 1px, transparent 1px) !important;
    background-size: auto, 38px 38px, 38px 38px !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat, repeat, repeat !important;
}

.error-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
}

.error-glass-card {
    max-width: 580px;
    width: 100%;
    text-align: center;
    padding: 48px 36px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08), 0 4px 14px -3px rgba(14, 165, 233, 0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.error-mascot-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.error-bot-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(14, 165, 233, 0.25));
    animation: errorBotFloat 4s ease-in-out infinite alternate;
}

@keyframes errorBotFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

.error-code-badge {
    position: absolute;
    bottom: -6px;
    right: -12px;
    padding: 4px 12px;
    background: #0284c7;
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    letter-spacing: 0.04em;
}

.error-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.error-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-error-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: #334155 !important;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-error-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Kody Avatar in Widget */
.kody-launcher-img,
.kody-panel-avatar-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.kody-avatar .kody-panel-avatar-img {
    width: 32px;
    height: 32px;
}

/* ── SITE FOOTER (Multi-Column Semantic Footer) ── */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(14, 165, 233, 0.16);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px clamp(20px, 5vw, 80px) 40px;
    margin-top: 60px;
}
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
.footer-brand {
    max-width: 380px;
}
.footer-brand .brand {
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.footer-tagline {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 10px;
}
.footer-nav-groups {
    display: flex;
    gap: clamp(30px, 6vw, 80px);
    flex-wrap: wrap;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col-title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #0f172a;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.footer-link-item {
    font-size: 0.86rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link-item:hover {
    color: #0284c7;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(14, 165, 233, 0.14);
    font-size: 0.76rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
.footer-bottom b {
    color: #0f172a;
}
.footer-copy-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.footer-legal-sep {
    opacity: 0.5;
}
.footer-legal-link {
    color: #475569;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.footer-legal-link:hover {
    color: #0284c7;
}
.footer-social-strip {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-social-strip a {
    color: #64748b;
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.footer-social-strip a:hover {
    color: #0284c7;
    transform: translateY(-2px);
}

/* ==========================================================================
   KODA GRID PRODUCTION — DARK THEME SYSTEM (Pure High-End SaaS Aesthetic)
   ========================================================================== */
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070b14;
    --bg-subtle: #0f172a;
    --card-bg: #0b1221;
    --card-hover: #0f1b33;
    --black: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(14, 165, 233, 0.16);
    --border-card: rgba(14, 165, 233, 0.20);
    --border-hover: rgba(56, 189, 248, 0.40);
}

[data-theme="dark"] body {
    background-color: #070b14 !important;
    background-image:
        radial-gradient(circle at 75% 25%, rgba(14, 165, 233, 0.14) 0%, rgba(2, 132, 199, 0.06) 45%, rgba(7, 11, 20, 0.95) 100%),
        linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px) !important;
    background-size: auto, 38px 38px, 38px 38px !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat, repeat, repeat !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .topbar {
    background: rgba(10, 15, 29, 0.92) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.22) !important;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .brand-text strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .brand-sub {
    color: #94a3b8 !important;
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .topbar-nav .nav-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .topbar-nav .nav-item:hover {
    color: #38bdf8 !important;
    background: rgba(14, 165, 233, 0.18) !important;
}

[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .topbar-nav .nav-item.active {
    color: #38bdf8 !important;
    background: transparent !important;
}

[data-theme="dark"] .nav-social-btn {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .nav-social-btn:hover {
    background: rgba(14, 165, 233, 0.25) !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .nav-social-btn.social-discord:hover { color: #7289ff !important; background: rgba(88, 101, 242, 0.2) !important; }
[data-theme="dark"] .nav-social-btn.social-instagram:hover { color: #ff5a91 !important; background: rgba(225, 48, 108, 0.18) !important; }
[data-theme="dark"] .nav-social-btn.social-linkedin:hover { color: #55a6ff !important; background: rgba(10, 102, 194, 0.2) !important; }
[data-theme="dark"] .nav-social-btn.social-github:hover { color: #f0f6fc !important; background: rgba(240, 246, 252, 0.14) !important; }

[data-theme="dark"] .nav-theme-toggle {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}

[data-theme="dark"] .nav-theme-toggle:hover {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.24) !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .modulo-showcase-section {
    background: radial-gradient(circle at 75% 35%, rgba(14, 165, 233, 0.14) 0%, rgba(10, 15, 29, 0.88) 45%, #070b14 100%) !important;
}

[data-theme="dark"] .modulo-showcase-section::before {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px) !important;
}

[data-theme="dark"] .modulo-showcase-section::after {
    background: radial-gradient(circle at 75% 35%, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.06) 50%, transparent 80%) !important;
}

[data-theme="dark"] .modulo-showcase-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .modulo-showcase-desc {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-clean-outline {
    background: rgba(15, 23, 42, 0.75) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(14, 165, 233, 0.28) !important;
}

[data-theme="dark"] .btn-clean-outline:hover {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .modulo-pill-feature {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #cbd5e1 !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .modulo-header-badge,
[data-theme="dark"] .modulo-badge-strip {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}

[data-theme="dark"] .modulo-badge-sub {
    color: #94a3b8 !important;
}

[data-theme="dark"] .spec-tag {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(14, 165, 233, 0.22) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .integrations-section,
[data-theme="dark"] .projects-section {
    background: rgba(7, 11, 20, 0.94) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .image4-statement-heading {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-blue-strong {
    color: #38bdf8 !important;
}

[data-theme="dark"] .globe-orbit-badge {
    background: rgba(11, 18, 33, 0.94) !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .globe-badge-text .badge-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .logo-matrix-wrap {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: rgba(14, 165, 233, 0.22) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .matrix-sidebar {
    background: rgba(11, 18, 33, 0.94) !important;
    border-color: rgba(14, 165, 233, 0.22) !important;
}

[data-theme="dark"] .matrix-sidebar-heading {
    color: #f8fafc !important;
}

[data-theme="dark"] .matrix-sidebar-btn {
    background: rgba(30, 41, 59, 0.85) !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .matrix-sidebar-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .matrix-grid-cells {
    background: rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .matrix-logo-cell {
    background: rgba(11, 18, 33, 0.88) !important;
}

[data-theme="dark"] .matrix-logo-cell:hover {
    background: rgba(15, 27, 51, 0.95) !important;
}

[data-theme="dark"] .cell-logo-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .cell-logo-img.roblox-img {
    filter: brightness(0) invert(1) !important;
}

[data-theme="dark"] .reliability-section {
    background: rgba(10, 15, 29, 0.94) !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .reliability-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .reliability-desc {
    color: #94a3b8 !important;
}

[data-theme="dark"] .reliability-stats-bar {
    border-top: 1px dashed rgba(14, 165, 233, 0.35) !important;
}

[data-theme="dark"] .stat-block {
    border-color: rgba(14, 165, 233, 0.18) !important;
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-num {
    color: #f8fafc !important;
    text-shadow: 0 0 18px rgba(14, 165, 233, 0.35) !important;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .contact-cta-section {
    background: #070b14 !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .contact-cta-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .btn-cta-light {
    background: rgba(30, 41, 59, 0.85) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

[data-theme="dark"] .btn-cta-light:hover {
    background: rgba(51, 65, 85, 0.95) !important;
}


[data-theme="dark"] .site-footer {
    background: rgba(7, 11, 20, 0.95) !important;
    border-top-color: rgba(14, 165, 233, 0.16) !important;
}
[data-theme="dark"] .footer-tagline {
    color: #64748b !important;
}
[data-theme="dark"] .minimal-footer {
    background: #070b14 !important;
    border-top-color: rgba(14, 165, 233, 0.16) !important;
}

[data-theme="dark"] .minimal-footer-left {
    color: #94a3b8 !important;
}

[data-theme="dark"] .minimal-social-link {
    color: #94a3b8 !important;
}

[data-theme="dark"] .minimal-social-link i.fa-x-twitter {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .minimal-social-link--linkedin:hover,
[data-theme="dark"] .minimal-social-link--linkedin:focus-visible { color: #55a6ff !important; }
[data-theme="dark"] .minimal-social-link--instagram:hover,
[data-theme="dark"] .minimal-social-link--instagram:focus-visible { color: #ff6685 !important; }
[data-theme="dark"] .minimal-social-link--discord:hover,
[data-theme="dark"] .minimal-social-link--discord:focus-visible { color: #7985ff !important; }
[data-theme="dark"] .minimal-social-link--github:hover,
[data-theme="dark"] .minimal-social-link--github:focus-visible { color: #f0f6fc !important; }
[data-theme="dark"] .minimal-social-link:hover i,
[data-theme="dark"] .minimal-social-link:focus-visible i { color: inherit !important; }
[data-theme="dark"] .minimal-social-link--github i { color: #cbd5e1 !important; }
[data-theme="dark"] .minimal-social-link--github:hover i,
[data-theme="dark"] .minimal-social-link--github:focus-visible i { color: inherit !important; }

[data-theme="dark"] .footer-nav-hub {
    background: #070b14 !important;
    border-top-color: rgba(14, 165, 233, 0.18) !important;
}

[data-theme="dark"] .footer-col-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .footer-link-item {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-link-item:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(14, 165, 233, 0.18) !important;
    color: #64748b !important;
}

[data-theme="dark"] .footer-bottom b {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .footer-legal-link {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-legal-link:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .footer-social-strip a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .footer-social-strip a:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .kody-launcher {
    border: 2px solid rgba(14, 165, 233, 0.45) !important;
    box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.6), 0 0 0 3px rgba(14, 165, 233, 0.25) !important;
}

[data-theme="dark"] .kody-panel {
    background: rgba(10, 15, 29, 0.96) !important;
    border-color: rgba(14, 165, 233, 0.28) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .kody-panel-head {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .kody-heading strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .kody-heading span {
    color: #94a3b8 !important;
}

[data-theme="dark"] .kody-close {
    color: #94a3b8 !important;
}

[data-theme="dark"] .kody-close:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .kody-messages {
    background: #070b14 !important;
}

[data-theme="dark"] .kody-bot-message {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .kody-bot-message span {
    background: rgba(15, 23, 42, 0.94) !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .kody-bot-message span strong {
    color: #38bdf8 !important;
}

[data-theme="dark"] .kody-suggestions button {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
}

[data-theme="dark"] .kody-suggestions button:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .kody-form {
    background: #070b14 !important;
    border-top: 1px solid rgba(14, 165, 233, 0.2) !important;
}

[data-theme="dark"] .kody-form input {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #f8fafc !important;
    border: 1.5px solid rgba(14, 165, 233, 0.28) !important;
}

[data-theme="dark"] .kody-form input::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .kody-note {
    background: #070b14 !important;
    color: #64748b !important;
}

/* ==========================================================================
   COLORED REAL LOGO ICON LOADING & NAVIGATION TRANSITIONS
   ========================================================================== */
.koda-nav-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.koda-nav-loader.nav-loader-active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.nav-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    transition: background 0.3s ease;
}

[data-theme="dark"] .nav-loader-backdrop {
    background: rgba(7, 11, 20, 0.35) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
}

.nav-loader-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: scale(0.92);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.koda-nav-loader.nav-loader-active .nav-loader-stage {
    transform: scale(1);
}

/* Real Logo with Dynamic Colored Aura Effect */
.nav-loader-logo-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-loader-aura {
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.65) 0%, rgba(56, 189, 248, 0.45) 42%, rgba(99, 102, 241, 0.25) 68%, transparent 75%);
    filter: blur(14px);
    animation: navAuraPulse 1.6s infinite ease-in-out alternate;
}

.nav-loader-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #0284c7;
    animation: navRingSpin 1s linear infinite;
    filter: drop-shadow(0 0 10px #38bdf8);
}

.nav-loader-logo-img {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(2, 132, 199, 0.95))
            drop-shadow(0 0 36px rgba(56, 189, 248, 0.85))
            drop-shadow(0 0 55px rgba(14, 165, 233, 0.65));
    animation: navLogoColorPulse 1.6s infinite ease-in-out alternate;
}

@keyframes navLogoColorPulse {
    0% {
        filter: drop-shadow(0 0 14px rgba(2, 132, 199, 0.9)) drop-shadow(0 0 28px rgba(56, 189, 248, 0.75));
        transform: scale(0.96);
    }
    100% {
        filter: drop-shadow(0 0 26px rgba(56, 189, 248, 1)) drop-shadow(0 0 48px rgba(2, 132, 199, 0.95)) drop-shadow(0 0 70px rgba(99, 102, 241, 0.7));
        transform: scale(1.06);
    }
}

@keyframes navAuraPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.65;
    }
    100% {
        transform: scale(1.18);
        opacity: 0.95;
    }
}

@keyframes navRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-loader-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-loader-brand {
    font-family: var(--font-head);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #0f172a;
}

[data-theme="dark"] .nav-loader-brand {
    color: #f8fafc;
}

.nav-loader-bar {
    width: 104px;
    height: 3px;
    background: rgba(14, 165, 233, 0.22);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.nav-loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
    border-radius: 99px;
    animation: navProgressSweep 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes navProgressSweep {
    0% {
        left: -40%;
        width: 30%;
    }
    50% {
        left: 20%;
        width: 65%;
    }
    100% {
        left: 100%;
        width: 30%;
    }
}

/* Real Logo in Bot Intro Loader (#koda-loader) */
.bot-real-logo-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bot-real-logo-badge.badge-in {
    opacity: 1;
    transform: translateY(0);
}

.bot-real-logo-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-real-logo-aura {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.6) 0%, rgba(56, 189, 248, 0.4) 45%, transparent 72%);
    filter: blur(8px);
    animation: navAuraPulse 1.8s infinite ease-in-out alternate;
}

.bot-real-logo-img {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(2, 132, 199, 0.9)) drop-shadow(0 0 28px rgba(56, 189, 248, 0.75));
    animation: navLogoColorPulse 1.8s infinite ease-in-out alternate;
}

[data-theme="dark"] .koda-loader-screen {
    background-color: #070b14 !important;
    background: radial-gradient(circle at 52% 42%, #102744 0%, #0b1729 46%, #070b14 84%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .bot-intro-grid {
    opacity: 0.42 !important;
}

[data-theme="dark"] .bot-intro-glow {
    opacity: 0.62 !important;
}

[data-theme="dark"] .b-letter {
    color: #f1f5f9;
}

[data-theme="dark"] .b-g,
[data-theme="dark"] .b-r,
[data-theme="dark"] .b-i,
[data-theme="dark"] .b-d {
    color: #38bdf8;
}

[data-theme="dark"] .bot-badge-pill {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(56, 189, 248, 0.4);
    color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(14, 165, 233, 0.14);
}

[data-theme="dark"] .bot-badge-ver {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

[data-theme="dark"] .bot-hologram-bubble {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(56, 189, 248, 0.42);
    color: #7dd3fc;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 22px rgba(14, 165, 233, 0.14);
}

[data-theme="dark"] .bot-skip-btn {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.28);
    color: #cbd5e1;
}

[data-theme="dark"] .bot-skip-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
    color: #f0f9ff;
}

[data-theme="dark"] .bot-saas-pill {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.35);
    color: #38bdf8;
}

[data-theme="dark"] .btn-clean-secondary {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #f8fafc !important;
    border-color: rgba(14, 165, 233, 0.28) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .btn-clean-secondary:hover {
    background: rgba(14, 165, 233, 0.16) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .btn-clean-secondary .ext-icon {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-clean-secondary:hover .ext-icon {
    color: #38bdf8 !important;
}

[data-theme="dark"] .btn-clean-ghost {
    color: #94a3b8 !important;
}

[data-theme="dark"] .btn-clean-ghost:hover {
    color: #38bdf8 !important;
}

/* -- Topbar Login / User Capsule -- */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    color: #0f172a !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-login-btn:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
}

.nav-login-btn img.nav-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #38bdf8;
}

[data-theme="dark"] .nav-login-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(14, 165, 233, 0.3);
    color: #f1f5f9 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-login-btn:hover {
    background: rgba(14, 165, 233, 0.16);
    border-color: #38bdf8;
    color: #38bdf8 !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.nav-cta-btn img.nav-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
}

/* Signed-in navbar state shows the avatar only. */
.nav-cta-btn.nav-user-logged-in {
    width: 42px;
    height: 42px;
    padding: 2px;
    gap: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}
.nav-cta-btn.nav-user-logged-in:hover {
    transform: translateY(-1px) scale(1.04);
    background: transparent;
    box-shadow: 0 0 0 3px rgba(14,165,233,.16);
}
.nav-cta-btn.nav-user-logged-in img.nav-user-avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #38bdf8;
}
.nav-cta-btn.nav-user-logged-in>i {
    color: #079acb;
    font-size: 1.8rem;
}
[data-theme="dark"] .nav-cta-btn.nav-user-logged-in>i { color: #38bdf8; }

/* Unified illustrated device treatment for the Modulo hero. */
.devices-stage-3d {
    perspective: 2200px;
    perspective-origin: 52% 46%;
}

.laptop-3d-wrap {
    transform: rotateY(-7deg) rotateX(3deg) rotateZ(-0.4deg);
}

.laptop-base {
    transform: rotateX(68deg) translateZ(2px);
}

.phone-3d-wrap {
    transform: translateZ(38px) rotateY(-6deg) rotateX(2deg) rotateZ(0.4deg);
    animation-name: phoneFloatNatural;
}

@keyframes phoneFloatNatural {
    0% { transform: translateZ(38px) rotateY(-6deg) rotateX(2deg) rotateZ(0.4deg) translateY(0); }
    100% { transform: translateZ(48px) rotateY(-5deg) rotateX(1deg) rotateZ(0.4deg) translateY(-8px); }
}

.laptop-lid,
.phone-3d {
    background: linear-gradient(145deg, #101b2b 0%, #080e19 72%, #071421 100%);
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.2),
        0 0 0 1px rgba(2, 132, 199, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.laptop-base {
    background: linear-gradient(145deg, #162338 0%, #0b1422 78%);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 28px 56px rgba(2, 132, 199, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.laptop-hinge,
.phone-hw-btn {
    background: linear-gradient(90deg, #075985, #38bdf8 50%, #075985);
}

.laptop-trackpad {
    border-color: rgba(56, 189, 248, 0.38);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.12));
}

@media (max-width: 768px) {
    /* Keep the mobile hero focused on its copy and actions. */
    .modulo-showcase-right,
    .devices-stage-3d {
        display: none !important;
        min-height: 0 !important;
    }
}
