@import 'variables.css';

:root {
    --nav-height: 80px;
}


.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.theme-toggle-btn:hover {
    color: var(--primary);
}


.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.4rem;
    font-weight: 800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 40%, var(--glow-1), transparent 30%),
        radial-gradient(circle at 90% 20%, var(--glow-2), transparent 30%),
        radial-gradient(circle at 50% 80%, var(--glow-3), transparent 35%),
        radial-gradient(circle at 70% 60%, var(--glow-4), transparent 35%),
        linear-gradient(to bottom right, var(--primary-soft), var(--secondary-soft), transparent);
    background-attachment: fixed;
    background-repeat: no-repeat;
    animation: gentleGlow 20s ease-in-out infinite alternate;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes gentleGlow {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

    100% {
        background-position: 100% 100%, 20% 20%, -20% 20%, 20% -20%, -20% -20%;
    }
}

body.light {
    background-color: var(--background);
    color: var(--text);
    background-image:
        radial-gradient(circle at 10% 40%, var(--glow-1), transparent 30%),
        radial-gradient(circle at 90% 20%, var(--glow-2), transparent 30%),
        radial-gradient(circle at 50% 80%, var(--glow-3), transparent 35%),
        radial-gradient(circle at 70% 60%, var(--glow-4), transparent 35%),
        linear-gradient(to bottom right, var(--primary-soft), var(--secondary-soft), transparent);
    background-attachment: fixed;
    background-repeat: no-repeat;
    animation: gentleGlow 20s ease-in-out infinite alternate;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--primary-soft);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(4, 116, 196, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(4, 116, 196, 0);
    }
}

/* Navbar */
.mobile-nav-toggle,
.mobile-nav-links,
.mobile-nav-overlay,
.mobile-only {
    display: none;
}

nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links.desktop-only {
    display: flex;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
}

.nav-links a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border);
}

.btn-login:hover {
    background: var(--border);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

/* .hero::before removed as requested */

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-cta {
        justify-content: center;
    }
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--primary);
    border-radius: 32px;
    opacity: 0.2;
    z-index: -1;
    animation: float 6s infinite ease-in-out;
}

/* Features */
.features {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(30, 41, 59, 0.3), transparent);
}

.how-it-works {
    padding: 6rem 0;
    background: rgba(30, 41, 59, 0.1);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.step-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}


.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats */
.stats {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
        background: var(--primary);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .auth-buttons {
        gap: 0.5rem;
        align-items: center;
    }

    /* Mobile Drawer */
    .mobile-nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 3000;
        border-left: 1px solid var(--border);
        list-style: none;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .mobile-nav-links.active {
        transform: translateX(0);
    }

    .mobile-nav-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        color: var(--text-dim);
        font-size: 1.1rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .mobile-nav-links a i {
        width: 20px;
        height: 20px;
        color: var(--primary);
    }

    .mobile-nav-links a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        transform: translateX(5px);
    }

    /* Overlay */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 2999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-nav-links.active+.mobile-nav-overlay,
    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle i {
    width: 18px;
    height: 18px;
}


.mobile-only {
    display: none;
}


.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* CTA Section */
.cta-banner {
    padding: 6rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    background: --var(—glass);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-links h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Screenshots Gallery */
.screenshots {
    padding: 6rem 0;
    background: rgba(30, 41, 59, 0.2);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
}

.screenshot-item:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
    width: 100%;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.screenshot-item:hover img {
    filter: grayscale(0%);
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Comparison Table */
.comparison {
    padding: 8rem 0;
}

.comparison-table-wrap {
    max-width: 900px;
    margin: 4rem auto 0;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text);
    padding: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--border);
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: middle;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td:first-child {
    color: var(--text);
    font-weight: 600;
    width: 40%;
}

.comparison-table td:not(:first-child) {
    text-align: center;
    width: 30%;
}

.comparison-table .tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.tag-free {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.tag-pro {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

@media (max-width: 768px) {
    .comparison-table-wrap {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 600px;
    }
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1046px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.pricing-features i {
    color: var(--primary);
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}