:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #f59e0b;
    --accent: #06d6a0;
    --danger: #ef4444;
    --dark: #0f0f23;
    --dark-light: #1a1a2e;
    --light: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px; /* Desktop header height */
    --header-height-mobile: 70px; /* Mobile header height */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

main {
    padding-top: 0; /* Main starts at the top */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Custom Cursor */
body {
    cursor: none;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease;
}

@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    height: var(--header-height); /* Base height for desktop */
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.logo img {
    height: 45px; /* Base height for desktop */
    width: auto;
    filter: brightness(1.1);
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary);
}

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

.cta-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.cta-header:hover::before {
    left: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-text .highlight {
    color: var(--secondary);
    position: relative;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

.hero-text .subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--glass);
    backdrop-filter: blur(20px);
    white-space: nowrap;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-video {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-video:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header .highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Demo Section */
.demo-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    /* Only transition the cheap transform property */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* This pseudo-element is our shadow layer */
.demo-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    /* The big shadow, invisible by default */
    box-shadow: var(--shadow-xl);
    opacity: 0;
    /* Animate the cheap opacity property */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:hover {
    /* On hover, move the card up */
    transform: translateY(-10px);
}

.demo-card:hover::after {
    /* On hover, fade in the shadow layer */
    opacity: 1;
}

.demo-video-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.demo-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

/* This rule permanently hides the overlay */
.demo-overlay {
    display: none;
}

.demo-play-btn {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.demo-content {
    padding: 2rem;
}

.demo-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.demo-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.demo-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Solutions Section */
.solutions-section {
    padding: 6rem 0;
    background: var(--light);
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.solution-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.1);
    z-index: 1;
}

.solution-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.5s;
    z-index: 0;
}

.solution-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
}

.solution-card:hover::after {
    opacity: 1;
}

.solution-card:hover::before {
    left: 100%;
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.solution-card:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
}

.solution-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.solution-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.solution-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.solution-benefits li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    font-weight: 500;
}

.solution-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.solution-cta {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.solution-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Case Studies Section */
.case-studies-section {
    padding: 6rem 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.case-studies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 214, 160, 0.1) 0%, transparent 50%);
}

.case-studies-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.case-study-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.case-study-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-study-video {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.case-study-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: var(--transition);
}

