:root {
    /* Refined Dark theme colors */
    --color-dark-background: #050508;
    --color-component-background: #0f0f1a;
    --color-light-text: #f8f9fa;
    --color-accent: #c5ff02;
    --color-accent-rgb: 197, 255, 2;
    --color-accent-darker: #b8e600;
    --color-accent-gradient-start: #c5ff02;
    --color-accent-gradient-end: #89ff00;
    
    --color-text-muted: #94a3b8;
    --color-text-muted-dark: #64748b;
    --color-border-light: rgba(255, 255, 255, 0.1);
    --color-border-medium: rgba(255, 255, 255, 0.05);
    --color-border-dark: rgba(255, 255, 255, 0.03);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-gradient-start) 0%, var(--color-accent-gradient-end) 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(5, 5, 8, 0) 0%, rgba(5, 5, 8, 0.8) 70%, #050508 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-accent: 0 0 20px rgba(197, 255, 2, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--color-light-text);
    background: var(--color-dark-background);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.75rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin-right: auto;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
}

.btn-xs {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.btn-primary {
    background: var(--color-accent);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    background: #d4ff33;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
    background: #fff;
    color: #000;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 12rem 0 0rem;
    overflow: hidden;
    background: radial-gradient(circle at top center, #141425 0%, #050508 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10H90V90H10V10Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

/* Hero Showcase */
.hero-showcase {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1500px;
}

.browser-frame {
    background: #1a1a2e;
    border-radius: 1rem 1rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-showcase:hover .browser-frame {
    transform: rotateX(0deg) translateY(-10px);
}

.browser-header {
    background: #0f0f1a;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.showcase-img {
    width: 100%;
    display: block;
    height: auto;
}

/* Feature Rows */
.api-integrations {
    padding: 10rem 0;
    background: var(--color-dark-background);
}

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

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 8rem;
    margin-bottom: 15rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(197, 255, 2, 0.1);
    border: 1px solid rgba(197, 255, 2, 0.2);
    border-radius: 2rem;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.feature-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-light-text);
    font-weight: 500;
}

.feature-list i {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.feature-visual {
    flex: 1.2;
}

.visual-inner {
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-row:hover .visual-inner {
    transform: translateY(-10px) scale(1.02);
}

.visual-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature Grid (for minor features) */
.features-overview {
    padding: 10rem 0;
    background: #08080c;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 255, 2, 0.2);
    transform: translateY(-8px);
}

.feature-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.feature-icon.generation { background: rgba(102, 126, 234, 0.1); color: #667eea; }
.feature-icon.removal { background: rgba(79, 172, 254, 0.1); color: #4facfe; }
.feature-icon.upscaling { background: rgba(67, 233, 123, 0.1); color: #43e97b; }
.feature-icon.export { background: rgba(168, 237, 234, 0.1); color: #a8edea; }

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

/* Pricing Section */
.pricing {
    padding: 10rem 0;
    background: var(--color-dark-background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: #0a0a14;
    border-radius: 2.5rem;
    padding: 4rem 3rem;
    border: 1px solid var(--color-border-light);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    background: radial-gradient(circle at top right, rgba(197, 255, 2, 0.05), transparent), #0a0a14;
    box-shadow: 0 30px 60px -15px rgba(197, 255, 2, 0.1);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-accent);
    color: #000;
    padding: 0.625rem 1.5rem;
    border-radius: 3rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.amount {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.period {
    font-size: 1.125rem;
    color: var(--color-text-muted-dark);
}

.storage {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.pricing-features {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-feature i {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

/* CTA Section */
.cta {
    padding: 10rem 0;
    background: var(--color-dark-background);
}

.cta-box {
    background: var(--color-accent);
    border-radius: 4rem;
    padding: 8rem 4rem;
    color: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.cta-box p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 500;
    opacity: 0.9;
}

.btn-dark {
    background: #000;
    color: #fff;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-dark:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    padding: 5rem 0;
    border-top: 1px solid var(--color-border-dark);
    text-align: center;
}

.footer p {
    color: var(--color-text-muted-dark);
    font-size: 0.9375rem;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-row {
        flex-direction: column !important;
        gap: 4rem;
        margin-bottom: 10rem;
        text-align: center;
    }

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

    .feature-list {
        justify-content: center;
    }

    .feature-list li {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .cta-box {
        padding: 6rem 2rem;
        border-radius: 3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
