html {
    font-size: 14px;
    background-color: #050505;
    color: #ffffff;
}

body {
    background-color: #050505;
    color: #ffffff;
}


/* Typography */
.hero-title {
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.025em;
    /* Tighter tracking for large text */
    font-weight: 600;
}

/* Apple-like smoothness */
.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pill Text Style */
.pill-text {
    display: inline-block;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.pill-text:hover {
    background-color: #1a1a1a;
    color: white;
}

/* Hero Image Container */
.hero-image-container {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e5ed 50%, #c8dce8 100%);
    position: relative;
    max-width: 85%;
    margin: 0 auto;
}

/* Grid Pattern Overlay */
.hero-grid {
    background-image:
        linear-gradient(rgba(0, 150, 200, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 200, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Discover Button */
.discover-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Starburst Shape */
.starburst {
    position: relative;
}

.starburst::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent, #1a1a1a 10%, transparent 20%);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Feature Cards */
.feature-card {
    padding: 2.5rem;
    /* rounded-2xl handled by tailwind or keep here if needed, but background must go */
    border-radius: 2rem;
    /* approx 32px */
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft diffuse shadow on hover */
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, rgba(0, 200, 200, 0.05) 0%, transparent 100%);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .pill-text {
        font-size: 0.75em;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .hero-image-container {
        aspect-ratio: 1/1;
        min-height: 300px;
    }

    .discover-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Better mobile hero spacing */
    .hero-title {
        margin-bottom: 1.5rem;
    }


    /* Improved pill button on mobile */
    .pill-text {
        font-size: 0.8em;
        padding: 0.5rem 1.25rem;
        border-width: 2px;
    }

    /* Enhanced CTA button hierarchy */
    /* Enhanced CTA button hierarchy - REMOVED legacy overrides to respect new inline classes */

    /* Add subtle gradient background on mobile - REMOVED for dark mode */
    .hero-section {
        background: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title span {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Smooth Hover Effects */
a,
button {
    transition: all 0.3s ease;
}

/* Custom Selection */
::selection {
    background: #1a1a1a;
    color: white;
}

/* Loading States */
.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

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

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

/* Number Counter Animation */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Trust Badges - New Minimal Style */
.trust-badges-new {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.badges-scroll {
    display: flex;
    gap: 3rem;
    animation: scroll-badges-new 20s linear infinite;
    width: max-content;
}

.badge-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    color: #666;
    transition: color 0.3s ease;
}

.badge-new:hover {
    color: #1a1a1a;
}

.badge-new .material-symbols-outlined {
    font-size: 1.25rem;
}

.badge-new span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

/* Slider Styling */
.slider-new {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: #e5e5e5;
    border-radius: 2px;
    outline: none;
}

.slider-new::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-new::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(26, 26, 26, 0.1);
}

.slider-new::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: none;
}

/* Stats Animation Override for New Page */
.stats-counter .stat-item {
    opacity: 1;
    transform: none;
    animation: none;
}

.hero-image-container::after {
    display: none;
    /* Remove shimmer */
}

/* Service Card Background for alternating */
.service-card {
    border-radius: 2rem;
    border: none !important;
    /* Remove borders */
}

/* 3D Flip Card Styles */
.flip-card-perspective {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    height: 100%;
}

/* Inner Container */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Flip State */
.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

/* Front and Back Common */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Front Specific */
.flip-card-front {
    z-index: 2;
    overflow: hidden;
}

/* Back Specific */
.flip-card-back {
    background-color: #1a1a1a;
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    z-index: 1;
    /* REMOVED overflow-y from 3D transformed element - this causes scroll issues on mobile */
    overflow: visible;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

/* Scrollbar for back content - now targets inner scroll container */
.flip-card-back .custom-scrollbar,
.custom-scrollbar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}


/* Mobile Scroll Fixes */
.flip-card-back {
    -webkit-overflow-scrolling: touch;
    /* Momentum scrolling on iOS */
    pointer-events: none;
    /* Default to none so front can be clicked */
}

/* When parent is flipped, back becomes interactive, front disabled */
.flip-card-inner.is-flipped .flip-card-back {
    pointer-events: auto;
}

.flip-card-inner.is-flipped .flip-card-front {
    pointer-events: none;
}

/* Mobile-specific rendering optimizations */
@media (max-width: 768px) {

    /* Ensure smooth scrolling on mobile */
    .custom-scrollbar {
        -webkit-overflow-scrolling: touch;
        max-height: 350px;
    }

    /* Optimize flip card height for mobile viewports */
    .flip-card-perspective {
        min-height: 450px;
    }
}

/* SEO Content Sections Styles */

/* OCR Stats Cards */
.ocr-stats-card {
    transition: all 0.3s ease;
}

.ocr-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 200, 200, 0.15);
}

/* Feature Items */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

/* Use Case Cards */
.use-case-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}



/* Services Grid Cards */
.services-grid-card {
    transition: all 0.3s ease;
}

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

/* Responsive adjustments for SEO sections */
@media (max-width: 768px) {

    .ocr-deep-dive-section .grid,
    .additional-services-section .grid {
        grid-template-columns: 1fr;
    }

    /* Staggered stats cards with offset pattern */
    .ocr-stats-card {
        padding: 1.5rem;
    }

    .ocr-stats-card:nth-child(1) {
        margin-left: 0;
    }

    .ocr-stats-card:nth-child(2) {
        margin-left: 1.5rem;
        position: relative;
    }

    .ocr-stats-card:nth-child(2)::before {
        content: '';
        position: absolute;
        left: -1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 60%;
        background: linear-gradient(to bottom, transparent, #00c8c8, transparent);
    }

    .ocr-stats-card:nth-child(3) {
        margin-right: 1.5rem;
        position: relative;
    }

    .ocr-stats-card:nth-child(3)::after {
        content: '';
        position: absolute;
        right: -1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 60%;
        background: linear-gradient(to bottom, transparent, #00c8c8, transparent);
    }

    /* Feature items with alternating alignment */
    .feature-item:nth-child(odd) {
        border-left: 4px solid #1a1a1a;
        padding-left: 1rem;
        margin-right: 1rem;
    }

    .feature-item:nth-child(even) {
        border-right: 4px solid #00c8c8;
        padding-right: 1rem;
        margin-left: 1rem;
    }

    /* Use case cards with stagger */
    .use-case-card {
        position: relative;
        margin-bottom: 2rem;
    }

    .use-case-card:nth-child(1) {
        transform: translateX(0);
    }

    .use-case-card:nth-child(2) {
        transform: translateX(1rem);
    }

    .use-case-card:nth-child(3) {
        transform: translateX(-1rem);
    }

    /* Services grid cards with zigzag pattern */
    .services-grid-card {
        padding: 1.5rem;
        position: relative;
    }

    .services-grid-card:nth-child(odd) {
        margin-right: 0.75rem;
    }

    .services-grid-card:nth-child(odd)::before {
        content: '';
        position: absolute;
        right: -0.5rem;
        top: 2rem;
        width: 3px;
        height: 3rem;
        background: linear-gradient(to bottom, #1a1a1a, transparent);
        border-radius: 2px;
    }

    .services-grid-card:nth-child(even) {
        margin-left: 0.75rem;
    }

    .services-grid-card:nth-child(even)::before {
        content: '';
        position: absolute;
        left: -0.5rem;
        top: 2rem;
        width: 3px;
        height: 3rem;
        background: linear-gradient(to bottom, #00c8c8, transparent);
        border-radius: 2px;
    }

    /* ROI table mobile optimization */
    .ocr-deep-dive-section table {
        font-size: 0.75rem;
    }

    .ocr-deep-dive-section table th,
    .ocr-deep-dive-section table td {
        padding: 0.75rem 0.5rem;
    }

    /* Comparison Table Mobile Optimization */
    .comparison-table-section table {
        font-size: 0.7rem;
        width: 100%;
        table-layout: fixed;
    }

    .comparison-table-section table th,
    .comparison-table-section table td {
        padding: 0.5rem 0.25rem !important;
        word-break: break-word;
        hyphens: auto;
    }
}

/* Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Horizontal Bounce Animation */
@keyframes bounce-x {

    0%,
    100% {
        transform: translateX(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateX(25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-x {
    animation: bounce-x 1s infinite;
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .ocr-stats-card:nth-child(2) {
        margin-left: 1rem;
    }

    .ocr-stats-card:nth-child(3) {
        margin-right: 1rem;
    }

    .services-grid-card:nth-child(odd) {
        margin-right: 0.5rem;
    }

    .services-grid-card:nth-child(even) {
        margin-left: 0.5rem;
    }
}

/* ========================================
   Product Animation Background Styles
   ======================================== */

#product-animation-bg {
    background: transparent;
}

#scroll-product {
    transition: transform 0.1s ease-out;
    will-change: transform, opacity;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #product-animation-bg {
        opacity: 0.2 !important;
    }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    #scroll-product {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}