:root {
    --primary: #8b5cf6;
    --secondary: #06b6d4;
    --bg: #0a0812;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --error: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 100%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1);
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Drop Zone */
.drop-zone {
    height: 180px;
    border: 2px dashed var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.drop-zone i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-dim), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drop-zone span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.drop-zone input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone .preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
    z-index: 2;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.full-width {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
}

/* Number Control */
.number-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
}

.number-control button {
    background: none;
    border: none;
    color: #fff;
    width: 40px;
    height: 48px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.number-control button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.number-control input {
    background: none;
    border: none;
    color: #fff;
    width: 60px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
}

.radio-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.radio-btn input:checked+span {
    border-color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Textarea */
textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Submit Button */
.form-footer {
    margin-top: 3rem;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.submit-btn .btn-loader {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.success-card {
    background: #111;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    border: 1px solid var(--border);
}

.success-card i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-card h2 {
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.close-btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    border: none;
    background: #222;
    color: #fff;
    cursor: pointer;
}

/* Utils */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto;
    }

    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .full-width {
        grid-column: auto;
    }

    .radio-group {
        flex-direction: column;
    }

    .drop-zone {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .success-card {
        padding: 2rem;
        margin: 1rem;
    }
}