@import url('./design-tokens.css');

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow-y: scroll;  /* Keep scrolling functionality */
}

/* Hide scrollbar for all browsers */
body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Movement Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Scale Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Background Animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   Decorative Elements
   ========================================================================== */

/* Background Shapes */
.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    display: none;
}

.geometric-bg .shape {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-size));
    border-radius: 50%;
    animation: float-slow 15s infinite ease-in-out;
}

/* Individual Shapes */
.geometric-bg .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.geometric-bg .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
    animation-delay: -5s;
}

/* Enhanced Hero Section */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 0 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.1) 0%, rgba(123, 97, 255, 0.05) 100%);
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(123, 97, 255, 0.1)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    text-align: left;
    margin: 0 0 1.2rem 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.85;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .app-name {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .app-name {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        justify-self: center;
        max-width: 100%;
        height: auto;
    }

    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-badge {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 10px 40px 10px;
    }
    .hero-subtitle {
        margin: 0 0 0.5rem 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 16px;
    }

    .hero-badge {
        top: -10px;
        right: -10px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* AutoSortPro Stats Section */
.stats-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    box-sizing: border-box;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(123, 97, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .stats-container {
        margin: 50px auto;
        gap: 20px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-number {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin: 40px auto;
        max-width: 600px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .stats-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin: 30px auto;
        padding: 0;
    }

    .stat-card {
        width: 100%;
        padding: 20px 15px;
        margin: 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
        padding: 0 5px;
    }

    .stat-description {
        font-size: 0.85rem;
        padding: 0 5px;
        word-wrap: break-word;
    }
}

/* Enhanced Features Section */
.features {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.features::before {
    display: none;
}

/* Standardized Section Headers */
.features .section-header,
.pricing-header,
.credits-header,
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.features .section-header h2,
.pricing-header h2,
.credits-header h3,
.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features .section-header p,
.pricing-header p,
.credits-header p,
.section-header p {
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive styles for all headers */
@media (max-width: 768px) {
    .features .section-header,
    .pricing-header,
    .credits-header,
    .section-header {
        margin-bottom: 40px;
    }

    .features .section-header h2,
    .pricing-header h2,
    .credits-header h3,
    .section-header h2 {
        font-size: 1.8rem;
    }

    .features .section-header p,
    .pricing-header p,
    .credits-header p,
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .features .section-header,
    .pricing-header,
    .credits-header,
    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .features .section-header h2,
    .pricing-header h2,
    .credits-header h3,
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .features .section-header p,
    .pricing-header p,
    .credits-header p,
    .section-header p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-size));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.05);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient);
    -webkit-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.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card::before {
    display: none;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

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

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

    .feature-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 15px;
    }
}

/* Integration Section */
.integrations {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.integration-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.integration-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.integration-card:hover {
    transform: translateY(-5px);
}

.integration-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.integration-content h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.integration-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .integrations {
        padding: 60px 0;
    }

    .integration-card {
        padding: 30px 20px;
    }

    .integration-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .integrations {
        padding: 40px 0;
    }

    .integration-card {
        padding: 20px 15px;
    }

    .integration-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .integration-content h3 {
        font-size: 1.2rem;
    }

    .integration-content p {
        font-size: 0.9rem;
    }
}

/* Stats Section */
.stats {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(123, 97, 255, 0.1), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    position: relative;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 97, 255, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Enhanced CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('grid-pattern.png') repeat;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.cta-section .cta-button {
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: 700;
    padding: 16px 48px;
    transition: all 0.3s ease;
}

.cta-section .cta-button:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(
        135deg,
        rgba(123, 97, 255, 0.05) 0%,
        rgba(180, 122, 255, 0.1) 50%,
        rgba(123, 97, 255, 0.05) 100%
    );
    color: var(--text-dark);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Add a subtle animated gradient overlay */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(123, 97, 255, 0.1) 50%,
        transparent 100%
    );
    animation: gradientMove 8s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: translateX(-50%) scale(1.5);
    }
    100% {
        transform: translateX(50%) scale(1.5);
    }
}

/* Ensure footer content stays above the animated background */
.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
}

