/* ========================================
   Certifyd Marketing Site - Custom Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --primary: #1B2A4A;
    --primary-light: #34415F;
    --accent: #2CC5C5;
    --accent-dark: #1A8A8A;
    --accent-light: #5AD8D8;
    --light-bg: #E8F9F9;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 300ms ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    color: var(--white);
    position: relative;
    transition: color 300ms ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 300ms ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent);
}

.nav-logo-text {
    transition: color 300ms ease;
}

.navbar.scrolled .nav-logo-text {
    color: #1B2A4A;
}

.mobile-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(44, 197, 197, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
}

/* --- Pricing Cards --- */
.pricing-card {
    transition: transform 300ms ease, box-shadow 300ms ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
}

/* --- Step Cards --- */
.step-card {
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(44, 197, 197, 0.1);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.step-card > *:not(.step-number) {
    position: relative;
    z-index: 1;
}

/* --- FAQ Accordion --- */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0;
}

.faq-question::after {
    content: '\25B8';
    font-size: 1.25rem;
    transition: transform 300ms ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question::after {
    transform: rotate(90deg);
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
}

/* --- Solution Sections --- */
.solution-section:nth-child(even) {
    background: var(--light-bg);
}

.solution-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(44, 197, 197, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
}

/* --- Footer --- */
.footer {
    background: var(--primary);
    color: #cbd5e1;
}

.footer a {
    color: #cbd5e1;
    transition: color 300ms ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* --- Utility Classes --- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 300ms ease, transform 150ms ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-accent {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 300ms ease, color 300ms ease;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--white);
}

.section-padding {
    padding: 5rem 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 3rem 1rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .step-number {
        font-size: 3.5rem;
    }

    .cta-banner {
        padding: 3rem 1rem;
    }

    .navbar .desktop-nav {
        display: none;
    }

    .navbar .mobile-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .navbar .mobile-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}
