:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);
    /* More transparent */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #94a3b8;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent: #ec4899;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    --gradient-glow: 0 0 30px rgba(99, 102, 241, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #db2777 0%, transparent 70%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary i {
    margin-left: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 100px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
    background: rgba(15, 23, 42, 0.7);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    display: flex;
    padding: 6rem 5%;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-item i {
    color: #4ade80;
}

/* Browser Mockup Area */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.browser-mockup {
    width: 100%;
    max-width: 550px;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.browser-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.browser-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #eab308;
}

.dots span:nth-child(3) {
    background: #22c55e;
}

.url-bar {
    flex: 1;
    background: #1e293b;
    height: 24px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.browser-content {
    height: 350px;
    background: #f8fafc;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.mock-hero {
    height: 150px;
    background: #cbd5e1;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: pulse 4s infinite;
}

.mock-text {
    width: 60%;
    height: 10px;
    background: #94a3b8;
    border-radius: 10px;
}

.mock-btn {
    width: 30%;
    height: 20px;
    background: #64748b;
    border-radius: 4px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mock-card {
    height: 100px;
    background: #e2e8f0;
    border-radius: 8px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.ai-msg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    color: #0f172a;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    animation: float 6s ease-in-out infinite;
}

.ai-msg i {
    font-size: 1.5rem;
    color: #6366f1;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    animation: typing 1s infinite;
    margin: 0 2px;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Builder Section */
.builder-container {
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.section-badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.wizard-wrapper {
    display: flex;
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
}

.wizard-steps-sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 12px;
}

.step-indicator.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.step-indicator.completed .step-icon {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.step-indicator.active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.line {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 29px;
}

.step-label h4 {
    font-size: 1.1rem;
}

.wizard-card {
    flex: 1;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Builder Forms */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    outline: none;
    transition: all 0.2s;
    font-size: 1rem;
}

textarea {
    padding-left: 1rem;
}

/* No icon logic for simpler textarea here yet */

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Style Selection */
.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.style-option input {
    display: none;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.preview-swatch {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.modern .preview-swatch {
    background: linear-gradient(135deg, #f3f4f6, #d1d5db);
}

.elegant .preview-swatch {
    background: linear-gradient(135deg, #fdfbf7, #e5e7eb);
    border: 1px solid gold;
}

.bold .preview-swatch {
    background: linear-gradient(135deg, #111, #333);
}

.playful .preview-swatch {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}
/* Minimal White */
.minimal .preview-swatch {
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    border: 1px solid #ddd;
}

/* Nature Green */
.nature .preview-swatch {
    background: linear-gradient(135deg, #a7f3d0, #34d399);
}

/* Luxury Gold */
.luxury .preview-swatch {
    background: linear-gradient(135deg, #f7e9a6, #e6c200);
    border: 1px solid #c9a300;
}

/* Neon Glow */
.neon .preview-swatch {
    background: linear-gradient(135deg, #0ff, #00f6ff);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Ocean Blue */
.ocean .preview-swatch {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Sunset */
.sunset .preview-swatch {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}


.style-option input:checked+.option-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.step-actions.right {
    justify-content: flex-end;
}

/* Result Screen */
.success-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.action-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-item.highlight {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.action-item i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.action-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-box {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease backwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    padding: 4rem 5%;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .wizard-wrapper {
        flex-direction: column;
    }

    .wizard-steps-sidebar {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 2rem;
    }

    .line {
        width: 30px;
        height: 2px;
        margin: 0;
    }

    .step-label {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding-top: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        width: 100%;
    }

    .cta-group {
        align-items: center;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works-section {
    padding: 6rem 5%;
    background: rgba(255, 255, 255, 0.02);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.step-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 6rem 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==================== PROFILE MENU ==================== */
.profile-menu {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-btn i:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

.profile-btn i:last-child {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.profile-menu.active .profile-btn i:last-child {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 200px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.profile-menu.active .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.profile-dropdown a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.profile-dropdown a i {
    width: 20px;
    text-align: center;
}

/* ==================== FADE IN ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}