.footer-links h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-links a {
    color: var(--text-dark);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact {
    text-align: right;
}

.footer-contact h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-contact p {
    color: var(--text-dark);
    opacity: 0.8;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid rgba(123, 97, 255, 0.1);
    text-align: center;
    color: var(--text-dark);
    opacity: 0.6;
    font-size: 0.9rem;
}

@keyframes footerGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-10%, -10%) scale(1.1);
    }
}

/* Remove the bullet points between footer links */
.footer-links a::after {
    display: none;
}

.footer-content p {
    margin: 12px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Add subtle animation to the download button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 97, 255, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(123, 97, 255, 0.3);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateY(-2px);
}

.hero-cta .cta-button {
    padding: 18px 36px;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta .cta-button:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.step-card .cta-button {
    width: 100%;
    margin-top: 20px;
    padding: 14px 28px;
    font-size: 1rem;
}

.credit-package .cta-button {
    width: 100%;
    margin-top: 20px;
    padding: 14px 28px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-cta .cta-button {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .footer-links a::after {
        display: none;
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}

.pricing {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('grid-pattern.png') repeat;
    opacity: 0.05;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.pricing-toggle {
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--gradient);
    color: white;
}

.pricing-grid,
.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.card-wrapper {
    position: relative;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.card-wrapper:has(.popular) {
    margin-top: 0;
    z-index: 2;
}

@media (min-width: 769px) {
    .card-wrapper:has(.popular) {
        margin-top: -35px;
    }
}

/* Base popular card styling - applies to all screens */  
.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

/* Desktop popular card styling - only applies above 768px */
@media (min-width: 769px) {
    .pricing-card.popular {
        border: 2px solid transparent;
        background: 
            linear-gradient(white, white) padding-box,
            var(--gradient) border-box;
        transform: scale(1.05);
        box-shadow: 
            0 10px 20px rgba(123, 97, 255, 0.15),
            0 20px 40px rgba(180, 122, 255, 0.1);
        z-index: 2;
    }
    
    .pricing-card.popular:hover {
        transform: scale(1.05) translateY(-5px);
        box-shadow: 
            0 15px 25px rgba(123, 97, 255, 0.2),
            0 25px 45px rgba(180, 122, 255, 0.15);
    }
    
    .pricing-card.popular::before {
        content: '★ Most Popular';
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--gradient);
        color: white;
        padding: 8px 20px;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(123, 97, 255, 0.2);
        z-index: 2;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        var(--gradient) border-box;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 12px;
    right: -35px;
    background: var(--gradient);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.price small {
    font-size: 1rem;
    opacity: 0.7;
}

.price-period {
    color: #666;
    font-size: 0.9rem;
}

.credits-info {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.9rem;
}

.credits-info i {
    color: var(--primary);
    margin-right: 8px;
}

.on-demand {
    margin-top: 80px;
    text-align: center;
}

.credit-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.credit-package {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.credit-package.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        var(--gradient) border-box;
}

.credit-package.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--gradient);
    color: white;
    padding: 6px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.credit-package h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.credits-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.price-per-credit {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.validity {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

@media (max-width: 1024px) {
    .credit-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .credit-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
        padding: 0 10px;
    }

    .credit-package {
        padding: 15px;
    }

    .credits-amount {
        font-size: 1.8rem;
    }

    .package-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .credit-packages {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .credit-package {
        padding: 12px;
}

    .credit-package h4 {
        font-size: 1rem;
    }

    .credits-amount {
        font-size: 1.6rem;
    }

    .package-price {
        font-size: 1.2rem;
    }

    .price-per-credit, .validity {
        font-size: 0.8rem;
    }
}

/* Adjust spacing in the stats section */
.stats .section-header {
    margin-bottom: 60px; /* Match the spacing with the features section */
}

.rating-number {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
}

.rating-star {
    color: gold;
    margin-left: 8px;
    font-size: 3.5rem;
    -webkit-text-fill-color: gold;
    display: inline-flex;
    align-items: center;
    transform: translateY(-2px);
}

.stat-number, .rating-number {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
}

.additional-credits {
    margin-top: 60px;
    text-align: center;
}

.additional-credits h3 {
    margin-bottom: 8px;
}

.additional-credits p {
    color: #666;
    margin-bottom: 30px;
}

/* Remove the pricing toggle since we're not using it */
.pricing-toggle {
    display: none;
}

/* Background for sections between hero and CTA */
.section-background {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.97),
        rgba(248, 247, 253, 0.97)
    ) !important;
    backdrop-filter: blur(10px);
}

.section-background > .container {
    position: relative;
    z-index: 2; /* Ensure content stays above the animated backgrounds */
}

.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(123, 97, 255, 0.05), rgba(180, 122, 255, 0.05));
    animation: floatShape 20s infinite ease-in-out;
}

.bg-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.bg-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 15%;
    animation-delay: -10s;
}

.bg-lines {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, var(--primary) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(var(--primary) 1px, transparent 1px) 0 0 / 50px 50px;
    opacity: 0.03;
    mask: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: floatDots 60s linear infinite;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(20px, -20px) rotate(5deg) scale(1.1);
    }
    50% { 
        transform: translate(0, 40px) rotate(10deg) scale(0.9);
    }
    75% { 
        transform: translate(-20px, -20px) rotate(5deg) scale(1.05);
    }
}

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

