* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7fafc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#particleCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 50px;
    animation: slideDown 0.6s ease;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a.active,
nav a:hover {
    color: white;
}

nav a.active::after,
nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-menu a {
    display: block;
    padding: 15px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

/* Hero Section */
.features-hero {
    text-align: center;
    padding: 60px 0;
    color: white;
    animation: fadeIn 1s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Feature Categories */
.feature-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.category-icon {
    font-size: 20px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon {
    font-size: 35px;
}

.feature-card h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: #4a5568;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

.feature-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Advanced Features */
.advanced-features {
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.advanced-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.advanced-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.advanced-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.advanced-icon {
    font-size: 40px;
}

.advanced-card h3 {
    font-size: 24px;
    color: #2d3748;
}

.advanced-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: #f7fafc;
    color: #4a5568;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* Integration Showcase */
.integration-showcase {
    background: white;
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 80px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.section-subtitle {
    color: #718096;
    font-size: 18px;
    margin-bottom: 40px;
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    background: #f7fafc;
    transform: translateY(-5px);
}

.logo-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item span {
    font-weight: 600;
    color: #718096;
}

/* Performance Section */
.performance-section {
    margin-bottom: 80px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.metric-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.metric-chart {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.metric-card h3 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 10px;
}

.metric-card p {
    color: #718096;
}

/* Comparison Table */
.comparison-section {
    background: white;
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: var(--card-shadow);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 40px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #f7fafc;
    padding: 20px;
    text-align: left;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #4a5568;
}

.feature-name {
    font-weight: 600;
    color: #2d3748;
}

.payflow-col {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
    font-weight: 600;
}

.company-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.check {
    color: #48bb78;
    font-weight: bold;
}

.cross {
    color: #f56565;
    font-weight: bold;
}

/* Developer Section */
.developer-section {
    background: #1a202c;
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 80px;
    color: white;
}

.developer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.code-preview {
    background: #2d3748;
    border-radius: 15px;
    overflow: hidden;
}

.code-header {
    background: #4a5568;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-lang {
    font-weight: 600;
    color: #a0aec0;
}

.copy-btn {
    background: transparent;
    border: 1px solid #718096;
    color: #a0aec0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #4a5568;
    color: white;
}

pre {
    padding: 30px;
    overflow-x: auto;
}

code {
    color: #68d391;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.developer-features h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #2d3748;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: #4a5568;
    transform: translateX(5px);
}

.resource-icon {
    font-size: 24px;
}

/* Testimonials */
.testimonials-section {
    margin-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.stars {
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-author strong {
    display: block;
    color: #2d3748;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #718096;
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    border-radius: 24px;
    padding: 80px 60px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    padding: 40px 0;
    background: white;
    border-radius: 20px 20px 0 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
    color: #4a5568;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .developer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-categories {
        padding: 20px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .comparison-table {
        overflow-x: scroll;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .developer-section,
    .comparison-section {
        padding: 40px 20px;
    }
}