:root {
    --primary: #00A3FF;
    --primary-dark: #0082CC;
    --primary-soft: rgba(0, 163, 255, 0.1);
    --bg-white: #ffffff;
    --bg-light: #F9FAFB;
    --bg-dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --max-width: 1100px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --font: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography Helpers */
.text-accent {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 163, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

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

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 163, 255, 0.03) 0%, transparent 50%);
}

.hero-container {
    text-align: center;
}

.hero-header {
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.video-outer-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 12px;
    background: white;
    border-radius: calc(var(--radius-lg) + 12px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
}

.loom-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-subtext {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 120px 0;
}

.bg-light {
    background: var(--bg-light);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Testimonials */
/* Testimonials Scroller */
.testimonials-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Add a fade mask to the edges */
.testimonials-scroller::before,
.testimonials-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-scroller::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}

.testimonials-scroller::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 60s linear infinite;
}

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

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

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

    /* Half of track width (including gap) */
}

.testimonial-card {
    width: 400px;
    flex-shrink: 0;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.testimonial-card.clickable {
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card.highlighted {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.author-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar,
.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-avatar-placeholder {
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-visual {
    height: 240px;
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-visual {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-tag {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.3);
    z-index: 2;
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    margin-bottom: 12px;
}

.case-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.btn-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-link.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* Final CTA Card */
.final-cta {
    padding-bottom: 120px;
}

.cta-card {
    background: var(--bg-dark);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 2rem;
    }
}

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