/* ================================
   KlientsGrowth - Black & White Theme
   Connector OS Model Website
   ================================ */

/* CSS Variables */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    /* Brand Colors */
    --brand-green: #18522F;
    --brand-blue: #2B296B;
    --brand-violet: #84549C;
    --brand-orange: #E27550;
    --brand-cream: #FEFBF3;
    --brand-black: #1E2022;

    --font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Particle Network Background
   ================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ================================
   Navigation
   ================================ */
#navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    width: calc(100% - 2rem);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 28px;
    filter: none;
    /* Show original logo colors */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--gray-900);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav CTA Button - Brand gradient style */
.nav-links .btn-primary {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(24, 82, 47, 0.3);
}

.nav-links .btn-primary::after {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 100%);
}

.nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 82, 47, 0.4), 0 0 15px rgba(43, 41, 107, 0.3);
}

.nav-links .btn-primary:hover::after {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet) 100%);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 24px 24px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--gray-900);
}

.mobile-cta {
    text-align: center;
    margin-top: 1rem;
}

/* ================================
   Buttons - Gradient with Animated Border Glow
   ================================ */
.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 50%, var(--brand-violet) 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 100px;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue), var(--brand-violet), var(--brand-orange), var(--brand-green));
    background-size: 300% 300%;
    border-radius: 100px;
    z-index: -2;
    animation: gradientBorderSpin 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-blue) 50%, var(--brand-violet) 100%);
    border-radius: 100px;
    z-index: -1;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(24, 82, 47, 0.4),
        0 0 20px rgba(132, 84, 156, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet) 50%, var(--brand-orange) 100%);
}

@keyframes gradientBorderSpin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    z-index: 1;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    margin-bottom: 2rem;
}

.badge-icon {
    font-size: 0.875rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.badge span:last-child {
    font-size: 0.875rem;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    display: block;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.2em;
    /* Prevent layout shift */
}

.rotating-text {
    font-style: italic;
    position: relative;
}

/* Cursor effect for typing animation */
.rotating-text::after {
    content: '|';
    position: absolute;
    right: -0.1em;
    color: var(--white);
    animation: blink 0.7s infinite;
    font-style: normal;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.proof-amount {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-text {
    color: var(--gray-500);
}

.hero-cta {
    margin-bottom: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease 1s both;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gray-500);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

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

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ================================
   Partners Marquee Section
   ================================ */
.partners-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.partners-title {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.partners-marquee {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marqueeScroll 30s linear infinite;
}

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

.marquee-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 0 2.5rem;
}

.partner-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.9;
    /* Invert colors: White bg becomes black, Black text becomes white */
    filter: grayscale(100%) invert(1);
    /* Lighten blend mode hides the black background (originally white) */
    mix-blend-mode: lighten;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%) invert(1);
}

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

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

/* ================================
   Sections
   ================================ */
.section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ================================
   Video Placeholder
   ================================ */
.video-placeholder {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.video-container {
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    /* Slightly less than container to fit inside border if needed, or match */
}

.video-container:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.play-button {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--black);
    transition: all var(--transition-base);
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-container:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.video-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.video-subtext {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ================================
   Steps Grid
   ================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: all var(--transition-base);
    position: relative;
}

.step-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue), var(--brand-violet), var(--brand-orange));
    background-size: 300% 300%;
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: gradientBorderSpin 4s linear infinite;
}

.step-card:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(24, 82, 47, 0.15), 0 0 30px rgba(132, 84, 156, 0.1);
}

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

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ================================
   Features Grid
   ================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: all var(--transition-base);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet), var(--brand-orange), var(--brand-green));
    background-size: 300% 300%;
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: gradientBorderSpin 4s linear infinite;
}

.feature-card:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(43, 41, 107, 0.15), 0 0 30px rgba(226, 117, 80, 0.1);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gray-300);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ================================
   Industries Grid
   ================================ */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.industry-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--brand-violet), var(--brand-orange), var(--brand-green), var(--brand-blue));
    background-size: 300% 300%;
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: gradientBorderSpin 4s linear infinite;
}

.industry-card:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(132, 84, 156, 0.15), 0 0 30px rgba(24, 82, 47, 0.1);
}

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

.industry-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.industry-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.industry-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.industry-description {
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* ================================
   Testimonial
   ================================ */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    text-align: center;
}

.quote-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 2rem;
    color: var(--gray-600);
}

.quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: var(--gray-200);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
}

.author-company {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    padding: 8rem 2rem;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

/* ================================
   Sales Workflow Section
   ================================ */
.workflow-section {
    position: relative;
    padding: 8rem 2rem;
    background: var(--black);
    z-index: 1;
    overflow: hidden;
}

/* Subtle glow overlay */
.workflow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.workflow-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: normal;
}

.workflow-title .highlight {
    display: inline;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workflow-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.workflow-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
    align-items: stretch;
}

