/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --bg-color: #100f1c;
    --card-bg: #1a182a;
    --primary-color: #00f2fe;
    --secondary-color: #a450e1;
    --accent-color: #f72585;
    --text-color: #f0f0f8;
    --text-muted: #a0a0c0;
    --border-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* Performance optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography with better performance */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    font-display: swap;
}

h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
}
h2 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    text-align: center; 
    margin-bottom: 50px;
}
h3 { 
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

/* Improved images for SEO */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    background-size: 200%;
}

.btn-primary:hover,
.btn-primary:focus {
    background-position: right;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease;
    will-change: background;
}

.main-header.scrolled {
    background: rgba(26, 24, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

.logo > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo span {
    font-size: 1.8rem;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.logo i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.logo:hover { 
    color: var(--text-color); 
}

.logo:hover .logo-sub { 
    color: var(--accent-color); 
}

.logo:hover i { 
    color: var(--accent-color); 
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text-color);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    margin: 10px 0 30px;
}

#dynamic-text {
    font-weight: 700;
    color: var(--primary-color);
    transition: opacity 0.3s ease-in-out;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(0.2);
    z-index: 1;
    opacity: 0.7;
    will-change: transform;
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card ul {
    padding-left: 20px;
}

.feature-card li {
    margin-bottom: 10px;
    color: var(--text-muted);
    position: relative;
}

.feature-card li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: -20px;
    font-weight: bold;
}

.specialized-extras {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 5px solid var(--secondary-color);
}

/* --- PRICING SECTION --- */
.pricing-section {
    background: var(--card-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.pricing-card {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
}

.pricing-card:hover,
.pricing-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.benefits-list {
    text-align: left;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.benefits-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                var(--border-gradient) border-box;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-image: var(--border-gradient);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- COMPARISON SECTION --- */
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 50px auto;
    color: var(--text-muted);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-card {
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.comparison-card:hover,
.comparison-card:focus-within {
    transform: translateY(-5px);
}

.comparison-card.highlight {
    background-color: #2a283e;
}

.comparison-card h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.comparison-card .comparison-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: center;
}

.comparison-card .comparison-note a {
    font-weight: 600;
}

.comparison-card ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.comparison-card.highlight ul li {
    color: var(--text-color);
}

.icon-good { 
    color: #2ecc71; 
    font-weight: bold; 
    font-size: 1.2rem; 
    flex-shrink: 0;
}

.icon-bad { 
    color: #e74c3c; 
    font-weight: bold; 
    font-size: 1.2rem; 
    flex-shrink: 0;
}

/* --- VALUE PROP SECTION --- */
.value-prop-section {
    background-color: var(--card-bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.value-item:hover,
.value-item:focus-within {
    transform: translateY(-5px);
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    color: var(--text-muted);
}

/* --- ABOUT SECTION --- */
#about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid;
    border-image: var(--border-gradient) 1;
    flex-shrink: 0;
}

.about-content h3 {
    margin-bottom: 15px;
}

/* --- FINAL CTA SECTION --- */
.cta-section {
    background: var(--card-bg);
    text-align: center;
}

.cta-section .stats {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 20px 0 30px;
}

.ps-notes {
    margin-top: 40px;
    color: var(--text-muted);
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #0b0a14;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    color: var(--text-muted);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
}

/* --- ANIMATIONS & RESPONSIVENESS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .logo {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        font-size: 1.2rem;
    }

    .logo > div {
        align-items: flex-start;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    /* Mobile navigation animations */
    .mobile-nav-active .hamburger-menu span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-nav-active .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-active .hamburger-menu span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(16, 15, 28, 0.98);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .mobile-nav-active .mobile-nav {
        transform: translateX(0);
    }
    
    .mobile-nav-active body {
        overflow: hidden;
    }

    .mobile-nav a {
        font-size: 2rem;
        margin: 20px 0;
        color: var(--text-color);
        text-decoration: none;
    }

    .mobile-nav a:hover,
    .mobile-nav a:focus {
        color: var(--primary-color);
    }

    .pricing-grid, 
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    #about .container {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    /* Touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
    
    .main-nav {
        display: flex;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-color: #000000;
        --card-bg: #1a1a1a;
        --text-color: #ffffff;
        --text-muted: #cccccc;
    }
}

/* Dark mode support (redundant but explicit) */
@media (prefers-color-scheme: dark) {
    /* Already using dark colors, but explicitly stating support */
    :root {
        color-scheme: dark;
    }
}

/* Print styles */
@media print {
    .main-header,
    .mobile-nav,
    .hamburger-menu,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-background {
        display: none;
    }
    
    section {
        padding: 20px 0;
    }
}