/* Add subtle connection lines between sections */
.section-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(123, 97, 255, 0.1),
        rgba(180, 122, 255, 0.1)
    );
    z-index: 1;
}

/* More visible animated background */
.section-background {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.97),
        rgba(248, 247, 253, 0.97)
    ) !important;
}

/* Animated gradient mesh */
.mesh-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background: 
        radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(180, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(123, 97, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(180, 122, 255, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite alternate;
}

/* Floating shapes */
.shape-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(123, 97, 255, 0.08), rgba(180, 122, 255, 0.08));
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    animation: floatAnimation 25s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
    transform: rotate(45deg);
}

.floating-shape:nth-child(3) {
    width: 500px;
    height: 500px;
    top: 30%;
    right: 20%;
    animation-delay: -16s;
    transform: rotate(145deg);
}

/* Grid pattern */
.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(123, 97, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 97, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, -30px) rotate(10deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 50px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(-40px, -40px) rotate(15deg) scale(1.05);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Unified background for multiple sections */
.unified-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background: 
        radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(180, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(123, 97, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(180, 122, 255, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite alternate;
}

.shape-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(123, 97, 255, 0.08), rgba(180, 122, 255, 0.08));
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    animation: floatAnimation 25s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
    transform: rotate(45deg);
}

.floating-shape:nth-child(3) {
    width: 500px;
    height: 500px;
    top: 30%;
    right: 20%;
    animation-delay: -16s;
    transform: rotate(145deg);
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(123, 97, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 97, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(50px, -30px) rotate(10deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 50px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(-40px, -40px) rotate(15deg) scale(1.05);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.shared-background-wrapper {
    position: relative;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.97),
        rgba(248, 247, 253, 0.97)
    );
    margin-top: 0;
    padding-top: 0;
}

.shared-background-wrapper .unified-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Make animations more visible */
.mesh-background {
    opacity: 0.6;  /* Increased from 0.4 */
    background: 
        radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(180, 122, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(123, 97, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(180, 122, 255, 0.15) 0%, transparent 50%);
}

.floating-shape {
    background: linear-gradient(45deg, rgba(123, 97, 255, 0.15), rgba(180, 122, 255, 0.15));
}

.grid-pattern {
    opacity: 0.7;  /* Increased from 0.5 */
    background-size: 40px 40px;  /* Increased from 30px */
}

/* Ensure sections are above the background */
.features, .stats, .integrations, .pricing {
    position: relative;
    z-index: 1;
}

/* Standardize section padding */
.features, .stats, .integrations, .pricing {
    padding: 80px 0;  /* Same padding for all sections */
    margin: 0;  /* Remove any margins */
    position: relative;
    z-index: 1;
}

/* Remove any section-specific padding overrides */
.features {
    padding: 80px 0;  /* Was 80px 0 60px */
}

.stats {
    padding: 80px 0;  /* Was 60px 0 60px */
}

.integrations {
    padding: 80px 0;  /* Was 100px 0 60px */
}

.pricing {
    padding: 80px 0;  /* Was 120px 0 */
}

/* Adjust shared background wrapper */
.shared-background-wrapper {
    position: relative;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.97),
        rgba(248, 247, 253, 0.97)
    );
    margin-top: 0;
    padding-top: 0;
}

/* Ensure section headers have consistent spacing */
.section-header {
    margin-bottom: 60px;  /* Consistent bottom margin for all section headers */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        justify-self: center;
        max-width: 100%;
        height: auto;
    }

    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-badge {
        margin: 5px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 40px 0;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        justify-self: center;
        max-width: 100%;
        height: auto;
    }

    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-badge {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card, .pricing-card {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand, .footer-contact {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .cta-buttons .button {
        width: 100%;
        margin: 0;
    }

    .section {
        padding: 40px 0;
    }

    .hero-badges {
        gap: 10px;
    }

    .hero-badge {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 30px 0 20px;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .feature-card, .pricing-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

/* Fix for iOS Safari viewport height issue */
@supports (-webkit-touch-callout: none) {
    .section {
        min-height: -webkit-fill-available;
    }
}

/* Stats Section Responsive Styles */
.stats-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .stat-card {
        width: 100%;
        margin: 0 auto;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(123, 97, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .stats-container {
        margin: 50px auto;
        gap: 20px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-number {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin: 40px auto;
        max-width: 600px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .stats-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin: 30px auto;
        padding: 0;
    }

    .stat-card {
        width: 100%;
        padding: 20px 15px;
        margin: 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
        padding: 0 5px;
    }

    .stat-description {
        font-size: 0.85rem;
        padding: 0 5px;
        word-wrap: break-word;
    }
}

/* Integrations Section Styles */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 0 15px;
}

.integration-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(123, 97, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 300px;
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.integration-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.integration-description {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Styles for both sections */
@media (max-width: 1024px) {
    .credit-packages {
        gap: 15px;
        margin-top: 25px;
    }

    .credit-package {
        padding: 15px;
    }

    .credit-package h4 {
        font-size: 1.1rem;
    }

    .package-price {
        font-size: 1.3rem;
    }

    .price-per-credit {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .credit-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
        padding: 0 10px;
    }

    .credit-package {
        padding: 15px;
    }

    additional-credits {
        margin-top: 40px;
    }

    .additional-credits h3 {
        font-size: 1.4rem;
    }

    .additional-credits p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .credit-packages {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .credit-package {
        padding: 12px;
    }

    .credit-package h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .package-price {
        font-size: 1.2rem;
    }

    .price-per-credit {
        font-size: 0.8rem;
    }

    .additional-credits {
        margin-top: 30px;
    }

    .additional-credits h3 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .additional-credits p {
        font-size: 0.9rem;
    }
}

.file-types {
    padding: 80px 0;
    background: var(--bg-light);
}

.file-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.file-type-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.file-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.file-type-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.file-type-card p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.features-detailed {
    padding: 80px 0;
    background: white;
}

.features-detailed .features-grid {
    margin-top: 40px;
}

.features-detailed .feature-card {
    background: var(--bg-light);
}

.features-detailed .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

@media (max-width: 768px) {
    .file-types-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .file-type-card {
        padding: 20px;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.05) 0%, rgba(123, 97, 255, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(123, 97, 255, 0.1)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(123, 97, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(123, 97, 255, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(123, 97, 255, 0.15);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(123, 97, 255, 0.2);
    flex-shrink: 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

.step-card h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.step-card p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    opacity: 0.9;
    font-size: 1rem;
    background: rgba(123, 97, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
}

.step-features li i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.step-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(123, 97, 255, 0.05);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .steps-grid {
        max-width: 90%;
    }

    .step-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }

    .step-card {
        padding: 25px;
        gap: 30px;
    }

    .step-header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .step-header h3 {
        width: 100%;
        margin-top: 10px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-card h3 {
        font-size: 1.5rem;
    }

    .step-card p {
        font-size: 1rem;
    }

    .step-features {
        grid-template-columns: 1fr;
    }

    .step-features li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 20px;
        gap: 25px;
    }

    .step-card h3 {
        font-size: 1.3rem;
    }
}

.hero-title {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
    z-index: 2;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        top: 30px;
    }
}

/* Add app name styles */
.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .app-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 1.1rem;
    }
}

/* Hero Heading Block Styles */
.hero-heading-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.app-name-hero {
    font-size: 6.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    text-shadow: 0 8px 32px rgba(123,97,255,0.10);
    position: relative;
}

/* Decorative background element behind app name */
.app-name-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(circle, rgba(123,97,255,0.10) 0%, rgba(123,97,255,0.03) 100%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(8px);
}

.hero-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 1.2rem 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.85;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 600px;
}

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 0 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.1) 0%, rgba(123, 97, 255, 0.05) 100%);
    margin-bottom: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .app-name-hero { font-size: 5rem; }
    .hero-main-title { font-size: 2.5rem; }
}
@media (max-width: 900px) {
    .app-name-hero { font-size: 4.5rem; }
    .hero-main-title { font-size: 2rem; }
}
@media (max-width: 768px) {
    .hero {
        padding: 60px 10px 40px 10px;
    }
    .app-name-hero { font-size: 3.5rem; }
    .hero-main-title { font-size: 1.5rem; }
    .hero-heading-block { margin-bottom: 1.5rem; }
    .hero-content { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
    .app-name-hero { font-size: 2.5rem; }
    .hero-main-title { font-size: 1.1rem; }
    .hero-heading-block { margin-bottom: 1rem; }
}

.file-type-section {
    background: rgba(123, 97, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.file-type-section:last-child {
    margin-bottom: 0;
}

.file-type-section h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-type-section h4 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.file-type-section p {
    color: var(--text-dark);
    opacity: 0.8;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.file-type-section.file-limits {
    background: rgba(255, 193, 7, 0.1);
}

.file-type-section.file-limits h4 i {
    color: #ffc107;
}

@media (max-width: 768px) {
    .file-type-section {
        padding: 15px;
    }

    .file-type-section h4 {
        font-size: 1rem;
    }

    .file-type-section p {
        font-size: 0.95rem;
    }
}

.supported-files {
    background: rgba(123, 97, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.file-type-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(123, 97, 255, 0.1);
}

.file-type-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.file-type-row:first-child {
    padding-top: 0;
}

.file-type-label {
    flex: 0 0 120px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-type-label i {
    color: var(--primary);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.file-formats {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .supported-files {
        padding: 12px;
    }

    .file-type-label {
        flex: 0 0 100px;
        font-size: 0.9rem;
    }

    .file-formats {
        font-size: 0.9rem;
    }
}

/* Additional Features Section */
.features {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.features::before {
    display: none;
}

.features .section-header {
    text-align: center;
}

.features .section-header h2 {
    text-align: center;
    margin-bottom: 15px;
}

.features .section-header p {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-size));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.05);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient);
    -webkit-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.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card::before {
    display: none;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.feature-card h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

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

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

    .feature-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 15px;
    }
}

/* Pricing Section Styles */
.pricing-section {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.05) 0%, rgba(180, 122, 255, 0.05) 100%);
}

.pricing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.pricing-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.pricing-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(123, 97, 255, 0.1);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-sizing: border-box;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    margin-bottom: 12px;
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1.03);
        border: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
    }

    .pricing-card.popular:hover {
        transform: scale(1.03) translateY(-5px);
    }
}

@media (max-width: 1024px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-container {
        padding: 0 30px;
    }

    .pricing-header {
        margin-bottom: 40px;
    }

    .pricing-header h2 {
        font-size: 2rem;
    }

    .pricing-header p {
        font-size: 1.1rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 700px;
    }

    .pricing-card {
        padding: 35px 25px;
    }

    .pricing-card.popular {
        transform: scale(1.03);
    }

    .pricing-card.popular:hover {
        transform: scale(1.03) translateY(-5px);
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 50px 0;
    }

    .pricing-container {
        padding: 0 16px;
    }

    .pricing-header {
        margin-bottom: 40px;
    }

    .pricing-header h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .pricing-header p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        max-width: 450px;
        margin: 0 auto;
        padding: 0;
    }

    .pricing-card {
        padding: 30px 20px;
        margin: 0;
        width: 100%;
        transform: none !important;
    }

    .pricing-card.popular {
        order: -1;
        border: 2px solid var(--primary);
        box-shadow: none;
        background: white;
    }

    .pricing-card.popular:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(123, 97, 255, 0.1);
    }

    .plan-name {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .plan-price {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }

    .plan-features li {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 40px 0;
    }

    .pricing-container {
        padding: 0 16px;
    }

    .pricing-header {
        margin-bottom: 35px;
    }

    .pricing-header h2 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .pricing-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .pricing-grid {
        gap: 16px;
        max-width: 100%;
        padding: 0;
    }

    .pricing-card {
        padding: 25px 15px;
        width: 100%;
        margin: 0;
    }

    .plan-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .plan-price {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .plan-features li {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.4;
        padding: 0 5px;
        word-wrap: break-word;
    }

    .pricing-card.popular {
        transform: none !important;
        margin: 0 !important;
        order: -1;
        border: 2px solid var(--primary);
        box-shadow: none;
        background: white;
        z-index: 1;
    }

    .pricing-card.popular:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 4px 12px rgba(123, 97, 255, 0.1);
    }

    .pricing-card.popular::before {
        top: -8px;
        padding: 5px 12px;
        font-size: 0.75rem;
        box-shadow: 0 2px 6px rgba(123, 97, 255, 0.15);
    }
}

/* Additional Credits Section */
.additional-credits {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.03) 0%, rgba(180, 122, 255, 0.03) 100%);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .additional-credits {
        margin-top: 50px;
        padding: 40px 0;
    }

    .credits-grid {
        gap: 25px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .additional-credits {
        margin-top: 40px;
        padding: 35px 0;
    }

    .credits-grid {
        gap: 20px;
    }
}

.credits-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.credits-header h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.credits-header p {
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .credits-header {
        margin-bottom: 40px;
    }

    .credits-header h3 {
        font-size: 1.8rem;
    }

    .credits-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .credits-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .credits-header h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .credits-header p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px;
    }
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.credit-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(123, 97, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.08);
    min-height: 250px;
    justify-content: flex-start;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-sizing: border-box;
}