/* Workflow Cards */
.workflow-card {
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.workflow-card-primary {
    flex: 2.5;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.workflow-card-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Card glow effect */
.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.workflow-card-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

/* Workflow Steps Container */
.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0;
}

.workflow-steps-simple {
    justify-content: center;
    gap: 4rem;
}

/* Animated Line - Centered behind icons */
.workflow-line {
    position: absolute;
    top: calc(1rem + 24px - 1px);
    /* 1rem padding + half icon height - half line height */
    left: calc(50% / 6);
    /* Start from center of first icon (1/6 of container for 6 items) */
    right: calc(50% / 6);
    /* End at center of last icon */
    height: 2px;
    z-index: 0;
    overflow: hidden;
    /* Prevent any overflow */
}



.workflow-line-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 50%, transparent 50%);
    background-size: 12px 100%;
    /* Smaller dashes for smoother look */
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1200px 0;
        /* Use fixed pixel value divisible by background-size */
    }
}

/* Remove the old glow if we want just the dotted moving line, 
   but user might want both. Keeping glow but making line dotted. 
   If user wants ONLY dotted moving line, we can hide this.
   For now, I'll update the glow to be more subtle or remove it if 'moving dotted' is the main effect.
   The request says "it must be dotted moving line". 
   I will REMOVE the glow element styles below or make it transparent.
*/
.workflow-line-glow {
    display: none;
    /* Hide glow as per "dotted moving line" request usually implies the line itself */
}

/* Simple line for secondary card - positioned for 2 icons */
.workflow-line-simple {
    left: calc(25%);
    /* Start from center of first icon (50% / 2) */
    right: calc(25%);
    /* End at center of last icon */
}



/* Workflow Step */
.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 100px;
}

.workflow-step-simple {
    flex: unset;
    max-width: 80px;
}

.step-icon-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
    z-index: 2;
    /* Ensure on top of line */
}

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    /* Solid black background to completely hide line */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    /* Ensure stacking context */
}

.step-icon svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.workflow-step:hover .step-icon {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 0.35);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Step label */
.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    font-weight: 500;
    transition: color 0.3s ease;
}

.workflow-step:hover .step-label {
    color: rgba(255, 255, 255, 0.95);
}

