@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 25%, #f0ead9 50%, #ebe5d0 75%, #e8dfc8 100%);
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(210, 180, 140, 0.2);
    transition: all 0.3s ease;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,250,240,0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(210, 180, 140, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 165, 116, 0.3);
}

.how-it-works-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.how-it-works-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.step-number {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #5a4a3a;
    text-transform: uppercase;
}

.purple-gradient {
    background: linear-gradient(135deg, #d4a574 0%, #c9965f 50%, #b8834a 100%);
}

.purple-gradient-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.purple-gradient-btn:hover {
    transform: translateY(-2px);
}

.purple-gradient-btn:active {
    transform: translateY(0);
}


.blue-gradient {
    background: linear-gradient(135deg, #a67c52 0%, #8b6f47 50%, #6b5638 100%);
}

.glow-effect {
    box-shadow: 0 4px 20px rgba(180, 140, 90, 0.25);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.simple-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.simple-alert.show {
    display: flex;
}

.simple-alert-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.copy-btn-small {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 400;
}

.copy-btn-small:hover {
    background: #e8e8e8;
    border-color: #b0b0b0;
}

.copy-btn-small:active {
    background: #d8d8d8;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.code-block {
    background: rgba(255, 250, 240, 0.6);
    border: 1px solid rgba(210, 180, 140, 0.3);
    font-family: 'Courier New', monospace;
}

.stat-card {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(184, 131, 74, 0.1) 100%);
    border: 1px solid rgba(210, 180, 140, 0.3);
}

/* Added scroll animation styles */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fade,
    .scroll-fade-left,
    .scroll-fade-right,
    .card-gradient,
    .purple-gradient-btn {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.credential-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.credential-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.nav-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(210, 180, 140, 0.2);
}

.nav-popup.show {
    opacity: 1;
    visibility: visible;
}

.nav-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.nav-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nav-popup-item {
    color: #6b5638;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-popup-item:hover {
    color: #b8834a;
}

/* Feature button tooltip styles */
.feature-btn {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(180, 140, 90, 0.3);
}

.feature-btn .icon-wrapper {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-btn:hover .icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

.feature-btn:hover .icon-wrapper i {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.8);
    background: linear-gradient(135deg, #ffffff 0%, #faf8f3 100%);
    color: #3d2f1f;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    box-shadow: 0 15px 40px rgba(61, 47, 31, 0.15), 0 5px 15px rgba(61, 47, 31, 0.1);
    max-width: 550px;
    min-width: 350px;
    white-space: normal;
    text-align: center;
    border: 1px solid rgba(210, 180, 140, 0.3);
    line-height: 1.5;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #faf8f3;
    filter: drop-shadow(0 2px 3px rgba(61, 47, 31, 0.1));
}

.feature-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    animation: tooltipFlyOut 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tooltipFlyOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(40px) scale(0.6);
    }
    50% {
        transform: translateX(-50%) translateY(-8px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Enhanced button animations */
.purple-gradient-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.purple-gradient-btn::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 ease;
}

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

.purple-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 131, 74, 0.4);
}

/* Page load fly-in animations */
.fly-in-left {
    opacity: 0;
    transform: translateX(-150px);
    animation: flyInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fly-in-right {
    opacity: 0;
    transform: translateX(150px);
    animation: flyInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyInFromRight {
    0% {
        opacity: 0;
        transform: translateX(150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delay classes */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.25s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.15s;
}

.delay-5 {
    animation-delay: 0.3s;
}

/* Comparison Section Animations */
.comparison-header {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.comparison-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.comparison-subtitle {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease-out 0.1s;
}

.comparison-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.comparison-card {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.4s ease-out,
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        border-color 0.25s ease-out,
        background-color 0.25s ease-out;
    will-change: transform;
}

.comparison-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.verit-card {
    transition-delay: 0.2s;
    border: 1px solid rgba(212, 165, 116, 0.25);
    box-shadow: 0 6px 20px rgba(184, 131, 74, 0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,250,240,0.85) 100%);
}

.pdf-card {
    transition-delay: 0.25s;
}

.verit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.14),
        0 0 0 2px rgba(210, 180, 140, 0.22);
    border-color: rgba(212, 165, 116, 0.45);
    background-color: #fffdf8;
}

.pdf-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(210, 180, 140, 0.14);
}

.card-icon {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

.card-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.verit-card .card-icon {
    transition-delay: 0.3s;
}

.pdf-card .card-icon {
    transition-delay: 0.35s;
}

.comparison-item {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease-out;
}

.comparison-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.verit-card .comparison-item:nth-child(1) { transition-delay: 0.4s; }
.verit-card .comparison-item:nth-child(2) { transition-delay: 0.46s; }
.verit-card .comparison-item:nth-child(3) { transition-delay: 0.52s; }
.verit-card .comparison-item:nth-child(4) { transition-delay: 0.58s; }
.verit-card .comparison-item:nth-child(5) { transition-delay: 0.64s; }
.verit-card .comparison-item:nth-child(6) { transition-delay: 0.70s; }
.verit-card .comparison-item:nth-child(7) { transition-delay: 0.76s; }

.pdf-card .comparison-item:nth-child(1) { transition-delay: 0.45s; }
.pdf-card .comparison-item:nth-child(2) { transition-delay: 0.51s; }
.pdf-card .comparison-item:nth-child(3) { transition-delay: 0.57s; }
.pdf-card .comparison-item:nth-child(4) { transition-delay: 0.63s; }
.pdf-card .comparison-item:nth-child(5) { transition-delay: 0.69s; }
.pdf-card .comparison-item:nth-child(6) { transition-delay: 0.75s; }
.pdf-card .comparison-item:nth-child(7) { transition-delay: 0.81s; }

.comparison-check-icon {
    transition: all 0.15s ease-out;
}

/* Vertical divider line behind VS */
.comparison-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scaleY(0.9);
    width: 1px;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(210, 180, 140, 0.2) 20%,
        rgba(210, 180, 140, 0.2) 80%,
        transparent
    );
    z-index: 5;
    opacity: 0;
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.comparison-grid.visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1);
}

/* VS indicator circle */
.vs-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(245, 241, 232, 0.98);
    border: 1.5px solid rgba(210, 180, 140, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6b5638;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .comparison-grid::before {
        width: 60%;
        height: 1px;
        transform: translate(-50%, -50%) scaleX(0.9);
        background: linear-gradient(
            to right,
            transparent,
            rgba(210, 180, 140, 0.2) 20%,
            rgba(210, 180, 140, 0.2) 80%,
            transparent
        );
    }

    .comparison-grid.visible::before {
        transform: translate(-50%, -50%) scaleX(1);
    }

    .vs-indicator {
        width: 56px;
        height: 56px;
        font-size: 14px;
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .comparison-header,
    .comparison-subtitle,
    .comparison-card,
    .card-icon,
    .comparison-item,
    .vs-indicator {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .comparison-card:hover {
        transform: none;
    }
}