.credit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient);
    -webkit-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.3s ease;
}

.credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(123, 97, 255, 0.15);
}

.credit-card:hover::after {
    opacity: 1;
}

.credit-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.credit-amount {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.credit-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.credit-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.credit-features li {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.credit-features li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .credit-card {
        min-height: 220px;
        padding: 35px 25px;
    }

    .credit-features {
        margin-top: 18px;
    }

    .credit-features li {
        font-size: 0.95rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .credit-name {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .credit-amount {
        font-size: 2.5rem;
    }

    .credit-price {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .credit-card {
        min-height: 200px;
        padding: 30px 20px;
    }

    .credit-features {
        margin-top: 15px;
    }

    .credit-features li {
        font-size: 0.9rem;
        margin-bottom: 7px;
        line-height: 1.4;
    }

    .credit-name {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .credit-amount {
        font-size: 2.2rem;
    }

    .credit-price {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
}

/* How It Works Section with Background */
.how-it-works-wrapper {
    position: relative;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.97),
        rgba(248, 247, 253, 0.97)
    );
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
}

.how-it-works-wrapper .unified-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.how-it-works-wrapper .mesh-background {
    opacity: 0.4;
    background: 
        radial-gradient(circle at 0% 0%, rgba(123, 97, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(180, 122, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(123, 97, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(180, 122, 255, 0.12) 0%, transparent 50%);
}

.how-it-works-wrapper .floating-shape {
    background: linear-gradient(45deg, rgba(123, 97, 255, 0.08), rgba(180, 122, 255, 0.08));
}

.how-it-works {
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.how-it-works .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.how-it-works .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works .section-header p {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.8;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .how-it-works-wrapper {
        padding: 60px 0;
    }

    .how-it-works .section-header h2 {
        font-size: 2rem;
    }

    .how-it-works .section-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .how-it-works-wrapper {
        padding: 40px 0;
    }

    .how-it-works .section-header h2 {
        font-size: 1.8rem;
    }

    .how-it-works .section-header p {
        font-size: 1rem;
    }
}

.credit-card:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .credit-card:hover,
    .pricing-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(123, 97, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .credit-card:hover,
    .pricing-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(123, 97, 255, 0.08);
    }

    .pricing-card.popular:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(123, 97, 255, 0.08);
    }
}

.card-wrapper {
    position: relative;
    padding-top: 0;
}

.pricing-card.popular::before {
    content: '★ Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.2);
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .pricing-card.popular::before {
        top: -10px !important;
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
        box-shadow: 0 3px 8px rgba(123, 97, 255, 0.18) !important;
    }
}

@media (max-width: 480px) {
    .pricing-card.popular::before {
        top: -8px !important;
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
        box-shadow: 0 2px 6px rgba(123, 97, 255, 0.15) !important;
    }
}

.credit-card,
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(123, 97, 255, 0.1);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
}