* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #111118;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #1f1f2e;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Reduce animations on mobile for better performance */
@media (prefers-reduced-motion: reduce) {
    .background-animation {
        display: none;
    }
}

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s;
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-cta {
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: clamp(1rem, 2vw, 1.1rem);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px; /* Touch target size */
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-cta:active {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .btn-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: clamp(1rem, 2vw, 1.1rem);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.btn-secondary:active {
    background: rgba(99, 102, 241, 0.2);
}

@media (max-width: 480px) {
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

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

@media (max-width: 480px) {
    .features-grid {
        gap: 1rem;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-darker);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        gap: 1rem;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.pricing-card:hover::before {
    opacity: 0.1;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.btn-pricing {
    display: block;
    text-align: center;
    background: var(--gradient-1);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.about-features {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.about-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.about-feature p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: var(--bg-darker);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

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

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.btn-cta-large {
    background: var(--gradient-1);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.2rem;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    background: var(--bg-darker);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .features,
    .pricing,
    .about,
    .cta,
    .contact {
        padding: 80px 0;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        border-top: 1px solid var(--border-color);
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn-cta,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .about-feature-icon {
        margin: 0 auto;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .features,
    .pricing,
    .about,
    .cta,
    .contact {
        padding: 60px 0;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .pricing-name {
        font-size: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .btn-cta-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .features,
    .pricing,
    .about,
    .cta,
    .contact {
        padding: 50px 0;
    }
    
    .footer {
        padding: 2rem 0;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-cta,
    .btn-secondary,
    .btn-cta-large {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .pricing-card:hover,
    .contact-item:hover {
        transform: none;
    }
    
    .btn-cta:hover,
    .btn-secondary:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        width: 1px;
        height: 1px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