/* Step highlight animation when glow passes */
.workflow-step.active .step-icon {
    transform: scale(1.15);
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.workflow-step.active .step-label {
    color: #fff;
}

/* Pause animation on hover */
.workflow-card:hover .workflow-line-glow {
    animation-play-state: paused;
}

/* Secondary card step styling */
.workflow-card-secondary .step-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.workflow-card-secondary .workflow-step:hover .step-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Workflow */
@media (max-width: 1024px) {
    .workflow-cards {
        flex-direction: column;
    }

    .workflow-card-primary,
    .workflow-card-secondary {
        flex: unset;
        width: 100%;
    }

    .workflow-steps-simple {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .workflow-section {
        padding: 5rem 1.5rem;
    }

    .workflow-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .workflow-step {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: 100px;
    }

    .workflow-line {
        display: none;
    }

    .workflow-card {
        padding: 2rem;
    }

    .workflow-card-title {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .workflow-step {
        flex: 0 0 calc(50% - 1rem);
    }

    .workflow-steps-simple {
        gap: 2rem;
    }

    .workflow-step-simple {
        flex: 0 0 auto;
    }
}

/* ================================
   Footer
   ================================ */
.footer {
    position: relative;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--gray-500);
    transition: all var(--transition-base);
    width: 24px;
    height: 24px;
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ================================
   Animations
   ================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for cards */
.steps-grid .step-card:nth-child(2) .reveal-up,
.features-grid .feature-card:nth-child(2) .reveal-up,
.industries-grid .industry-card:nth-child(2) .reveal-up {
    transition-delay: 0.1s;
}

.steps-grid .step-card:nth-child(3) .reveal-up,
.features-grid .feature-card:nth-child(3) .reveal-up,
.industries-grid .industry-card:nth-child(3) .reveal-up {
    transition-delay: 0.2s;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {

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

    /* Hide workflow line on tablet and smaller */
    .workflow-line {
        display: none;
    }

    /* Stack workflow cards vertically on tablet */
    .workflow-cards {
        flex-direction: column;
    }

    /* Wrap workflow steps into 3x2 grid on tablet */
    .workflow-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .workflow-step {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: none;
    }
}

@media (max-width: 768px) {

    /* Mobile Header adjustments */
    #navbar {
        top: 0.5rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
        max-width: none;
        border-radius: 20px;
    }

    .nav-container {
        padding: 0.625rem 1rem;
    }

    .logo-img {
        height: 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile menu dropdown */
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.5rem;
        border-radius: 16px;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-link {
        color: var(--gray-800);
        font-size: 0.95rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-link:last-of-type {
        border-bottom: none;
    }

    .mobile-nav-link:hover {
        color: var(--black);
    }

    .mobile-cta {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .btn-primary.mobile-cta {
        width: 100%;
        text-align: center;
        background: var(--black) !important;
        color: var(--white) !important;
        border: none;
    }

    .steps-grid,
    .features-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .testimonial-card,
    .cta-card {
        padding: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    /* Hide horizontal workflow line on mobile */
    .workflow-line {
        display: none;
    }

    /* Improve mobile hero text sizing */
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }

    .rotating-text {
        display: block;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .hero-proof {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================
   Connection Flow Animation Section
   ================================ */
.connection-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(24, 82, 47, 0.03) 50%, rgba(0, 0, 0, 0) 100%);
}

.connection-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    max-width: 1400px;
    margin: 0 auto;
}

.connection-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.connection-path {
    fill: none;
    stroke: url(#connectionGrad);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(24, 82, 47, 0.6));
    transition: opacity 0.3s ease;
}

.connection-path.draw {
    animation: drawConnectionLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0.85;
}

@keyframes drawConnectionLine {
    0% {
        stroke-dashoffset: 1000;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.connection-label {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.connection-label-left {
    left: 50px;
    top: 30px;
}

.connection-label-right {
    right: 50px;
    top: 30px;
}

.connection-node {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.connection-node.active {
    border-color: rgba(24, 82, 47, 0.6);
    box-shadow: 0 0 25px rgba(24, 82, 47, 0.3);
}

.connection-node svg {
    width: 22px;
    height: 22px;
    stroke: var(--gray-400);
    stroke-width: 1.5;
    fill: none;
}

/* Demand positions - aligned to SVG viewBox (1400x600) scaled to percentage */
.conn-d1 {
    left: 40px;
    top: 72px;
}

.conn-d2 {
    left: 100px;
    top: 192px;
}

.conn-d3 {
    left: 50px;
    top: 312px;
}

.conn-d4 {
    left: 110px;
    top: 432px;
}

/* Supply positions - mirrored */
.conn-s1 {
    right: 40px;
    top: 72px;
}

.conn-s2 {
    right: 100px;
    top: 192px;
}

.conn-s3 {
    right: 50px;
    top: 312px;
}

.conn-s4 {
    right: 110px;
    top: 432px;
}

.connection-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.connection-hub-card {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(24, 82, 47, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.connection-hub-card.pulse {
    box-shadow: 0 0 100px rgba(24, 82, 47, 0.4), 0 0 60px rgba(132, 84, 156, 0.2), 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.08);
}

.connection-hub-card img {
    width: 90px;
    height: auto;
}

.connection-notif {
    position: absolute;
    right: 160px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    backdrop-filter: blur(20px);
    z-index: 20;
    min-width: 220px;
}

.connection-notif.show {
    animation: connectionNotifIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes connectionNotifIn {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.conn-n1 {
    top: 60px;
}

.conn-n2 {
    top: 180px;
}

.conn-n3 {
    top: 300px;
}

.conn-n4 {
    top: 420px;
}

.connection-notif-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(135deg, #611f69, #4a154b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.connection-notif-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.connection-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #e01e5a;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.connection-notif-content {
    flex: 1;
}

.connection-notif-label {
    font-size: 9px;
    color: var(--gray-500);
}

.connection-notif-msg {
    font-size: 11px;
    font-weight: 500;
    color: var(--white);
}

.connection-notif-time {
    font-size: 9px;
    color: var(--gray-600);
}

.connection-cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.connection-cta.show {
    animation: connectionCtaIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes connectionCtaIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .connection-wrapper {
        height: 500px;
    }

    .connection-notif {
        display: none;
    }

    .conn-d1,
    .conn-d2,
    .conn-d3,
    .conn-d4 {
        left: 20px;
    }

    .conn-s1,
    .conn-s2,
    .conn-s3,
    .conn-s4 {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .connection-section {
        padding: 3rem 0;
    }

    .connection-wrapper {
        height: 400px;
    }

    .connection-hub-card {
        width: 80px;
        height: 80px;
    }

    .connection-hub-card img {
        width: 60px;
    }

    .connection-node {
        width: 36px;
        height: 36px;
    }

    .connection-node svg {
        width: 18px;
        height: 18px;
    }
}

/* ================================
   Case Studies Page & Section
   ================================ */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.case-study-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.case-study-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-study-header {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.case-study-gradient-1 {
    background: linear-gradient(135deg, #2B296B 0%, #84549C 100%);
}

.case-study-gradient-2 {
    background: linear-gradient(135deg, #18522F 0%, #2B296B 100%);
}

.case-study-gradient-3 {
    background: linear-gradient(135deg, #E27550 0%, #84549C 100%);
}

.case-study-gradient-4 {
    background: linear-gradient(135deg, #1E2022 0%, #525252 100%);
}

.case-study-gradient-5 {
    background: linear-gradient(135deg, #84549C 0%, #E27550 100%);
}

.case-study-gradient-6 {
    background: linear-gradient(135deg, #2B296B 0%, #18522F 100%);
}

.case-study-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.case-study-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-study-metric {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-study-client {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.case-study-desc {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition-base);
    margin-top: auto;
}

.case-study-link svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.case-study-link:hover {
    gap: 0.75rem;
}

.case-study-link:hover svg {
    transform: translateX(2px);
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-300);
}

.article-body h2 {
    font-size: 1.75rem;
    color: var(--white);
    margin: 3rem 0 1.5rem;
}

.article-body h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-type: none;
}

.article-body li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.article-body li::before {
    content: '•';
    color: var(--brand-violet);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.article-highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--brand-violet);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 16px 16px 0;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-study-metric {
        font-size: 2rem;
    }
}