/* ============================================================
   LANDING PAGE — Obsidian Precision
   Advanced commercial sections
   ============================================================ */

/* ── Shared section primitives ── */
.landing-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.landing-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #d4940a;
    margin-bottom: 0.6rem;
}

.landing-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1d23;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.landing-separator {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.landing-separator span {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #d4940a);
    border-radius: 2px;
}

/* Scroll reveal base */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-aos]:nth-child(2) { transition-delay: 0.1s; }
[data-aos]:nth-child(3) { transition-delay: 0.2s; }
[data-aos]:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   SERVICES SHOWCASE
   ============================================================ */
.landing-services {
    padding: 5rem 0;
    background: #fff;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.service-showcase {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: #f7f8fc;
    border: 1px solid #edf2f7;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.service-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e3a5f, #d4940a);
    opacity: 0;
    transition: opacity 0.35s;
}

.service-showcase:hover {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(15, 36, 64, 0.1);
    transform: translateY(-4px);
}

.service-showcase:hover::before {
    opacity: 1;
}

.service-showcase-icon {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08), rgba(30, 58, 95, 0.03));
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase-icon i {
    font-size: 1.4rem;
    color: #1e3a5f;
    position: relative;
    z-index: 2;
    transition: all 0.35s;
}

.icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a5f, #2a5a8f);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase:hover .icon-pulse {
    opacity: 1;
    transform: scale(1);
}

.service-showcase:hover .service-showcase-icon i {
    color: #fff;
}

.service-showcase-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1d23;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.service-showcase-content p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.service-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-tags li {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(30, 58, 95, 0.06);
    color: #1e3a5f;
    letter-spacing: 0.02em;
}

.service-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s;
}

.service-link i {
    font-size: 0.75rem;
    transition: transform 0.25s;
}

.service-link:hover {
    color: #d4940a;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ============================================================
   WHY US — Cards + Stats
   ============================================================ */
.why-us {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f7f8fc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 148, 10, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.why-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #edf2f7;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #d4940a);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 36, 64, 0.1);
    border-color: transparent;
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-card-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(30, 58, 95, 0.04);
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
    transition: color 0.35s;
}

.why-card:hover .why-card-number {
    color: rgba(212, 148, 10, 0.08);
}

.why-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08), rgba(30, 58, 95, 0.03));
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card-icon i {
    font-size: 1.3rem;
    color: #1e3a5f;
    transition: all 0.35s;
}

.why-card:hover .why-card-icon {
    background: linear-gradient(135deg, #1e3a5f, #2a5a8f);
    transform: scale(1.1);
}

.why-card:hover .why-card-icon i {
    color: #fff;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1d23;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.why-card p {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.55;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f2440 0%, #1e3a5f 50%, #1a4a7a 100%);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(212, 148, 10, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 50%, rgba(142, 197, 252, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #d4940a;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================================
   TECH MARQUEE (simple)
   ============================================================ */
.tech-section {
    padding: 4rem 0;
    background: #fff;
    overflow: hidden;
}

.tech-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

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

.tech-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff, transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent, #fff);
}

.tech-track {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.tech-logo {
    flex-shrink: 0;
    width: 80px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s;
}

.tech-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

.tech-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   CLIENTS — Dark showcase + glass cards + particles
   ============================================================ */
.clients-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f2440 0%, #152c47 40%, #1e3a5f 100%);
    overflow: hidden;
    position: relative;
}

.clients-label { color: #f0b429 !important; }
.clients-title { color: #fff !important; }
.clients-sep { background: linear-gradient(90deg, #d4940a, #f0b429) !important; }

.clients-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 520px;
    margin: 0.5rem auto 0;
    font-weight: 300;
}

/* Particles */
.clients-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.clients-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 148, 10, 0.3);
    animation: clientParticle 12s ease-in-out infinite;
}

.clients-particles .particle:nth-child(1) { top: 12%; left: 8%;  animation-delay: 0s;  animation-duration: 14s; }
.clients-particles .particle:nth-child(2) { top: 65%; left: 88%; animation-delay: 2s;  animation-duration: 10s; width: 3px; height: 3px; background: rgba(142, 197, 252, 0.25); }
.clients-particles .particle:nth-child(3) { top: 82%; left: 25%; animation-delay: 4s;  animation-duration: 16s; width: 5px; height: 5px; }
.clients-particles .particle:nth-child(4) { top: 20%; left: 72%; animation-delay: 1s;  animation-duration: 11s; width: 3px; height: 3px; background: rgba(142, 197, 252, 0.2); }
.clients-particles .particle:nth-child(5) { top: 45%; left: 45%; animation-delay: 3s;  animation-duration: 13s; width: 6px; height: 6px; background: rgba(212, 148, 10, 0.15); }
.clients-particles .particle:nth-child(6) { top: 35%; left: 15%; animation-delay: 5s;  animation-duration: 15s; width: 4px; height: 4px; background: rgba(142, 197, 252, 0.15); }

@keyframes clientParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate(50px, -70px) scale(1.4); opacity: 0.7; }
    90%  { opacity: 1; }
}