.case-study-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.case-study-category {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-study-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

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

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(-50%);
    border-radius: 2px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

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

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
    background: var(--light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    margin: 0 3rem;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.step-content::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
    z-index: 2;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:nth-child(odd) .step-content::before {
    right: -30px;
    border-left-color: var(--light);
}

.process-step:nth-child(even) .step-content::before {
    left: -30px;
    border-right-color: var(--light);
}

.step-content:hover {
    background: white;
    transform: scale(1.02);
}

.step-content:hover::after {
    opacity: 1;
}

.process-step:nth-child(odd) .step-content:hover::before {
    border-left-color: white;
}

.process-step:nth-child(even) .step-content:hover::before {
    border-right-color: white;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.step-number:hover {
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.team-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.team-card:hover::after {
    opacity: 1;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-card:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    align-items: center;
}

.team-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition), transform var(--transition);
    text-decoration: none;
    width: 24px;
    height: 24px;
}

.team-social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.team-social-links a svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}


/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

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

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-animation {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(79, 70, 229, 0.3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Calendly Modal Styles */
.calendly-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.calendly-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.calendly-inline-widget {
     width: 100%;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

/* Enhanced Social Proof Section */
.social-proof {
    padding: 4rem 0 2rem 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.social-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.social-proof-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.social-proof h3 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.trusted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Logo Carousel Styles */
.logo-carousel-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 5px;
    padding: 20px 0 20px 0;
    overflow: hidden;
}

.logo-carousel {
    display: flex;
    width: calc(280px * 28);
    animation: scroll-logos 60s linear infinite;
}

.logo-item {
    flex: 0 0 280px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 20px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.logo-item::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s;
    z-index: 0;
}

.logo-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.logo-item:hover::after {
    opacity: 1;
}

.logo-item:hover::before {
    left: 100%;
}

.logo-item img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(0) opacity(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item:hover img {
    filter: grayscale(0) opacity(1);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 14)); }
}

.logo-carousel-wrapper:hover .logo-carousel {
    animation-play-state: paused;
}


/* Responsive Design */
@media (max-width: 1024px) {
    header { height: var(--header-height-mobile); }
    .hero {
         padding-top: calc(var(--header-height-mobile) + 2.5rem);
         min-height: unset;
         align-items: flex-start;
         padding-bottom: 3rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "subtitle" "video" "buttons";
        gap: 1.5rem;
        text-align: center;
    }
    .hero-text { display: contents; }
    .hero-text h1 { grid-area: title; margin-bottom: 0; }
    .hero-text .subtitle { grid-area: subtitle; margin-bottom: 0; }
    .hero-visual { grid-area: video; margin-top: 0; }
    .hero-text .hero-cta { grid-area: buttons; margin-top: 0; justify-content: center; }
    .social-proof, .demo-section, .solutions-section, .case-studies-section, .process-section, .cta-section, .team-section { padding: 4rem 0; }
    footer { padding: 3rem 0 1.5rem; }
    .timeline-line { left: 30px; transform: none; }
    .process-step { margin-bottom: 3rem; }
    .process-timeline .process-step:last-child { margin-bottom: 0; }
    .process-step:nth-child(even) { flex-direction: row; align-items: center; position: relative; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 2rem; }
    .step-number { flex-shrink: 0; margin: 0; margin-left: calc(-1 * (80px / 2 - 30px)); position: static; transform: none; z-index: 1; }
    .step-content { flex: 1; padding: 2rem; margin-left: calc(80px + 20px); margin-right: 0; }
    .step-content::before { left: -15px; right: auto; border-right-color: var(--light); border-left-color: transparent; }
    .process-step:nth-child(even) .step-content:hover::before { border-right-color: white; }
    .logo-item { flex: 0 0 220px; height: 100px; margin: 0 15px; }
    .logo-carousel { width: calc(220px * 28); }
    @keyframes scroll-logos { 100% { transform: translateX(calc(-220px * 14)); } }
    .team-social-links { margin-top: 1rem; }
}

@media (max-width: 768px) {
    header { height: var(--header-height-mobile); }
    .hero { padding-top: calc(var(--header-height-mobile) + 2.5rem); min-height: unset; align-items: flex-start; padding-bottom: 2.5rem; }
    .nav-links { display: none; }
    .logo img { height: 40px; }
    .section-badge { display: block; margin-left: auto; margin-right: auto; max-width: fit-content; flex-shrink: 0; align-self: center; }
    .solutions-grid, .case-studies-grid, .demo-grid, .team-grid { grid-template-columns: 1fr; }
    .hero-cta { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
    .hero-cta .btn-primary, .hero-cta .btn-secondary { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .process-step { margin-bottom: 2rem; }
    .process-timeline .process-step:last-child { margin-bottom: 0; }
    .step-number { width: 60px; height: 60px; font-size: 1.4rem; flex-shrink: 0; margin: 0; margin-left: calc(-1 * (60px / 2 - 30px)); position: static; transform: none; }
    .step-content { margin-left: calc(60px + 15px); margin-right: 0; padding: 1.5rem; }
    .process-step:nth-child(even) { flex-direction: row; }
    .process-step, .process-step:nth-child(even) { padding-right: 1.5rem; }
    .step-content::before { left: -15px; right: auto; border-right-color: var(--light); border-left-color: transparent; }
    .process-step:nth-child(even) .step-content:hover::before { border-right-color: white; }
    .social-proof { padding: 3rem 0 1.5rem 0; }
    .demo-section, .solutions-section, .case-studies-section, .process-section, .team-section { padding: 3rem 0; }
    .cta-section, footer { padding: 3rem 0 1.5rem; }
    .hero-content { gap: 1rem; }
    .hero-text h1 { font-size: 2.2rem; margin-bottom: 0; }
    .hero-text .subtitle { font-size: 1.1rem; margin-bottom: 0; }
    .hero-visual { max-width: 300px; transform: none; box-shadow: var(--shadow); width: 100%; margin: auto; }
    .hero-video, .hero-video:hover { transform: none; box-shadow: var(--shadow); }
    .logo-item { flex: 0 0 180px; height: 80px; margin: 0 10px; }
    .logo-carousel { width: calc(180px * 28); }
    @keyframes scroll-logos { 100% { transform: translateX(calc(-180px * 14)); } }
    .team-social-links { margin-top: 1rem; }
}

@media (max-width: 480px) {
    header { height: var(--header-height-mobile); }
    .hero { padding-top: calc(var(--header-height-mobile) + 2rem); min-height: unset; align-items: flex-start; padding-bottom: 2.5rem; }
    .logo img { height: 35px; }
    .hero-cta { gap: 0.5rem; }
    .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; margin-bottom: 0; }
    .social-proof, .demo-section, .solutions-section, .case-studies-section, .process-section, footer, .team-section { padding: 2.5rem 0 1.5rem; }
    .cta-section { padding: 3.5rem 0; }
    .hero-content { gap: 0.75rem; }
    .hero-text h1 { font-size: 2rem; margin-bottom: 0; }
    .hero-text .subtitle { font-size: 1.1rem; margin-bottom: 0; }
    .hero-visual { max-width: 250px; margin: auto; }
    .process-step { margin-bottom: 1.5rem; }
    .process-timeline .process-step:last-child { margin-bottom: 0; }
    .step-number { width: 50px; height: 50px; font-size: 1.2rem; margin-left: calc(-1 * (50px / 2 - 30px)); }
    .step-content { margin-left: calc(50px + 10px); padding: 1rem; }
    .process-step, .process-step:nth-child(even) { padding-right: 1rem; }
    .logo-item { flex: 0 0 140px; height: 70px; margin: 0 8px; padding: 15px; }
    .logo-carousel { width: calc(140px * 28); }
    @keyframes scroll-logos { 100% { transform: translateX(calc(-140px * 14)); } }
    .team-photo { width: 120px; height: 120px; }
    .team-social-links { margin-top: 1rem; }
}

@media (min-width: 1025px) {
    .hero {
        padding-top: calc(var(--header-height) - 20px);
        min-height: 95vh;
        align-items: center;
    }
}

/* --- Styles for QR Button --- */
.qrButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    gap: 8px;
    position: relative;
    border-radius: 22px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background-color: var(--primary);
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qrButton:hover {
     background: var(--primary-light);
}

.solution-cta.qrButton:hover {
    transform: none;
}

.minimized-content {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2;
}

.qrButton.expanded .minimized-content {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.button-text {
    white-space: nowrap;
}

.qr {
    position: absolute; /* Position is relative to the button by default */
    top: 0;
    left: 0;
    width: 216px;
    height: 216px;
    padding: 12px;
    box-sizing: border-box;
    background: var(--primary);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 1001; /* High z-index for when it's detached and moved to body */
    opacity: 0;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.qr img {
     display: block;
     width: 100%;
     height: 100%;
     object-fit: contain;
     border-radius: 12px;
     background: white;
}

/* INTERACTIVE STYLES: Only for hover-capable devices */
@media (hover: hover) and (pointer: fine) {
    .qrButton {
         cursor: pointer;
    }

    .qrButton.expanded:hover {
        background: var(--primary); /* Keep background solid when expanded */
    }
}

@media (max-width: 1060px) {
    .qrButton {
        height: 38px;
        border-radius: 19px;
        padding: 0 16px;
    }
}