/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Animated Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.4);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(56, 189, 248, 0.3);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.3);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 20px;
    z-index: 10;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections Layout */
main {
    padding-top: 80px; 
}

.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-3d {
        height: 300px;
    }
    .nav-links {
        display: none; /* Hide on very small screens for simplicity, or use flex-wrap */
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 20px 0;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.hero-3d {
    height: 400px;
    width: 100%;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Cards & 3D Effect */
.card-3d-hover {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.step-card, .feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 3rem;
    color: #ec4899;
    margin-bottom: 20px;
}

.step-card h3, .feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-card p, .feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 15px;
    border-radius: 16px;
}

/* Pricing */
.pricing-card-container {
    display: flex;
    justify-content: center;
}

.pricing-card {
    max-width: 400px;
    width: 100%;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
}

.price span:first-child { font-size: 2rem; vertical-align: top; }
.period { font-size: 1rem; color: var(--text-muted); font-weight: normal; }

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.text-green { color: #10b981; }

.mt-4 { margin-top: 20px; }
.text-center { text-align: center; justify-content: center; }

/* Legacy Header/Logo overrides for inside the form */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.badge {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Glass Card (Used for Form and Pricing) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Upload Area */
.upload-area {
    margin-bottom: 25px;
}

.upload-area input {
    display: none;
}

.upload-area label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed rgba(139, 92, 246, 0.5);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.4);
}

.upload-area label:hover, .upload-area label.highlight {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.icon-container {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon {
    font-size: 2rem;
    color: var(--primary);
}

#file-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.file-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.95rem;
    background-color: rgba(15, 23, 42, 0.6);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

select:focus {
    border-color: var(--primary);
}

select option {
    background: var(--bg-dark);
    color: #fff;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.hidden {
    display: none !important;
}

/* AI Loading Spinner */
#loading {
    text-align: center;
    margin-top: 10px;
}

.ai-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    gap: 6px;
    margin-bottom: 15px;
}

.wave {
    width: 5px;
    height: 10px;
    background: var(--primary);
    border-radius: 5px;
    animation: wave 1s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 10px; background: var(--primary); }
    50% { height: 35px; background: #ec4899; }
}

#loading p {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

#loading small {
    color: var(--text-muted);
}

/* Alert */
.alert.error {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

footer {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.developer-credit {
    position: fixed;
    bottom: 20px;
    right: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.developer-credit:hover {
    opacity: 1;
}

.developer-credit span {
    color: var(--primary);
}
