/* Global Styles & Variables */
:root {
    --bg-color: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1A1;
    --accent-color: #8B5CF6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --card-bg: #0A0A0A;
    --card-border: #1F1F1F;
    --card-hover-border: #8B5CF6;
    --nav-bg: rgba(0, 0, 0, 0.6);
    --transition-speed: 0.3s;
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --section-padding: 100px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- ANIMATED BACKGROUNDS --- */

/* 1. Film Grain Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    /* Above regular content but below modals/nav if needed */
    opacity: 0.05;
    background-image: 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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Pulsing Glow Blobs */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: pulseMove 10s infinite alternate ease-in-out;
}



.bg-glow-1 {
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.bg-glow-2 {
    top: 40%;
    right: -20%;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes pulseMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
        opacity: 0.8;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    font-weight: 500;
}

.toggle-switch {
    width: 50px;
    height: 28px;
    background: var(--accent-color);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pricing-card-new {
    background: black;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card-new:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.pricing-card-new.popular {
    background: linear-gradient(180deg, rgba(30, 30, 30, 1) 0%, rgba(10, 10, 10, 1) 100%);
    border: 1px solid var(--accent-color);
}

.badge-popular {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: white;
    /* Checkmarks are white in the design */
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background: black;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
}

.benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.benefit-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Large CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1a1033 0%, #000000 100%);
    border-radius: 20px;
    padding: 80px 20px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

@media (max-width: 900px) {

    .pricing-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.text-gradient {
    background: linear-gradient(to right, #FFFFFF, #8B5CF6, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.text-accent {
    color: var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: 1px solid var(--accent-color);

    /* Shine Effect */
    background: linear-gradient(45deg, var(--accent-color) 0%, #a78bfa 50%, var(--accent-color) 100%);
    background-size: 200% auto;
    transition: 0.5s;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    /* Ensure button is above the menu overlay */
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        order: -1;
        /* Move to far left */
        margin-right: 15px;
    }

    .logo {
        order: 0;
        /* After hamburger menu */
    }

    .nav-links {
        display: flex !important;
        /* Force display to override any potential hiding rules */
        visibility: visible;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width for better UX */
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        /* Less transparency to hide background clutter */
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 2000;
        /* High z-index to overlay everything including header */
        border-left: none;
        padding-top: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger font for mobile */
        color: white !important;
        /* Force white color */
        font-weight: 600;
    }

    /* Hamburger Animation to 'X' */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
}

/* Animated Particles (Global Stars) */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Same as bg-glow, but stars usually better visible if behind large blurs or mixed */
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: particleMove 60s linear infinite;
}

@keyframes particleMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-500px);
    }
}


.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    padding: 10px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    margin: 0 auto 30px;
    display: block;
    position: relative;
    z-index: 2;
    background: rgba(139, 92, 246, 0.1);
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Logo Cloud / Infinite Marquee */
.logo-cloud {
    padding: 40px 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 0;
    opacity: 1;
    overflow: hidden;
    position: relative;
    background: transparent;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.logo-track span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s;
}

.logo-track span:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Bento Grid / Services */
.services,
.features,
.pricing {
    padding: var(--section-padding);
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- CARD BORDER BEAM EFFECT --- */
.card,
.pricing-card,
.step-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Important for the beam */
    border: 1px solid var(--card-border);
    /* Fallback */
    transition: transform var(--transition-speed);
}

/* The pseudo-element for the beam */
.card::before,
.pricing-card::before,
.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    /* The border width */
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    -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;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* Hover state: Lighter border + Glow */
.card:hover,
.pricing-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.5);
    /* Boost fallback border */
}

/* Inner content glow on hover */
/* Inner content glow */
.card::after,
.pricing-card::after,
.step-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::after,
.pricing-card:hover::after,
.step-card:hover::after {
    opacity: 1;
}

/* Premium Smooth & Sharp Texture */
.smooth-card {
    background: linear-gradient(145deg, #121212, #0d0d0d) !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    z-index: 60;
    /* Higher than film grain (50) */
}

/* Ensure inputs inside smooth card look distinct */
.smooth-card input,
.smooth-card select,
.smooth-card textarea {
    background: #050505 !important;
    border: 1px solid #222 !important;
}


.card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

.card:hover .card-icon {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}


.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 20px;
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}


/* Process Section */
.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    transition: 0.3s;
}

.step-card:hover .step-number {
    color: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
}

/* Pricing */
.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}


/* Footer */
.footer-cta {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    /* Move radial gradient here to a pseudo element for better perf if strict needed, but this is fine */
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Footer */
.footer {
    padding: 40px 0 40px;
    background-color: black;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-branding p {
    color: var(--text-secondary);
    margin: 16px 0 24px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-newsletter p {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 350px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    /* Slight scale for that "pop" */
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays (applied via JS usually, or helper classes) */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .grid-3,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: rgba(139, 92, 246, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
}

/* Stats Section Adjustments */
.stats-section .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6), rgba(10, 10, 10, 0.8));
}

@media (max-width: 768px) {
    .bg-glow {
        width: 300px;
        height: 300px;
    }
}