/* XcapeSystems - Global Stylesheet */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    background: #020B18;
    color: #E3F2FD;
    line-height: 1.6;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #020b18; }
::-webkit-scrollbar-thumb { background: #1565C0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2196F3; }

/* ===== KEYFRAMES ===== */
@keyframes xs-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes xs-fade-up {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes xs-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(0.72); opacity: 0.55; }
}

/* ===== CONTAINER ===== */
.xs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.xs-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(2,11,24,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(33,150,243,0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}
.xs-navbar-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}
.xs-navbar-logo img { height: 48px; display: block; }
.xs-navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.xs-nav-link {
    color: #E3F2FD;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.xs-nav-link:hover { background: rgba(33,150,243,0.1); color: #64B5F6; }
.xs-nav-link.active { background: rgba(33,150,243,0.12); color: #64B5F6; }

/* Buttons */
.xs-btn-primary {
    background: #1AAD80;
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(26,173,128,0.22);
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}
.xs-btn-primary:hover {
    background: #15906b;
    box-shadow: 0 6px 28px rgba(26,173,128,0.38);
}
.xs-btn-primary-lg {
    background: #1AAD80;
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(26,173,128,0.22);
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    align-content: center;
}
.xs-btn-primary-lg:hover {
    background: #15906b;
    box-shadow: 0 6px 28px rgba(26,173,128,0.38);
}
.xs-btn-outlined {
    background: transparent;
    color: #E3F2FD;
    padding: 10px 28px;
    border-radius: 8px;
    border: 1px solid rgba(33,150,243,0.4);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}
.xs-btn-outlined:hover {
    background: rgba(33,150,243,0.08);
    border-color: rgba(33,150,243,0.7);
}
.xs-btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #E3F2FD;
    border-color: rgba(33, 150, 243, 0.4);
}
.xs-btn-phone .material-icons { font-size: 18px; }

/* Lang toggle */
.xs-lang-toggle { display: flex; gap: 4px; margin-left: 16px; }
.xs-lang-btn {
    background: transparent;
    border: 1px solid rgba(33,150,243,0.35);
    color: #90CAF9;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.xs-lang-btn:hover { background: rgba(33,150,243,0.1); }
.xs-lang-btn.active {
    background: rgba(33,150,243,0.15);
    border-color: #2196F3;
    color: #64B5F6;
}

/* Hamburger */
.xs-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
}
.xs-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #E3F2FD;
    border-radius: 2px;
    transition: all 0.3s;
}
.xs-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.xs-hamburger.open span:nth-child(2) { opacity: 0; }
.xs-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.xs-drawer {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(4,16,30,0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(33,150,243,0.1);
    z-index: 999;
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
}
.xs-drawer.open { display: flex; }
.xs-drawer .xs-nav-link {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.xs-drawer-lang {
    display: flex;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(33,150,243,0.1);
    margin-top: 8px;
}

/* ===== HERO ===== */
.xs-hero {
    background: linear-gradient(-45deg, #020b18, #041630, #071e3e, #030f22);
    background-size: 400% 400%;
    animation: xs-gradient-shift 20s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 144px 0 80px;
}
.xs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 65% 50%, rgba(33,150,243,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.xs-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(33,150,243,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33,150,243,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
/* Animated circuit-trace background (drawn by js/hero-circuit.js) */
.xs-hero-circuit {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.xs-hero-content {
    animation: xs-fade-up 0.9s cubic-bezier(0.22,0.61,0.36,1) both;
    position: relative;
    z-index: 2;
    width: 80vw;
    max-width: 950px;
}
.xs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(33,150,243,0.1);
    border: 1px solid rgba(33,150,243,0.3);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.82rem;
    color: #64B5F6;
    margin-bottom: 24px;
    font-weight: 500;
}
.xs-hero-badge .dot {
    width: 7px; height: 7px;
    background: #1AAD80;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(26,173,128,0.8);
    animation: xs-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
.xs-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #E3F2FD;
    margin-bottom: 24px;
}
.xs-hero-title .accent {
    background: linear-gradient(135deg, #2196F3 30%, #64B5F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.xs-hero-subtitle {
    color: #90CAF9;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 40px;
}
.xs-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ===== HERO: SELECTED WORK ===== */
.xs-hero-work {
    background: rgba(13,27,42,0.6);
    border: 1px solid rgba(33,150,243,0.18);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(8px);
}
.xs-hero-work-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2196F3;
    margin: 0 0 16px 4px;
}
.xs-hero-work-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64B5F6;
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}
.xs-hero-work-all:hover { color: #E3F2FD; gap: 10px; }
.xs-hero-work-all .material-icons { font-size: 18px; }
.xs-hero-work-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.xs-hero-work-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(4,16,30,0.55);
    border: 1px solid rgba(33,150,243,0.12);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.xs-hero-work-item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent, #2196F3) 55%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent, #2196F3) 16%, transparent);
}
.xs-hero-work-thumb {
    position: relative;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
}
.xs-hero-work-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xs-hero-work-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.xs-hero-work-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.xs-hero-work-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #90CAF9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SECTIONS ===== */
.xs-section { padding: 96px 0; min-height: 100vh; }
.xs-section-alt {
    padding: 96px 0;
    background: rgba(4,22,48,0.4);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.xs-section-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2196F3;
    margin-bottom: 14px;
}
.xs-section-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #E3F2FD;
    line-height: 1.2;
    margin-bottom: 16px;
}
.xs-section-subtitle {
    font-size: 1.05rem;
    color: #90CAF9;
    line-height: 1.75;
}
.xs-section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }

/* ===== SERVICE CARDS ===== */
.xs-services-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 24px;
}
.xs-service-card {
    background: rgba(13,27,42,0.55);
    border: 1px solid rgba(33,150,243,0.13);
    border-radius: 20px;
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 65px auto;
    grid-template-rows: 65px auto;
    row-gap: 16px;
}
.xs-service-card:hover {
    border-color: rgba(33,150,243,0.38);
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(33,150,243,0.11);
    background: rgba(13,27,42,0.85);
}
.xs-service-icon {
    width: 65px; height: 65px;
    background: rgba(33,150,243,0.1);
    border: 1px solid rgba(33,150,243,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.xs-service-card:hover .xs-service-icon {
    background: rgba(33,150,243,0.18);
    border-color: rgba(33,150,243,0.4);
}
.xs-service-icon .material-icons { color: #2196F3; font-size: 32px; }
.xs-service-title { font-size: 1.5rem; font-weight: 700; color: #E3F2FD; margin-left: 16px; display: flex; align-items: center; }
.xs-service-desc { font-size: 0.92rem; color: #90CAF9; line-height: 1.7; grid-column: 1 / -1; }

/* ===== ABOUT ===== */
.xs-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.xs-about-p {
    color: #90CAF9;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.xs-chip {
    background: rgba(33,150,243,0.1);
    border: 1px solid rgba(33,150,243,0.2);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.82rem;
    color: #64B5F6;
    font-weight: 500;
}
.xs-features-list { 
    display: flex;
    flex-direction: column;
    gap: 16px; 
}
.xs-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(13,27,42,0.55);
    border: 1px solid rgba(33,150,243,0.12);
    border-radius: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.xs-feature-row:hover {
    border-color: rgba(33,150,243,0.35);
    transform: translateX(4px);
}
.xs-feature-icon {
    width: 62px; height: 62px;
    background: rgba(33,150,243,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.xs-feature-icon .material-icons { color: #2196F3; font-size: 28px; }
.xs-feature-title { font-size: 1.1rem; font-weight: 700; color: #E3F2FD; margin-bottom: 4px; }
.xs-feature-desc { font-size: 0.95rem; color: #90CAF9; line-height: 1.6; }

/* ===== FAQ ACCORDION ===== */
.xs-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.xs-faq-item {
    border-bottom: 1px solid rgba(144,202,249,0.15);
}
.xs-faq-item:last-child { border-bottom: none; }
.xs-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 24px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #E3F2FD;
    font-family: inherit;
}
.xs-faq-question:hover { color: #64B5F6; }
.xs-faq-icon {
    flex-shrink: 0;
    color: #64B5F6;
    transition: transform 0.25s ease;
}
.xs-faq-item.open .xs-faq-icon { transform: rotate(180deg); }
.xs-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.xs-faq-item.open .xs-faq-answer { grid-template-rows: 1fr; }
.xs-faq-answer-inner { overflow: hidden; }
.xs-faq-answer p {
    font-size: 0.95rem;
    color: #90CAF9;
    line-height: 1.7;
    margin: 0 0 24px;
}

/* ===== CTA SECTION ===== */
.xs-cta-section {
    background: linear-gradient(135deg, #051629 0%, #0a2545 45%, #051629 100%);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.xs-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(33,150,243,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.xs-cta-section .xs-container { position: relative; z-index: 1; }
.xs-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ===== PAGE SUB-HERO ===== */
.xs-page-hero {
    background: linear-gradient(-45deg, #020b18, #041630, #071e3e, #030f22);
    background-size: 400% 400%;
    animation: xs-gradient-shift 20s ease infinite;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.xs-page-hero .xs-hero-grid { position: absolute; inset: 0; }
.xs-page-hero-content { position: relative; z-index: 1; }
.xs-page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #E3F2FD;
    margin-bottom: 16px;
    line-height: 1.15;
}
.xs-page-hero-subtitle {
    font-size: 1.05rem;
    color: #90CAF9;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ===== PRODUCT FILTER ===== */
.xs-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.xs-filter-chip {
    background: rgba(13,27,42,0.55);
    border: 1px solid rgba(33,150,243,0.18);
    color: #90CAF9;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.xs-filter-chip:hover { background: rgba(33,150,243,0.1); border-color: rgba(33,150,243,0.3); color: #64B5F6; }
.xs-filter-chip.active { background: rgba(33,150,243,0.15); border-color: #2196F3; color: #64B5F6; }

/* Released / In Development chips inherit the status-badge colour scheme */
.xs-filter-chip[data-filter="released"] { border-color: rgba(0,230,118,0.18); color: #77f1b6; }
.xs-filter-chip[data-filter="released"]:hover { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: #69F0AE; }
.xs-filter-chip[data-filter="released"].active { background: rgba(0,230,118,0.15); border-color: #00E676; color: #69F0AE; }

.xs-filter-chip[data-filter="dev"] { border-color: rgba(255,179,0,0.18); color: #ffdb70; }
.xs-filter-chip[data-filter="dev"]:hover { background: rgba(255,179,0,0.1); border-color: rgba(255,179,0,0.3); color: #FFD54F; }
.xs-filter-chip[data-filter="dev"].active { background: rgba(255,179,0,0.15); border-color: #FFB300; color: #FFD54F; }

/* ===== PRODUCT CARDS ===== */
.xs-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.xs-product-card {
    background: rgba(13,27,42,0.55);
    border: 1px solid rgba(33,150,243,0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.xs-product-card:hover {
    border-color: rgba(33,150,243,0.2);
    border-top-color: color-mix(in srgb, var(--accent, #2196F3) 85%, transparent);
    transform: translateY(-6px);
    box-shadow: 0 20px 56px color-mix(in srgb, var(--accent, #2196F3) 14%, transparent);
}
.xs-product-card.hidden { display: none; }
/* Applied briefly when arriving from the "Selected Work" links in the home hero */
.xs-product-card.xs-highlight {
    border-color: color-mix(in srgb, var(--accent, #2196F3) 70%, transparent);
    animation: xs-card-highlight 2.4s ease-out 1;
}
@keyframes xs-card-highlight {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #2196F3) 45%, transparent); transform: none; }
    18%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent, #2196F3) 0%, transparent); transform: translateY(-6px); }
    36%  { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #2196F3) 45%, transparent); transform: none; }
    54%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent, #2196F3) 0%, transparent); transform: translateY(-6px); }
    72%  { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #2196F3) 30%, transparent); transform: none; }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #2196F3) 0%, transparent); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .xs-product-card.xs-highlight { animation: none; }
}
.xs-product-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 56px;
    line-height: 1;
}
.xs-product-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.xs-product-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(21, 101, 192, 0.28);
    z-index: 1;
    pointer-events: none;
}
.xs-product-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(13,27,42,0.75) 100%);
    z-index: 2;
}
.xs-product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.xs-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: rgba(33, 150, 243, 0.12) 1px solid;
}
.xs-product-name { font-size: 1.2rem; font-weight: 700; }
.xs-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.xs-status-released {
    background: rgba(0,230,118,0.12);
    color: #00E676;
    border: 1px solid rgba(0,230,118,0.25);
}
.xs-status-dev {
    background: rgba(255,179,0,0.12);
    color: #FFB300;
    border: 1px solid rgba(255,179,0,0.25);
}
.xs-product-desc {
    font-size: 0.88rem;
    color: #90CAF9;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.xs-product-btn {
    background: transparent;
    border: 1px solid rgb(26 173 128 / 35%);
    color: #13dda0;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
    display: block;
    cursor: pointer;
}
.xs-product-btn:hover { background: rgb(26 173 128 / 8%); border-color: rgb(26 173 128 / 35%); }

/* ===== CONTACT ===== */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s !important;
} /* Prevent autofill styles from interfering with dark theme */

.xs-contact-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 32px;
}
.xs-form-card {
    background: rgba(13,27,42,0.55);
    border: 1px solid rgba(33,150,243,0.13);
    border-radius: 20px;
    padding: 40px;
}
.xs-contact-info-card {
    background: rgba(13,27,42,0.55);
    border: 1px solid rgba(33,150,243,0.13);
    border-radius: 20px;
    padding: 40px 32px;
    height: fit-content;
}
.xs-form-title { font-size: 1.3rem; font-weight: 700; color: #E3F2FD; margin-bottom: 6px; }
.xs-form-subtitle { font-size: 0.9rem; color: #90CAF9; margin-bottom: 28px; }
.xs-form-group { margin-bottom: 20px; }
.xs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.xs-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #90CAF9;
    margin-bottom: 8px;
}
.xs-form-label span:not(:nth-child(1)) { color: #FF5252; margin-left: 2px; }
.xs-form-input {
    width: 100%;
    background: rgba(13,27,42,0.8);
    border: 1px solid rgba(33,150,243,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #E3F2FD;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.xs-form-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.xs-form-input::placeholder { color: rgba(144,202,249,0.4); }
.xs-form-input.has-error { border-color: #FF5252; }
select.xs-form-input { appearance: none; cursor: pointer; }
textarea.xs-form-input { resize: vertical; min-height: 102px; }

/* Phone country prefix */
.xs-phone-wrapper { position: relative; }
.xs-phone-prefix {
    position: absolute;
    left: 1px; top: 1px; bottom: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(33,150,243,0.1);
    border-right: 1px solid rgba(33,150,243,0.2);
    border-radius: 9px 0 0 9px;
    padding: 0 8px 0 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #90CAF9;
    white-space: nowrap;
    z-index: 2;
    pointer-events: auto;
}
.xs-phone-prefix.hidden { display: none; }
.xs-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.xs-phone-clear-btn {
    background: none;
    border: none;
    padding: 0 1px 0 4px;
    font-size: 16px;
    line-height: 1;
    color: #2196F3;
    opacity: 0.55;
    transition: opacity 0.15s;
}
.xs-phone-clear-btn:hover { opacity: 1; }

/* Country searchable dropdown */
.xs-country-dd { position: relative; }
.xs-country-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    background: rgba(13,27,42,0.8);
    border: 1px solid rgba(33,150,243,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #E3F2FD;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.xs-country-trigger:focus,
.xs-country-trigger.open {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.xs-country-trigger.has-error { border-color: #FF5252; }
.xs-country-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(144,202,249,0.4);
}
.xs-country-trigger-text.selected { color: #E3F2FD; }
.xs-dd-chevron {
    font-size: 20px;
    color: rgba(144,202,249,0.55);
    flex-shrink: 0;
    transition: transform 0.2s;
    pointer-events: none;
}
.xs-country-trigger.open .xs-dd-chevron { transform: rotate(180deg); }

.xs-country-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #0d1b2a;
    border: 1px solid rgba(33,150,243,0.22);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
    z-index: 500;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.xs-country-panel.open { display: flex; }

.xs-country-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(33,150,243,0.1);
    flex-shrink: 0;
}
.xs-country-search-icon { color: rgba(144,202,249,0.55); font-size: 18px; flex-shrink: 0; }
.xs-country-search-input {
    background: none;
    border: none;
    outline: none;
    color: #E3F2FD;
    font-size: 0.9rem;
    width: 100%;
    font-family: inherit;
}
.xs-country-search-input::placeholder { color: rgba(144,202,249,0.35); }

.xs-country-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
}
.xs-country-options::-webkit-scrollbar { width: 4px; }
.xs-country-options::-webkit-scrollbar-track { background: transparent; }
.xs-country-options::-webkit-scrollbar-thumb { background: rgba(33,150,243,0.25); border-radius: 2px; }
.xs-country-options::-webkit-scrollbar-thumb:hover { background: rgba(33,150,243,0.45); }

.xs-country-option {
    padding: 9px 14px;
    font-size: 0.9rem;
    color: #E3F2FD;
    cursor: pointer;
    transition: background 0.12s;
}
.xs-country-option:hover,
.xs-country-option.xs-highlighted { background: rgba(33,150,243,0.1); color: #90CAF9; }
.xs-country-option.selected { color: #2196F3; font-weight: 500; }

.xs-country-no-results {
    padding: 14px;
    font-size: 0.88rem;
    color: rgba(144,202,249,0.45);
    text-align: center;
    display: none;
}

.xs-field-error {
    font-size: 0.78rem;
    color: #FF5252;
    margin-top: 5px;
    display: none;
}
.xs-field-error.visible { display: block; }

.xs-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
}
.xs-alert.show { display: block; }
.xs-alert-success {
    background: rgba(0,230,118,0.08);
    border: 1px solid rgba(0,230,118,0.25);
    color: #00E676;
}
.xs-alert-error {
    background: rgba(255,23,68,0.08);
    border: 1px solid rgba(255,23,68,0.25);
    color: #FF5252;
}
.xs-alert-title { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.xs-alert-body { font-size: 0.9rem; opacity: 0.9; }

.xs-submit-btn {
    width: 100%;
    background: #1AAD80;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(26,173,128,0.22);
    transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.xs-submit-btn:hover { background: #15906b; box-shadow: 0 6px 28px rgba(26,173,128,0.38); }
.xs-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; background: #1AAD80; box-shadow: none; }

.xs-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(33,150,243,0.08);
}
.xs-contact-info-item:last-child { border-bottom: none; }
.xs-contact-icon {
    width: 46px; height: 46px;
    background: rgba(33,150,243,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.xs-contact-icon .material-icons { color: #2196F3; font-size: 22px; }
.xs-contact-icon svg { color: #2196F3; }
.xs-contact-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2196F3;
    margin-bottom: 4px;
}
.xs-contact-item-value { font-size: 0.92rem; color: #E3F2FD; font-weight: 500; }
.xs-external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.xs-external-link:hover { color: #2196F3; }
.xs-external-icon {
    font-size: 15px !important;
    color: #2196F3;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}
.xs-external-link:hover .xs-external-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}
.xs-contact-item-sub { font-size: 0.82rem; color: #90CAF9; }

.xs-social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.xs-social-btn {
    width: 40px; height: 40px;
    background: rgba(33,150,243,0.08);
    border: 1px solid rgba(33,150,243,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90CAF9;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    font-size: 18px;
}
.xs-social-btn:hover { background: rgba(33,150,243,0.18); border-color: rgba(33,150,243,0.45); color: #64B5F6; }

.xs-consult-box {
    margin-top: 24px;
    background: rgba(26,173,128,0.05);
    border: 1px solid rgba(26,173,128,0.2);
    border-radius: 14px;
    padding: 20px 20px 20px 18px;
    box-shadow: 0 4px 16px rgba(26,173,128,0.06);
}
.xs-consult-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4ecca3;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.xs-consult-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #020B18;
    background: #1AAD80;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 2px;
    flex-shrink: 0;
}
.xs-consult-body { font-size: 0.85rem; color: #90CAF9; line-height: 1.65; }

/* ===== FOOTER ===== */
.xs-footer {
    background: rgba(2,11,24,0.9);
    border-top: 1px solid rgba(33,150,243,0.08);
    padding: 56px 0 0;
    color: #90CAF9;
    font-size: 0.85rem;
}
.xs-footer a { color: #64B5F6; text-decoration: none; }
.xs-footer a:hover { text-decoration: underline; }
.xs-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(33,150,243,0.08);
}
.xs-footer-brand img { height: 32px; display: block; }
.xs-footer-tagline { margin: 14px 0 0; line-height: 1.7; max-width: 260px; color: #90CAF9; }
.xs-footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: #E3F2FD;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 14px;
}
.xs-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.xs-footer-links a { color: #90CAF9; font-size: 0.88rem; }
.xs-footer-links a:hover { color: #64B5F6; text-decoration: none; }
.xs-footer-email { display: block; font-size: 0.88rem; margin-bottom: 8px; }
.xs-footer-phone { display: block; font-size: 0.88rem; margin-bottom: 18px; }
.xs-footer-social { display: flex; gap: 10px; }
.xs-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(33,150,243,0.1);
    color: #64B5F6;
    transition: background 0.2s, color 0.2s;
}
.xs-footer-social a:hover { background: rgba(33,150,243,0.22); text-decoration: none; }
.xs-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #546E7A;
}
@media (max-width: 760px) {
    .xs-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .xs-footer-tagline { max-width: 100%; }
}

/* ===== COOKIE NOTICE ===== */
.xs-cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: rgba(4, 17, 36, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(33, 150, 243, 0.22);
    transform: translateY(100%);
    transition: transform 0.32s ease;
}
.xs-cookie-notice.visible { transform: translateY(0); }
.xs-cookie-notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.xs-cookie-notice-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #B0C7DE;
    margin: 0;
}
.xs-cookie-notice-btn {
    flex-shrink: 0;
    background: transparent;
    color: #90CAF9;
    padding: 5px 16px;
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.4);
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.xs-cookie-notice-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.7);
    color: #E3F2FD;
}
@media (prefers-reduced-motion: reduce) {
    .xs-cookie-notice { transition: none; }
}
@media (max-width: 760px) {
    .xs-cookie-notice-inner {
        padding: 10px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }
}

/* ===== FLOATING CONTACT BUBBLE (mobile only) ===== */
.xs-contact-bubble {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1AAD80;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(26,173,128,0.45);
    z-index: 1150;
    transition: bottom 0.25s ease, background 0.2s, box-shadow 0.2s, transform 0.2s;
    animation: xs-bubble-float 3.2s ease-in-out infinite;
}
.xs-contact-bubble:hover,
.xs-contact-bubble:focus-visible {
    background: #15906b;
    box-shadow: 0 6px 24px rgba(26,173,128,0.6);
    transform: scale(1.07);
}
@keyframes xs-bubble-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -6px; }
}
.xs-contact-bubble .material-icons {
    position: relative;
    z-index: 1;
    font-size: 22px;
}
.xs-contact-bubble-raised { bottom: 96px; }
.xs-contact-bubble-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #1AAD80;
    animation: xs-bubble-ping 3.2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes xs-bubble-ping {
    0%   { transform: scale(1); opacity: 0.55; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .xs-contact-bubble-ping { animation: none; }
    .xs-contact-bubble { transition: none; }
}
@media (max-width: 960px) {
    .xs-contact-bubble { display: flex; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .xs-hero-content { width: 90vw; max-width: 710px; }
    .xs-navbar-links { display: none; }
    .xs-hamburger { display: flex; }
    .xs-services-grid { grid-template-columns: repeat(2, 1fr); }
    .xs-about-grid { grid-template-columns: 1fr; gap: 40px; }
    .xs-products-grid { grid-template-columns: repeat(2, 1fr); }
    .xs-contact-grid { grid-template-columns: 1fr; }
    .xs-section { padding: 72px 0; }
    .xs-section-alt { padding: 72px 0; }
    .xs-cta-section { padding: 72px 0; }
}
@media (max-width: 600px) {
    .xs-hero-content { width: unset; max-width: unset; }
    .xs-section-title { font-size: 2.4rem; }
    .xs-section-subtitle { font-size: 0.95rem; }
    .xs-service-card { padding: 32px 24px; }
    .xs-service-title { margin-left: 12px; font-size: 1.25rem; }
    .xs-services-grid { grid-template-columns: 1fr; }
    .xs-products-grid { grid-template-columns: 1fr; }
    .xs-form-row { grid-template-columns: 1fr; }
    .xs-hero-btns { flex-direction: column; }
    .xs-hero-work-list { grid-template-columns: 1fr; }
    .xs-hero-work { padding: 16px; }
    .xs-cta-btns { flex-direction: column; align-items: center; }
    .xs-hero { padding-top: 100px; }
    .xs-page-hero { padding: 100px 0 60px; }
    .xs-form-card { padding: 24px; }
    .xs-contact-info-card { padding: 24px; }
    .xs-section { padding: 56px 0; }
    .xs-section-alt { padding: 56px 0; }
    .xs-cta-section { padding: 56px 0; }
    .xs-filter-chips { flex-wrap: nowrap; }
    .xs-filter-chip { padding: 8px 8px; font-size: 0.8rem; }
}
