/* ============================= */
/* GLOBAL RESET */
/* ============================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background: #0f172a;
    color: white;
    overflow-x: visible;
    position: relative;
}

/* ============================= */
/* BACKGROUND GLOW */
/* ============================= */

body::before {
    content: "";
    position: fixed;
    top: -300px;
    right: -300px;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle,
            rgba(147, 51, 234, 0.06),
            rgba(59, 130, 246, 0.04),
            transparent 70%);
    filter: blur(220px);
    z-index: -2;
}

/* ============================= */
/* PARTICLES LAYER */
/* ============================= */

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: transform;
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1000;
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    color: white;
}

nav a {
    margin-left: 28px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: .3s;
}

nav a:hover {
    color: #9333ea;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.section {
    padding: 90px 20px;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

/* Subtle gradient breath between consecutive sections */
.section + .section::before {
    content: "";
    display: block;
    height: 1px;
    width: 60%;
    margin: 0 auto 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(99, 102, 241, 0.12),
        rgba(147, 51, 234, 0.1),
        transparent);
}

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

/* ============================= */
/* HERO */
/* ============================= */

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 160px 20px 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}


.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.hero h1 span {
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(147, 51, 234, 0.4));
}

.hero p {
    font-size: 18px;
    opacity: .8;
    margin: 28px auto 0;
    max-width: 700px;
}

.hero .btn {
    display: inline-block;
    margin-top: 24px;
}

.hero-proof {
    margin-top: 16px;
    font-size: 14px;
    opacity: .6;
}

/* ============================= */
/* CLIENT LOGOS */
/* ============================= */

.logos-section {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
}

.logos-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logos {
    display: flex;
    justify-content: center;
}

.trusted-companies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trusted-companies span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    opacity: 0.85;
    transition: color 0.3s ease;
}

.trusted-companies span:hover {
    color: #ffffff;
    opacity: 1;
}

.trusted-companies .highlight {
    color: #8b5cf6;
    font-weight: 600;
    opacity: 1;
}

@media (max-width: 768px) {
    .logos-section {
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .logos-title {
        margin-bottom: 20px;
    }

    .logos {
        gap: 0;
    }

    .trusted-companies {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 18px;
        text-align: center;
        align-items: start;
        margin-top: 0;
    }

    .trusted-companies span {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        min-height: 48px;
        line-height: 1.4;
        padding: 6px 4px;
        word-break: break-word;
        white-space: normal;
    }

    .trusted-companies .highlight {
        grid-column: 1 / -1;
        margin-top: 6px;
    }
}

/* ============================= */
/* BUTTON */
/* ============================= */

.btn {
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    padding: 16px 36px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: .3s;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, .3);
}

/* ============================= */
/* SYSTEMS SECTION */
/* ============================= */

#systems {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}


#systems h2 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

#systems h2 span {
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(147, 51, 234, 0.38));
}

.services-text-block {
    max-width: 540px;
    margin: 0 auto 52px;
    text-align: center;
}

.services-text-primary {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.82;
    letter-spacing: 0.1px;
    margin-bottom: 12px;
}

.services-text-secondary {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    opacity: 0.42;
    letter-spacing: 0.2px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Row 1: 3 cards evenly across 6 columns */
.services-container a:nth-child(1) { grid-column: 1 / span 2; }
.services-container a:nth-child(2) { grid-column: 3 / span 2; }
.services-container a:nth-child(3) { grid-column: 5 / span 2; }

/* Row 2: 2 cards centered — offset by 1 column each side */
.services-container a:nth-child(4) { grid-column: 2 / span 2; }
.services-container a:nth-child(5) { grid-column: 4 / span 2; }

/* CARDS */

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 36px 32px;
    min-height: 220px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(124, 92, 255, 0.7);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(124, 92, 255, 0.25),
        0 0 60px rgba(59, 130, 246, 0.12);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.65;
    flex: 1;
    margin-bottom: 0;
}

