:root {
    --primary: #6366f1;
    --primary-soft: #eef2ff;
    --accent: #f43f5e;
    --text-main: #0f172a;
    --text-dim: #64748b;
    --bg-page: #ffffff;
    --bg-card: #f8fafc;
    --border: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Professional Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

nav .container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Hero & Tool Layout */
.main-wrapper {
    padding-top: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    min-height: auto;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    max-width: 900px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin: 0 auto 3rem;
    max-width: 700px;
}

/* The Tool Card - New Floating Design */
.tool-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 800px;
    position: relative;
    transition: var(--transition);
}

.tool-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 5rem 2rem;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* Results Display */
.result-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

#promptResult {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 8rem 0;
}

.feature-item {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.feature-item i {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Content Sections */
.seo-article {
    max-width: 800px;
    margin: 0 auto 8rem;
}

.seo-article h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.seo-article p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    nav {
        width: calc(100% - 2rem);
        padding: 0.5rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .main-wrapper {
        padding-top: 6rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--text-main);
    transform: scale(1.05);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* Utilities */
.shiny-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}