/* ===================================
   LANDING PAGE STYLES - DuneTools
   Premium Design with Glassmorphism & Animations
   =================================== */

/* ===== SCROLL REVEAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Reveal class for scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-children.active>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}


/* ===== SECTION BASE STYLES ===== */
.landing-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.landing-section--dark {
    background: linear-gradient(180deg,
            hsl(230, 25%, 6%) 0%,
            hsl(230, 25%, 10%) 50%,
            hsl(230, 25%, 6%) 100%);
}

.landing-section--gradient {
    background: linear-gradient(135deg,
            hsla(265, 60%, 50%, 0.08) 0%,
            hsla(215, 60%, 50%, 0.05) 50%,
            hsla(320, 60%, 50%, 0.08) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: hsla(265, 60%, 50%, 0.15);
    border: 1px solid hsla(265, 60%, 50%, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(265, 85%, 70%);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.section-title .gradient-text {
    background: linear-gradient(135deg, #fff 0%, hsl(265, 85%, 70%) 50%, hsl(215, 90%, 65%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ===== TOOL CATEGORIES SHOWCASE ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    padding: 2rem;
    background: hsla(230, 20%, 15%, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
            hsla(265, 85%, 60%, 0.5),
            hsla(215, 90%, 55%, 0.5),
            hsla(320, 85%, 60%, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px);
    background: hsla(230, 20%, 18%, 0.7);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px hsla(265, 85%, 60%, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    animation: float 2s ease-in-out infinite;
}

/* Category-specific gradients */
.category-card--image .category-icon {
    background: linear-gradient(135deg, hsla(145, 70%, 55%, 0.2), hsla(120, 60%, 45%, 0.1));
}

.category-card--pdf .category-icon {
    background: linear-gradient(135deg, hsla(0, 85%, 60%, 0.2), hsla(30, 85%, 55%, 0.1));
}

.category-card--video .category-icon {
    background: linear-gradient(135deg, hsla(215, 90%, 55%, 0.2), hsla(240, 70%, 60%, 0.1));
}

.category-card--audio .category-icon {
    background: linear-gradient(135deg, hsla(40, 95%, 60%, 0.2), hsla(25, 90%, 55%, 0.1));
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.category-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(265, 85%, 70%);
}

.category-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(265, 60%, 50%, 0.2);
    border-radius: 50%;
    color: hsl(265, 85%, 70%);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    background: hsl(265, 85%, 60%);
    color: white;
    transform: translateX(5px);
}


/* ===== TRUST & PRIVACY SECTION ===== */
.trust-section {
    text-align: center;
    padding: 8rem 0;
    background: linear-gradient(180deg,
            hsla(230, 25%, 8%, 1) 0%,
            hsla(265, 30%, 10%, 1) 50%,
            hsla(230, 25%, 8%, 1) 100%);
}

.trust-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.trust-highlight {
    position: relative;
    display: inline-block;
}

.trust-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, hsl(145, 70%, 55%), hsl(185, 85%, 55%));
    border-radius: 4px;
    opacity: 0.6;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 4rem auto 0;
}

@media (max-width: 768px) {
    .trust-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.trust-feature {
    padding: 2rem;
    background: hsla(230, 20%, 12%, 0.5);
    border-radius: 20px;
    border: 1px solid hsla(0, 0%, 100%, 0.05);
    transition: all 0.3s ease;
}

.trust-feature:hover {
    transform: translateY(-5px);
    border-color: hsla(145, 70%, 55%, 0.3);
}

.trust-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.trust-feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}


/* ===== HOW IT WORKS SECTION ===== */
.steps-timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .steps-timeline {
        flex-direction: column;
        align-items: center;
    }
}

.step-item {
    flex: 1;
    max-width: 280px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, hsl(265, 85%, 60%), hsl(215, 90%, 55%));
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px hsla(265, 85%, 60%, 0.4);
}

.step-connector {
    position: absolute;
    top: 35px;
    left: calc(50% + 50px);
    width: calc(100% - 20px);
    height: 3px;
    background: linear-gradient(90deg, hsl(265, 85%, 60%), hsl(215, 90%, 55%));
    opacity: 0.3;
}

@media (max-width: 768px) {
    .step-connector {
        display: none;
    }
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.step-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}


/* ===== STATS SECTION ===== */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg,
            hsla(265, 60%, 50%, 0.1) 0%,
            hsla(215, 60%, 50%, 0.05) 100%);
    border-top: 1px solid hsla(0, 0%, 100%, 0.05);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, hsl(265, 85%, 70%), hsl(215, 90%, 65%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}


/* ===== PRICING SECTION REDESIGN ===== */
.pricing-section-new {
    padding: 6rem 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-cards-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pricing-cards-new {
        grid-template-columns: 1fr;
    }
}

.pricing-card-new {
    position: relative;
    padding: 2.5rem;
    background: hsla(230, 20%, 12%, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.pricing-card-new:hover {
    transform: translateY(-5px);
    border-color: hsla(265, 85%, 60%, 0.3);
}

.pricing-card-new--featured {
    border-color: hsla(265, 85%, 60%, 0.5);
    background: linear-gradient(135deg,
            hsla(265, 40%, 15%, 0.8),
            hsla(215, 40%, 15%, 0.8));
}

.pricing-card-new--featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, hsl(265, 85%, 60%), hsl(215, 90%, 55%));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, hsl(265, 85%, 60%), hsl(215, 90%, 55%));
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

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

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}

.pricing-features-list li:last-child {
    border-bottom: none;
}

.pricing-features-list .check {
    color: hsl(145, 70%, 55%);
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.pricing-cta--outline {
    background: transparent;
    border: 2px solid hsla(0, 0%, 100%, 0.2);
    color: var(--color-text-primary);
}

.pricing-cta--outline:hover {
    border-color: hsl(265, 85%, 60%);
    background: hsla(265, 85%, 60%, 0.1);
}

.pricing-cta--primary {
    background: linear-gradient(135deg, hsl(265, 85%, 60%), hsl(215, 90%, 55%));
    color: white;
    border: none;
}

.pricing-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px hsla(265, 85%, 60%, 0.4);
}


/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 6rem 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: hsla(230, 20%, 12%, 0.5);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: hsla(265, 85%, 60%, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: hsl(265, 85%, 70%);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: hsl(265, 85%, 60%);
}

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

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

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

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}


/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(135deg,
            hsl(265, 60%, 25%) 0%,
            hsl(215, 60%, 25%) 50%,
            hsl(265, 60%, 20%) 100%);
    border-radius: 32px;
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1100px;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: white;
    color: hsl(265, 60%, 40%);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}


/* ===== ENHANCED FOOTER ===== */
.footer-new {
    padding: 5rem 0 2rem;
    background: hsl(230, 25%, 6%);
    border-top: 1px solid hsla(0, 0%, 100%, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand {
    max-width: 300px;
}

@media (max-width: 600px) {
    .footer-brand {
        max-width: 100%;
    }
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: hsl(265, 85%, 70%);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid hsla(0, 0%, 100%, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 600px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 0%, 100%, 0.05);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: hsl(265, 85%, 60%);
    color: white;
    transform: translateY(-3px);
}