/* ProofClock Marketing Styles */

body {
    font-family: 'Inter', sans-serif;
    background-color: #020409;
    color: #E0E0E0;
}

.hero-section {
    background-image: radial-gradient(circle at 25% 25%, rgba(225, 29, 72, 0.2) 0%, rgba(225, 29, 72, 0) 30%);
}

.glass-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(2, 4, 9, 0.75);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.glass-nav.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: rgba(2, 4, 9, 0.95);
}

.hero-gradient-text {
    background: linear-gradient(to right, #ffffff, #fecdd3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA Button with micro-interactions */
.cta-gradient {
    background: linear-gradient(to right, #e11d48, #db2777);
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-gradient:hover {
    background: linear-gradient(to right, #db2777, #e11d48);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.4);
}

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

/* Scroll animations - progressive enhancement */
/* Content is visible by default, animations only work when JS adds .js-ready to html */
html.js-ready .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js-ready .animate-on-scroll.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

/* Feature cards */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(225, 29, 72, 0.15);
}

.feature-card img {
    transition: transform 0.4s ease;
}

.feature-card:hover img {
    transform: scale(1.02);
}

/* Link arrows */
.arrow-link i {
    transition: transform 0.2s ease;
}

.arrow-link:hover i {
    transform: translateX(4px);
}

/* Navigation active state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #e11d48, #db2777);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu.visible a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.visible a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.visible a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.visible a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.visible a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.visible a:nth-child(5) {
    transition-delay: 0.3s;
}

/* Form interactions */
.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-input:focus {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
    transform: translateY(-1px);
}

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success state */
.form-success {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Modal */
.modal {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal.visible .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* How it works step connector */
.step-connector {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #374151, #e11d48);
}

/* Step number pulse */
.step-number {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }
}

/* Pricing card hover */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: #e11d48;
}

.pricing-card.featured:hover {
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.2);
}

/* Moving Workflow Connector */
.flow-connector {
    background: linear-gradient(90deg,
            rgba(225, 29, 72, 0.15) 0%,
            rgba(225, 29, 72, 0.3) 25%,
            #e11d48 50%,
            rgba(225, 29, 72, 0.3) 75%,
            rgba(225, 29, 72, 0.15) 100%);
    background-size: 200% 100%;
    animation: flow-gradient 2.5s linear infinite;
}

@keyframes flow-gradient {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Icon Box Pulse Animation */
@keyframes box-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(225, 29, 72, 0);
        border-color: rgba(51, 65, 85, 0.5);
        background-color: rgba(51, 65, 85, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
        border-color: #e11d48;
        background-color: rgba(225, 29, 72, 0.2);
    }
}

.logo-box-glow {
    transition: all 0.3s ease;
    animation: box-pulse 2.5s infinite;
}

/* Mobile Vertical Flow */
.flow-connector-vertical {
    background: linear-gradient(180deg,
            rgba(225, 29, 72, 0.15) 0%,
            rgba(225, 29, 72, 0.3) 25%,
            #e11d48 50%,
            rgba(225, 29, 72, 0.3) 75%,
            rgba(225, 29, 72, 0.15) 100%);
    background-size: 100% 200%;
    animation: flow-gradient-vertical 2.5s linear infinite;
}

@keyframes flow-gradient-vertical {
    0% {
        background-position: 0 100%;
    }

    100% {
        background-position: 0 -100%;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #e11d48;
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: #e11d48;
    color: white;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Feature page specific styles */
.feature-icon-glow {
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.2);
}
