/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    z-index: 1;
}

/* Background image layer */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.35) saturate(1.2);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.3) 0%,
        rgba(5, 5, 5, 0.5) 40%,
        rgba(5, 5, 5, 0.8) 70%,
        rgba(5, 5, 5, 1) 100%
    );
}

/* Glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(108, 99, 255, 0.12);
    top: 10%;
    left: 20%;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 242, 255, 0.06);
    bottom: 20%;
    right: 15%;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--clr-cyan);
    margin-bottom: 28px;
    padding: 8px 20px;
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 50px;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-cyan);
    box-shadow: 0 0 12px var(--clr-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 28px;
    color: #ffffff;
    filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.08));
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.85;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.stats::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.3), transparent);
}

.stat-item {
    text-align: center;
    padding: 24px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-content {
    position: relative;
    z-index: 1;
}

.home-content-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SECTION: ABOUT (HOME)
   ============================================ */
.section-about {
    padding: 120px 24px;
    background-color: rgba(5, 5, 5, 0.88);
    position: relative;
    z-index: 1;
}

.section-about .container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* About visual — abstract grid */
.about-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 400px;
}

.about-grid-pattern {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
}

.about-grid-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.about-grid-pattern::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.about-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.about-badge-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-badge-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Floating tech labels */
.about-float-label {
    position: absolute;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    animation: floatDrift var(--float-dur, 6s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.about-float-label.era-legacy {
    font-size: 0.625rem;
    color: rgba(210, 160, 80, 0.5);
    background: rgba(210, 160, 80, 0.04);
    border: 1px solid rgba(210, 160, 80, 0.15);
}

.about-float-label.era-mid {
    font-size: 0.6875rem;
    color: rgba(100, 160, 220, 0.65);
    background: rgba(100, 160, 220, 0.05);
    border: 1px solid rgba(100, 160, 220, 0.18);
}

.about-float-label.era-recent {
    font-size: 0.75rem;
    color: rgba(52, 211, 153, 0.75);
    background: rgba(52, 211, 153, 0.05);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.about-float-label.era-modern {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 14px rgba(108, 99, 255, 0.2);
}

@keyframes floatDrift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(var(--dx1, 6px), var(--dy1, -10px)); }
    50%  { transform: translate(var(--dx2, -4px), var(--dy2, -16px)); }
    75%  { transform: translate(var(--dx3, 8px), var(--dy3, -6px)); }
    100% { transform: translate(0, 0); }
}

/* ============================================
   SECTION: SERVICES (HOME CARDS)
   ============================================ */
.section-services {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.3), transparent);
}

.section-services::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 580px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 44px 36px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-violet), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(108, 99, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(108, 99, 255, 0.06);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--clr-violet);
    stroke-width: 1.5;
    fill: none;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.service-features {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.service-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clr-violet);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(108, 99, 255, 0.6);
}

/* ============================================
   SECTION: PROCESS
   ============================================ */
.section-process {
    padding: 120px 24px;
    background-color: rgba(5, 5, 5, 0.88);
    position: relative;
    z-index: 1;
}

.process-container {
    max-width: 900px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 32px 16px;
}

.process-step-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-violet);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-number span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 50%;
    font-size: 0.875rem;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -12px;
    width: calc(100% - 76px);
    height: 1px;
    background: linear-gradient(90deg, rgba(108, 99, 255, 0.3), rgba(0, 242, 255, 0.1));
}

.process-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

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

/* ============================================
   SECTION: TRUST
   ============================================ */
.section-trust {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.trust-item {
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s ease;
}

.trust-item:hover {
    border-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-4px);
}

.trust-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.trust-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--clr-violet);
    stroke-width: 1.5;
    fill: none;
}

.trust-item h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.trust-item p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

/* ============================================
   SECTION: CTA
   ============================================ */
