/* T3CH Website - Main Styles */

:root {
    /* Brand Colors - Matching T3CH Logo */
    --primary-blue: #0047AB;
    --electric-blue: #4169E1;
    --indigo: #6366F1;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --deep-navy: #1a237e;
    
    /* Brand Gradient */
    --brand-gradient: linear-gradient(135deg, #0047AB 0%, #4169E1 25%, #6366F1 50%, #8B5CF6 75%, #EC4899 100%);
    --brand-gradient-subtle: linear-gradient(135deg, rgba(0, 71, 171, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Functional */
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.0625rem;
    line-height: 1.7;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(0, 71, 171, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
}

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

/* Hero Section */
.hero {
    background: var(--brand-gradient);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-product-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    max-width: 450px;
    opacity: 0.22;
    animation: floatProduct 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    overflow: visible !important;
}

.hero-product-visual img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
    mix-blend-mode: normal !important;
    isolation: auto !important;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.18));
}

.hero-product-visual::before,
.hero-product-visual::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}


@keyframes floatProduct {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-52%) translateX(-5px) scale(1.01);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) auto 0;
    max-width: 1200px;
}

/* Center last card when there are 4 items */
.card-grid .card:nth-child(4):last-child {
    grid-column: 2 / 3;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    width: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Problem Section */
.problem-section {
    background: var(--gray-50);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.problem-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--warning);
}

.problem-item h4 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--brand-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 8px 16px rgba(0, 71, 171, 0.25);
}

.step h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.step p {
    color: var(--gray-600);
}

/* Testimonials */
.testimonials {
    background: var(--gray-50);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* Comparison Table */
.comparison-table {
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--brand-gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: var(--success);
    font-weight: 600;
    font-size: 1.25rem;
}

.comparison-table .cross {
    color: var(--gray-400);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--brand-gradient) border-box;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--spacing-md) 0;
}

.pricing-period {
    font-size: 1rem;
    color: var(--gray-600);
}

.pricing-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.pricing-features li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* CTA Sections */
.cta-section {
    background: var(--brand-gradient);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--white);
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

.footer-section h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.bg-gray {
    background: var(--gray-50);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero {
        padding: var(--spacing-2xl) 0;
        min-height: 500px;
    }
    
    .hero-product-visual {
        opacity: 0.16;
        width: 60%;
        right: -10%;
        max-width: 300px;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: 0 !important;
        overflow: visible !important;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid .card:nth-child(4):last-child {
        grid-column: 1 / 2;
    }
    
    .testimonial-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .card {
        padding: var(--spacing-md);
    }
    
    .testimonial {
        padding: var(--spacing-md);
    }
}

/* Meet Justin Page */

/* Enhanced Typography Hierarchy */
h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 700;
}

/* Improved Spacing */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-header {
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Premium Hover States */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--brand-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-secondary:hover {
    background: var(--brand-gradient-subtle);
}

/* Link Colors */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--purple);
}

.testimonial::before {
    color: var(--purple);
}

/* Enhanced Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Ensure all grids are centered */
.testimonial-grid,
.pricing-cards,
.problem-list,
.feature-grid,
.gallery-grid {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

/* Center align grid items */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    justify-items: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-items: center;
}

.testimonial {
    width: 100%;
    max-width: 450px;
}

.pricing-card {
    width: 100%;
    max-width: 400px;
}

/* Ensure sections content is centered */
.steps,
.faq-container,
.comparison-table,
.contact-form {
    margin-left: auto;
    margin-right: auto;
}

/* Homepage video hero and refinement pass */
.hero {
    min-height: calc(100vh - 82px);
    padding: clamp(5rem, 10vw, 8rem) 0;
    isolation: isolate;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--brand-gradient);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.01);
}

.hero::before {
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 71, 171, 0.42) 0%, rgba(99, 102, 241, 0.34) 46%, rgba(139, 92, 246, 0.3) 72%, rgba(236, 72, 153, 0.4) 100%),
        linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.18) 100%);
}

.home-page .hero-product-visual {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    animation: heroContentIn 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
    max-width: 780px;
    text-shadow: 0 16px 38px rgba(26, 35, 126, 0.26);
}

.hero p {
    max-width: 720px;
    text-shadow: 0 10px 28px rgba(26, 35, 126, 0.24);
}

.hero-cta {
    justify-content: center;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(26, 35, 126, 0.16);
}

.hero .btn-secondary:hover {
    background: var(--white);
}

header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn,
.card,
.problem-item,
.testimonial,
.pricing-card,
.gallery-item,
.faq-item,
.comparison-table {
    will-change: transform;
}

.card,
.problem-item,
.testimonial,
.pricing-card,
.faq-item,
.comparison-table {
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.problem-item,
.faq-item {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.problem-item:hover,
.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 71, 171, 0.11);
}

.gallery-item img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 980px) {
    .hero-video {
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 72px);
        padding: 6rem 0 4.5rem;
    }

    .hero-video {
        object-position: center center;
        opacity: 1;
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(0, 71, 171, 0.5) 0%, rgba(139, 92, 246, 0.42) 58%, rgba(236, 72, 153, 0.5) 100%),
            linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.16));
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 620px;
    }

    .hero p {
        font-size: 1.08rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