/* Marquee */
.clients-marquee {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0;
}

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

.clients-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #0f2440 0%, transparent 100%);
}

.clients-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #1e3a5f 100%);
}

.clients-track {
    display: flex;
    gap: 1.5rem;
    animation: clientsScroll 40s linear infinite;
    width: max-content;
}

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

/* Glass cards */
.client-card {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: default;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Animated glow border */
.client-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 148, 10, 0), rgba(142, 197, 252, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.45s;
    pointer-events: none;
}

/* Shine sweep */
.client-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.06);
    box-shadow:
        0 0 24px rgba(212, 148, 10, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.3);
}

.client-card:hover::before {
    background: linear-gradient(135deg, rgba(212, 148, 10, 0.5), rgba(142, 197, 252, 0.35));
}

.client-card:hover::after {
    left: 125%;
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.45);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-card:hover img {
    filter: brightness(1) opacity(1);
    transform: scale(1.08);
}

@keyframes clientsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-section {
    padding: 5rem 0;
    background: #f7f8fc;
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1e3a5f, #d4940a, #0d9668);
    border-radius: 2px;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-dot {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(15, 36, 64, 0.08);
}

.process-dot span {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a5f;
    transition: color 0.35s;
}

.process-step.revealed .process-dot {
    background: linear-gradient(135deg, #1e3a5f, #2a5a8f);
    border-color: #1e3a5f;
    transform: scale(1.05);
}

.process-step.revealed .process-dot span {
    color: #fff;
}

.process-content {
    padding: 0.75rem 0;
}

.process-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1d23;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.process-content p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
}

/* ============================================================
   BLOG (landing context)
   ============================================================ */
.landing-blog {
    padding: 5rem 0;
    background: #fff;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.landing-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f2440, #1e3a5f, #1a4a7a);
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(42, 90, 143, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 20% 100%, rgba(212, 148, 10, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.landing-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.012) 80px, rgba(255,255,255,0.012) 81px),
        repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.012) 80px, rgba(255,255,255,0.012) 81px);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

/* CTA animated title */
.cta-title-animated .cta-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    color: #fff;
}

.cta-title-animated .cta-letter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #f0b429 20%,
        #ffffff 40%,
        #8ec5fc 60%,
        #f0b429 80%,
        #ffffff 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ctaTitleShimmer 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 12px rgba(240, 180, 41, 0.15));
}

.cta-title-animated .cta-letter.space {
    width: 0.3em;
}

@keyframes ctaTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.cta-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.25rem;
    }

    .service-showcase {
        flex-direction: column;
        text-align: center;
    }

    .service-tags {
        justify-content: center;
    }

    .service-link {
        justify-content: center;
    }

    .process-line {
        left: 20px;
    }

    .process-dot {
        width: 42px;
        height: 42px;
    }

    .process-dot span {
        font-size: 0.9rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .landing-title {
        font-size: 1.4rem;
    }

    .landing-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .landing-header {
        margin-bottom: 2rem;
    }

    .landing-services,
    .why-us,
    .tech-section,
    .clients-section,
    .process-section {
        padding: 3rem 0;
    }

    .service-showcase-icon {
        width: 56px;
        height: 56px;
    }

    .service-showcase-content h3 {
        font-size: 1.1rem;
    }

    .why-card {
        padding: 1.5rem;
    }

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

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

    .process-content h3 {
        font-size: 1rem;
    }

    .process-content p {
        font-size: 0.88rem;
    }

    .cta-inner h2 {
        font-size: 1.4rem;
    }

    .cta-inner p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .landing-title {
        font-size: 1.25rem;
    }

    .stats-bar {
        gap: 1rem 0.75rem;
        padding: 1.5rem 1rem;
    }

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