.product-meta {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================= */
/* ENGAGEMENT MODEL */
/* ============================= */

.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 40px;
    position: relative;
    text-align: left;
    transition: 0.2s ease-out;
}

.pricing-card:hover {
    transition-delay: 0s !important;
    transform: translateY(-8px);
    border: 1px solid rgba(147, 51, 234, .6);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .5),
        0 0 30px rgba(147, 51, 234, .25);
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes content below it to the bottom */
}

.pricing-features li {
    margin-bottom: 12px;
    font-size: 15px;
    opacity: 0.85;
    position: relative;
    padding-left: 24px;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9333ea;
    font-weight: bold;
}

.pricing-card p {
    margin-bottom: 25px;
    /* Spacing before button */
}

.pricing-card .btn {
    text-align: center;
    width: 100%;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

@media(max-width: 1024px) {
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ============================= */
/* ABOUT */
/* ============================= */

.about-section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.about-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center,
            rgba(99, 102, 241, 0.07) 0%,
            rgba(147, 51, 234, 0.05) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding: 72px 64px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 0 60px rgba(15, 23, 42, 0.4);
}

.about-left h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.2px;
    margin-bottom: 0;
}

.about-left h2 span {
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 16px rgba(147, 51, 234, 0.35));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.about-right {
    max-width: 340px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    padding-left: 36px;
}

.about-right p {
    font-size: 15px;
    line-height: 1.85;
    opacity: 0.72;
    margin-bottom: 24px;
}

.about-right p:last-child {
    margin-bottom: 0;
}

.about-mission {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.42;
    letter-spacing: 0.1px;
}

.about-momentum {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.6;
    letter-spacing: 0.1px;
    font-style: italic;
}

/* ============================= */
/* CONTACT */
/* ============================= */

.contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-wrapper {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-intro {
    opacity: .85;
    margin-bottom: 30px;
}

.contact-section h2 {
    color: #ffffff;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.75);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* select color handled globally above */

/* ============================= */
/* FORM */
/* ============================= */

.contact-form {
    max-width: 520px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-full {
    width: 100%;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: white;
}

/* ── Select / dropdown ─────────────────────────────────── */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0f172a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c5cff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Options inherit dark bg in browsers that support it */
select option {
    background-color: #0f172a;
    color: rgba(255, 255, 255, 0.85);
}

select option:checked,
select option:hover {
    background-color: #1e1b4b;
    color: white;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================= */
/* SCROLL FADE-IN */
/* ============================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Hero entry animation (plays on load, no observer needed) */
@keyframes heroEntry {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    animation: heroEntry 0.5s ease-out 0.1s both;
}

.hero p {
    animation: heroEntry 0.5s ease-out 0.25s both;
}

.hero .btn {
    animation: heroEntry 0.45s ease-out 0.4s both;
}

.hero-proof {
    animation: heroEntry 0.45s ease-out 0.5s both;
}

#systems h2.fade-in                       { transition-delay: 0s; }
#systems .services-text-block.fade-in     { transition-delay: 0.08s; }
.services-container .fade-in:nth-child(1) { transition-delay: 0.08s; }
.services-container .fade-in:nth-child(2) { transition-delay: 0.16s; }
.services-container .fade-in:nth-child(3) { transition-delay: 0.24s; }
.services-container .fade-in:nth-child(4) { transition-delay: 0.32s; }
.services-container .fade-in:nth-child(5) { transition-delay: 0.40s; }

@media (max-width: 600px) {
    .services-container { grid-template-columns: 1fr; }
    .services-container a:nth-child(n) { grid-column: auto; }
}
.about-left.fade-in                       { transition-delay: 0s; }
.about-right.fade-in                      { transition-delay: 0.1s; }
#contact h2.fade-in                       { transition-delay: 0s; }
#contact .contact-intro.fade-in           { transition-delay: 0.08s; }
#contact .contact-form.fade-in            { transition-delay: 0.16s; }

/* ============================= */
/* GRADIENT HEADING */
/* ============================= */

.gradient-heading {
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(147, 51, 234, 0.55));
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(90deg, #5aa9ff 0%, #7c5cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================= */
/* SERVICES PAGE */
/* ============================= */

.service-section-label {
    display: inline-block;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #9333ea;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.subsection-heading {
    text-align: center;
    font-size: 28px;
    margin: 80px 0 40px;
}

.section-divider {
    max-width: 1100px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.3),
            rgba(147, 51, 234, 0.3),
            transparent);
}

/* Used on services.html as section description */
.systems-subtitle {
    max-width: 620px;
    margin: 16px auto 0;
    font-size: 17px;
    line-height: 1.75;
    opacity: 0.72;
    text-align: center;
}

.services-nav-pills {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-pill {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

.service-pill:hover {
    border-color: rgba(147, 51, 234, 0.6);
    background: rgba(147, 51, 234, 0.1);
    transform: translateY(-2px);
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media(max-width:992px) {

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

    .services-container a:nth-child(n) {
        grid-column: auto;
    }

    #systems h2 {
        font-size: 42px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-right {
        max-width: 100%;
        border-left: none;
        padding-left: 0;
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .about-section .container {
        padding: 48px 28px;
    }

    .form-row {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 42px;
    }

    header {
        padding: 16px 25px;
    }

}

/* ============================= */
/* PREMIUM UI ENHANCEMENTS */
/* ============================= */

/* Layered glow on button hover — builds on existing shadow */
.btn:hover {
    box-shadow:
        0 10px 30px rgba(147, 51, 234, 0.3),
        0 0 20px rgba(139, 92, 246, 0.35),
        0 0 40px rgba(59, 130, 246, 0.15);
}

/* Animated underline on nav links */
nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Form field focus glow */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Letter-spacing polish for contact heading */
.contact-wrapper h2 {
    letter-spacing: -0.3px;
}

/* Logos section entrance */
.logos-section.fade-in {
    transition-delay: 0.1s;
}

/* ============================= */
/* CHAT WIDGET */
/* ============================= */

/* Floating toggle button */
.chat-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(147, 51, 234, 0.6);
}

/* Chat panel */
.zyan-chat {
    position: fixed;
    bottom: 92px;
    right: 28px;
    width: 320px;
    max-height: 440px;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 9998;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(124, 92, 255, 0.12);
    overflow: hidden;
}

.zyan-chat.open {
    display: flex;
}

/* Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(90deg,
        rgba(59, 130, 246, 0.14),
        rgba(147, 51, 234, 0.14));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.chat-close:hover {
    color: white;
}

/* Messages area */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.chat-body::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

/* Message bubbles */
.chat-msg {
    max-width: 84%;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-msg.user {
    background: linear-gradient(90deg, #3b82f6, #7c5cff);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom-left-radius: 3px;
}

/* Input row */
.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-input-row input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.chat-input-row input:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.5);
}

.chat-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.chat-send {
    padding: 9px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-send:hover {
    opacity: 0.85;
}

/* ── Chat user-info modal ──────────────────────── */
.chat-info-modal {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 22px 18px 18px;
    background: rgba(15, 23, 42, 0.98);
    position: absolute;
    inset: 58px 0 0 0;
    z-index: 10;
    border-radius: 0 0 16px 16px;
}

.chat-info-modal.visible {
    display: flex;
}

.chat-info-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.chat-info-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 4px;
    line-height: 1.5;
}

.chat-info-modal input {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.chat-info-modal input:focus {
    outline: none;
    border-color: rgba(124, 92, 255, 0.5);
}

.chat-info-modal input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.chat-info-btn {
    margin-top: 4px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-info-btn:hover { opacity: 0.85; }


/* Logos section entrance */
.logos-section.fade-in {
    transition-delay: 0.1s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 60px 20px 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #5aa9ff 0%, #7c5cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.28);
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}


/* ─────────────────────────────────────────────────────────────────────────────
   LEGAL PAGES
───────────────────────────────────────────────────────────────────────────── */

/* .legal-wrapper kept for backward compat; .legal-container is the live version */
.legal-wrapper,
.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 140px 20px 100px;
    /* never rely on JS — always visible */
    opacity: 1;
    transform: none;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.2s;
}

.legal-back:hover { color: white; }
.legal-back svg { flex-shrink: 0; }

.legal-header {
    margin-bottom: 56px;
}

.legal-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7c5cff;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.legal-header h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.legal-updated {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.legal-divider {
    height: 1px;
    background: linear-gradient(90deg,
        rgba(59, 130, 246, 0.3),
        rgba(124, 92, 255, 0.3),
        transparent);
    margin-bottom: 56px;
}

.legal-body {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
}

.legal-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 48px 0 14px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
    margin-bottom: 18px;
}

.legal-body ul {
    margin: 0 0 18px 20px;
    padding: 0;
}

.legal-body ul li {
    margin-bottom: 8px;
}

.legal-body a {
    color: #5aa9ff;
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

.legal-footer-note {
    margin-top: 64px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}


/* ─────────────────────────────────────────────────────────────────────────────
   SERVICES GATEWAY  (services.html)
───────────────────────────────────────────────────────────────────────────── */

.gateway-hero {
    padding: 160px 20px 80px;
    text-align: center;
}

.gateway-hero h1 {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gateway-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.gateway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 120px;
}

.gateway-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 44px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

/* gradient glow border on hover */
.gateway-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(90,169,255,0.5), rgba(124,92,255,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.gateway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 40px rgba(124,92,255,0.15);
    border-color: transparent;
}

.gateway-card:hover::before { opacity: 1; }

.gateway-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(90,169,255,0.15), rgba(124,92,255,0.15));
    border: 1px solid rgba(124,92,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.gateway-icon svg {
    width: 22px;
    height: 22px;
    stroke: #7c5cff;
}

.gateway-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.gateway-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    flex: 1;
    margin-bottom: 32px;
}

.gateway-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7c5cff;
    letter-spacing: 0.3px;
    transition: gap 0.2s ease;
}

.gateway-card:hover .gateway-arrow { gap: 12px; }

@media (max-width: 1024px) {
    .gateway-grid { grid-template-columns: 1fr; max-width: 520px; }
    .gateway-hero h1 { font-size: 40px; }
}

@media (max-width: 640px) {
    .gateway-hero { padding-top: 120px; }
    .gateway-hero h1 { font-size: 32px; }
    .gateway-card { padding: 32px 24px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SERVICE DETAIL PAGES  (website.html / ecommerce.html / saas.html)
───────────────────────────────────────────────────────────────────────────── */

/* Hero */
.svc-hero {
    padding: 160px 20px 100px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.svc-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7c5cff;
    background: rgba(124,92,255,0.12);
    border: 1px solid rgba(124,92,255,0.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.svc-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.svc-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 580px;
    margin: 0 auto 36px;
}

.svc-hero .btn { display: inline-block; }

/* Demo section */
.svc-demo {
    padding: 0 20px 100px;
}

.svc-demo-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 32px;
}

/* Browser chrome wrapper */
.demo-browser {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: visible;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(124,92,255,0.08);
}

.demo-bar {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.demo-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.demo-dot.red   { background: #ff5f57; }
.demo-dot.yel   { background: #febc2e; }
.demo-dot.grn   { background: #28c840; }

.demo-url {
    margin-left: 12px;
    flex: 1;
    height: 26px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    max-width: 340px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

/* ── Website demo UI ── */
.dw-wrap { background: #0a0f1e; }

.dw-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dw-logo {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(90deg,#5aa9ff,#7c5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dw-nav-links {
    display: flex;
    gap: 24px;
}

.dw-nav-links span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.dw-hero-block {
    padding: 52px 28px 44px;
    text-align: center;
    background: linear-gradient(180deg, rgba(124,92,255,0.06) 0%, transparent 100%);
}

.dw-hero-block h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg,#5aa9ff,#7c5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dw-hero-block p {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}

.dw-cta {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(90deg,#3b82f6,#7c5cff);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    cursor: default;
}

.dw-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 28px 36px;
}

.dw-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 16px;
}

.dw-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg,rgba(90,169,255,0.2),rgba(124,92,255,0.2));
    margin-bottom: 10px;
}

.dw-card h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.85);
}

.dw-card p {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
}

/* ── Ecommerce demo UI ── */
.de-wrap { background: #08101e; }

.de-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.de-logo {
    font-size: 15px;
    font-weight: 800;
    color: white;
}

.de-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.de-nav-right span {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.de-cart-badge {
    position: relative;
    display: inline-block;
}

.de-cart-badge svg {
    stroke: rgba(255,255,255,0.6);
    width: 18px;
    height: 18px;
}

.de-cart-badge::after {
    content: '3';
    position: absolute;
    top: -6px;
    right: -8px;
    background: #7c5cff;
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 15px;
    text-align: center;
}

.de-banner {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(124,92,255,0.12));
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.de-banner h3 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.de-banner p {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.de-banner-btn {
    padding: 8px 18px;
    background: linear-gradient(90deg,#3b82f6,#7c5cff);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    cursor: default;
    white-space: nowrap;
}

.de-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 24px 28px 28px;
}

.de-product {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
}

.de-img {
    height: 90px;
    background: linear-gradient(135deg,
        rgba(59,130,246,0.15) 0%,
        rgba(124,92,255,0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.de-info {
    padding: 12px;
}

.de-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
}

.de-price {
    font-size: 14px;
    font-weight: 700;
    color: #5aa9ff;
    margin-bottom: 10px;
}

.de-add {
    width: 100%;
    padding: 7px 0;
    background: rgba(124,92,255,0.2);
    border: 1px solid rgba(124,92,255,0.3);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    color: #b39dff;
    cursor: default;
}

/* ── SaaS demo UI ── */
.ds-wrap {
    background: #060d1a;
    display: flex;
    min-height: 340px;
}

.ds-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}

.ds-sidebar-logo {
    padding: 0 20px 20px;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(90deg,#5aa9ff,#7c5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 12px;
}

.ds-nav-item {
    padding: 10px 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.ds-nav-item.active {
    color: rgba(255,255,255,0.85);
    background: rgba(124,92,255,0.12);
    border-right: 2px solid #7c5cff;
}

.ds-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.ds-main {
    flex: 1;
    padding: 20px 24px;
    overflow: hidden;
}

.ds-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ds-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px;
}

.ds-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ds-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.ds-stat-delta {
    font-size: 10px;
    color: #34d399;
    margin-top: 2px;
}

.ds-chart-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.ds-chart-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}

.ds-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.ds-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #7c5cff, #3b82f6);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ds-bar:hover { opacity: 1; }

.ds-table {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.ds-table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ds-table-head span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.ds-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ds-table-row:last-child { border-bottom: none; }

.ds-table-row span {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}

.ds-table-row .ds-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.ds-badge.active { background: rgba(52,211,153,0.15); color: #34d399; }
.ds-badge.trial  { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.ds-badge.new    { background: rgba(124,92,255,0.15);  color: #a78bfa; }

/* Features section */
.svc-features {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.svc-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.svc-section-sub {
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 52px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

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

.feature-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-item:hover {
    border-color: rgba(124,92,255,0.3);
    transform: translateY(-4px);
}

.feature-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #7c5cff;
    margin-bottom: 14px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.feature-item p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

/* Process section */
.svc-process {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    margin-top: 48px;
}

.process-track::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(90deg, rgba(90,169,255,0.3), rgba(124,92,255,0.3));
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.process-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(124,92,255,0.15));
    border: 1px solid rgba(124,92,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #7c5cff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background-color: #0f172a;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.process-step p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
}

/* CTA section */
.svc-cta {
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.svc-cta h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.svc-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid--2col { grid-template-columns: repeat(2, 1fr); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   BLOG PAGE  (blog.html)
───────────────────────────────────────────────────────────────────────────── */

.blog-hero {
    padding: 160px 20px 72px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Featured post */
.blog-featured-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-featured:hover {
    transform: translateY(-6px);
    border-color: rgba(124,92,255,0.5);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px rgba(124,92,255,0.15);
}

.blog-featured-img {
    min-height: 320px;
    background: linear-gradient(135deg, #1e1065 0%, #3b0764 40%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-featured-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(124,92,255,0.4) 0%, transparent 65%);
}

.blog-featured-img-label {
    position: relative;
    font-size: 72px;
    z-index: 1;
}

/* AI neural-network SVG illustration */
.ai-net-svg {
    width: 70%;
    max-width: 288px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(124,92,255,0.4));
}

@keyframes ai-pulse {
    0%   { transform: scale(0.88); opacity: 0.7;  }
    100% { transform: scale(1.4);  opacity: 0;    }
}

.ai-ring {
    transform-box: fill-box;
    transform-origin: center center;
}

.ai-ring-1 { animation: ai-pulse 2.8s ease-out infinite; }
.ai-ring-2 { animation: ai-pulse 2.8s ease-out 1.4s infinite; }

/* Featured-post CTA span — avoids invalid nested <a> */
.blog-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(90deg, #3b82f6, #7c5cff);
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 4px;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blog-featured:hover .blog-featured-cta {
    opacity: 0.88;
    box-shadow: 0 8px 24px rgba(124,92,255,0.38);
    transform: translateY(-2px);
}

.blog-featured-body {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.blog-tag.ai        { color: #a78bfa; background: rgba(124,92,255,0.15); border: 1px solid rgba(124,92,255,0.25); }
.blog-tag.saas      { color: #67e8f9; background: rgba(6,182,212,0.12);  border: 1px solid rgba(6,182,212,0.22); }
.blog-tag.webdev    { color: #6ee7b7; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.22); }
.blog-tag.automation{ color: #fcd34d; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.22); }

.blog-featured-body h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    color: white;
}

.blog-featured-body p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    flex: 1;
}

.blog-featured-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 24px;
}

/* Blog grid */
.blog-grid-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.blog-grid-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 28px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,92,255,0.45);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 28px rgba(124,92,255,0.14);
}

.blog-card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
    overflow: hidden;
}

.blog-card-img.ai         { background: linear-gradient(135deg,#1e1065,#3b0764); }
.blog-card-img.saas       { background: linear-gradient(135deg,#0c1445,#0d4462); }
.blog-card-img.webdev     { background: linear-gradient(135deg,#052e16,#0c4a6e); }
.blog-card-img.automation { background: linear-gradient(135deg,#1c1208,#451a03); }

.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.7) 100%);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.blog-card-date {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

.blog-card h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: white;
}

.blog-card p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.52);
    flex: 1;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7c5cff;
    transition: gap 0.2s;
}

.blog-card:hover .blog-read-more { gap: 10px; }

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2,1fr); }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-img { min-height: 200px; }
    .blog-hero h1 { font-size: 40px; }
}

@media (max-width: 640px) {
    .blog-hero h1 { font-size: 32px; }
    .blog-hero { padding-top: 120px; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   BLOG ARTICLE PAGES
───────────────────────────────────────────────────────────────────────────── */

.article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 44px;
    transition: color 0.2s;
}

.article-back:hover { color: white; }
.article-back svg { flex-shrink: 0; }

.article-hero-img {
    width: 100%;
    height: 280px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
}

.article-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124,92,255,0.3) 0%, transparent 70%);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-date {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.article-read-time {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.article-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.52);
    margin-bottom: 40px;
    border-left: 3px solid rgba(124,92,255,0.5);
    padding-left: 18px;
}

.article-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(59,130,246,0.25), rgba(124,92,255,0.25), transparent);
    margin-bottom: 48px;
}

.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,0.78);
}

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin: 52px 0 16px;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: white;
    margin: 36px 0 12px;
}

.article-body p { margin-bottom: 22px; }

.article-body ul, .article-body ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.article-body li { margin-bottom: 9px; }

.article-body strong { color: white; }

.article-body a { color: #5aa9ff; text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

.article-callout {
    background: rgba(124,92,255,0.08);
    border: 1px solid rgba(124,92,255,0.2);
    border-left: 3px solid #7c5cff;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* Article CTA box */
.article-cta-box {
    margin-top: 72px;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(124,92,255,0.1) 100%);
    border: 1px solid rgba(124,92,255,0.2);
    border-radius: 20px;
    text-align: center;
}

.article-cta-box h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.article-cta-box p {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}


/* ═════════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — single consolidated block
   Breakpoints: 768px (tablet/phone) · 480px (small phone)
═════════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger button ─────────────────────────────────────────────────────── */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── 768 px ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    html, body { overflow-x: hidden; max-width: 100%; }
    html { scroll-behavior: smooth; scroll-padding-top: 70px; }
    .section { scroll-margin-top: 70px; }
    #services { scroll-margin-top: 70px; }

    /* ── Nav ── */
    .hamburger {
        display: flex;
        position: fixed;
        top: 14px;
        right: 20px;
        z-index: 1300;
    }

    header {
        padding: 14px 20px;
        background: rgba(9, 14, 26, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        overflow: visible;
    }

    body.nav-lock header {
        background: rgba(9, 14, 26, 1);
    }

    /* full-screen overlay, hidden by default via transform */
    header nav,
    #nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #090e1a;
        z-index: 1200;
        padding: 80px 20px 20px;
        overflow-y: hidden;
        overflow-x: hidden;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.25s ease;
    }

    header nav.nav-open,
    #nav-menu.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    header nav a,
    #nav-menu a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 18px 0;
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0;
        text-decoration: none;
        background: transparent;
        transition: background 0.18s ease;
    }

    header nav a:last-child { border-bottom: none; }
    header nav a:active { background: rgba(255, 255, 255, 0.06); }
    header nav a::after { display: none !important; }

    body.nav-lock { overflow: hidden; }

    /* ── Section spacing ── */
    .section { padding: 56px 16px; }
    p { line-height: 1.75; }
    .logo { font-size: 18px; }

    /* ── Hero ── */
    .hero { padding: 130px 20px 64px; min-height: auto; }
    .hero h1 { font-size: clamp(28px, 8vw, 48px); }
    .hero p  { font-size: 15px; margin-top: 18px; }

    /* ── Headings ── */
    h1 { font-size: clamp(26px, 7vw, 44px); }
    h2 { font-size: clamp(22px, 5.5vw, 36px); }

    /* ── Grids ── */
    .services-container { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .pricing-container { grid-template-columns: 1fr; }

    /* ── Forms ── */
    input, select, textarea { font-size: 16px !important; width: 100%; }
    .form-row { flex-direction: column; gap: 0; }

    /* ── Buttons ── */
    .btn { padding: 13px 26px; font-size: 14px; }

    /* ── Chat widget ── */
    .zyan-chat {
        width: calc(100% - 24px) !important;
        right: 12px !important;
        bottom: 80px !important;
        max-width: 360px;
    }
    .chat-toggle { right: 16px; bottom: 16px; }

    /* ── Overflow / clipping ── */
    html, body { max-width: 100%; overflow-x: hidden; }

    .section, .container {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .svc-hero, .svc-demo, .svc-features, .svc-process, .svc-cta {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .about-section .container {
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
        padding: 32px 20px;
    }

    .service-card, .pricing-card, .gateway-card,
    .feature-item, .blog-card, .blog-featured {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* demo browser: scrolls horizontally, never clips vertically */
    .demo-browser {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .dw-wrap, .de-wrap, .ds-wrap {
        max-width: 100%;
        width: 100%;
        overflow-x: clip;
    }

    /* disable scale() — prevents viewport overflow on tap */
    .service-card:hover { transform: none; }
    .gateway-card:hover { transform: none; }

    /* ── Gateway ── */
    .gateway-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
    .gateway-hero { padding: 120px 16px 52px; }
    .gateway-hero h1 { font-size: clamp(26px, 8vw, 44px); }

    /* ── Service detail pages ── */
    .svc-hero { padding: 120px 16px 72px; }
    .svc-hero h1 { font-size: clamp(26px, 8vw, 44px); }
    .svc-demo { padding-left: 16px; padding-right: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .features-grid--2col { grid-template-columns: 1fr; }
    .process-track { grid-template-columns: 1fr; gap: 32px; }
    .process-track::before { display: none; }
    .svc-cta h2 { font-size: 28px; }

    /* ── Demo UI elements ── */
    .dw-cards { grid-template-columns: 1fr; }
    .dw-nav-links { display: none; }
    .de-products { grid-template-columns: repeat(2, 1fr); }
    .de-banner { flex-direction: column; gap: 16px; }
    .ds-sidebar { display: none; }
    .ds-stats { grid-template-columns: 1fr; }

    /* ── Blog ── */
    .blog-hero { padding: 120px 16px 52px; }
    .blog-hero h1 { font-size: clamp(26px, 8vw, 44px); }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-img { min-height: 200px; }
    .blog-featured-body { padding: 28px 24px; }
    .blog-featured-body h2 { font-size: 22px; }
    .ai-net-svg { width: 54%; max-width: 200px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-featured-wrap, .blog-grid-wrap { padding-left: 16px; padding-right: 16px; }
    .blog-card-img { height: 130px; }

    /* ── Footer ── */
    .site-footer { margin-top: 40px; padding: 40px 20px 32px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .footer-legal-links { justify-content: center; }
    .footer-brand p { max-width: 100%; }

    /* ── Legal pages ── */
    .legal-header h1 { font-size: 32px; }
    .legal-container, .legal-wrapper { padding: 110px 16px 72px; }

    /* ── Article pages ── */
    .article-wrap { padding: 110px 16px 72px; }
    .article-title { font-size: clamp(22px, 6vw, 36px); }
    .article-excerpt { font-size: 15px; }
    .article-body { font-size: 15px; }
    .article-hero-img { height: 160px; font-size: 52px; }
    .article-cta-box { padding: 32px 24px; }
    .article-cta-box h2 { font-size: 24px; }
}

/* ── 480 px (small phones) ────────────────────────────────────────────────── */
@media (max-width: 480px) {

    header { padding: 12px 16px; }
    .hamburger { top: 12px; right: 16px; }
    header nav { padding-top: 60px; }
    header nav a { font-size: 18px; padding: 18px 24px; }

    .hero h1 { font-size: clamp(24px, 9vw, 34px); }
    .hero p  { font-size: 14px; }

    .section { padding: 48px 14px; }
    .service-card { padding: 24px 20px; }

    .btn { width: 100%; text-align: center; }
    .gateway-arrow, .blog-read-more, .article-back, .legal-back { width: auto; }

    .svc-hero h1 { font-size: clamp(22px, 9vw, 32px); }
    .svc-cta h2  { font-size: 24px; }
    .article-cta-box { padding: 28px 18px; }

    .footer-inner { padding: 0 4px; }

    .blog-hero h1 { font-size: clamp(22px, 9vw, 32px); }
    .gateway-card { padding: 28px 20px; }

    .demo-bar { padding: 10px 12px; }
    .demo-url { display: none; }
}