.section-cta {
    padding: 120px 24px;
    background-color: rgba(5, 5, 5, 0.88);
    position: relative;
    z-index: 1;
    text-align: center;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-cta .section-heading {
    margin-bottom: 20px;
}

.section-cta .section-text {
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   SECTION: CLIENTS — MARQUEE
   ============================================ */
.section-clients {
    padding: 80px 0 60px;
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 24px;
}

.clients-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 6px 0;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.clients-marquee-wrapper::before { left: 0;  background: linear-gradient(90deg, var(--clr-bg), transparent); }
.clients-marquee-wrapper::after  { right: 0; background: linear-gradient(270deg, var(--clr-bg), transparent); }

.clients-marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: clientsMarquee 28s linear infinite;
}

.clients-marquee-reverse {
    animation-direction: reverse;
    animation-duration: 34s;
}

.clients-marquee-wrapper:hover .clients-marquee-track {
    animation-play-state: paused;
}

@keyframes clientsMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 80px;
    cursor: default;
}

.client-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 64px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, transform .35s ease;
}

.client-card:hover .client-inner {
    border-color: rgba(108, 99, 255, 0.35);
    background: rgba(108, 99, 255, 0.07);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.15), inset 0 0 20px rgba(108, 99, 255, 0.04);
    transform: translateY(-3px) scale(1.04);
}

.client-inner::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.6), transparent);
    top: 0;
    opacity: 0;
    pointer-events: none;
}

.client-card:hover .client-inner::after {
    animation: clientScan .6s ease forwards;
}

@keyframes clientScan {
    0%   { top: 0%;   opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.client-logo {
    max-width: 118px;
    max-height: 40px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.8);
    opacity: 0.28;
    transition: opacity .4s ease, filter .4s ease;
}

.client-card[data-glow="blue"]:hover .client-logo {
    filter: grayscale(0) brightness(1.35) drop-shadow(0 0 10px rgba(0, 180, 255, 0.8)) drop-shadow(0 0 28px rgba(0, 242, 255, 0.4));
    opacity: 1;
}
.client-card[data-glow="white"]:hover .client-logo {
    filter: grayscale(0) brightness(1.35) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.25));
    opacity: 1;
}
.client-card[data-glow="bright"]:hover .client-logo {
    filter: grayscale(0) brightness(1.9) drop-shadow(0 0 10px rgba(0, 180, 255, 0.8)) drop-shadow(0 0 28px rgba(0, 242, 255, 0.4));
    opacity: 1;
}
.client-card[data-glow="invert"]:hover .client-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 32px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

.clients-note {
    margin: 48px auto 0;
    text-align: center;
    padding: 28px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    max-width: 600px;
}

.clients-note p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
}

.clients-note p span {
    color: rgba(108, 99, 255, 0.9);
    font-style: normal;
    font-weight: 400;
}

/* ============================================
   RESPONSIVE — HOME (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-glow-1,
    .hero-glow-2 {
        display: none;
    }

    .hero-tag {
        font-size: 0.625rem;
        margin-bottom: 20px;
        padding: 6px 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn-cta,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* Stats */
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        margin-top: 56px;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    /* About home */
    .section-about {
        padding: 80px 20px;
    }

    .section-about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-float-label {
        font-size: 0.6rem !important;
        padding: 3px 8px;
    }

    /* Services home */
    .section-services {
        padding: 80px 20px;
    }

    .section-title {
        margin-bottom: 12px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }

    /* Process */
    .section-process {
        padding: 80px 20px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-step {
        display: grid;
        grid-template-columns: 50px 1fr;
        text-align: left;
        padding: 24px 0;
        gap: 16px;
    }

    .process-step-number {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .process-step:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Trust */
    .section-trust {
        padding: 80px 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* CTA */
    .section-cta {
        padding: 80px 20px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.75rem;
    }

    .about-badge-number {
        font-size: 3rem;
    }

    .process-step {
        grid-template-columns: 40px 1fr;
    }
}
