:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #2dd4bf;
    --bg-dark: #020617;
    --text-light: #f8fafc;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --outfit: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--outfit);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Layout */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-radius: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

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

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Test Section */
.test-container {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.main-test-box {
    width: 100%;
    max-width: 700px;
    padding: 40px;
}

.test-header {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

.question-container {
    min-height: 250px;
}

.question-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question-step.active {
    display: block;
}

.question-step h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    gap: 15px;
}

.option-btn {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
    color: white;
    font-family: inherit;
}

.option-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
}

.option-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-nav {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-weight: 600;
}

.btn-nav:not(:disabled):hover {
    color: white;
}

/* Category Tag */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Final Step */
.final-step {
    text-align: center;
}

.final-step h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.input-group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.glass-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Smartizable Badge */
.smartizable-branding {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    text-decoration: none;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--outfit);
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 6px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.smartizable-branding:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.smartizable-branding .s-initial {
    font-family: 'Brush Script MT', cursive;
    font-size: 16px;
    font-weight: bold;
    margin-right: 2px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.smartizable-branding .smart-text {
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.smartizable-branding:hover .smart-text {
    opacity: 1;
}

footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    font-size: 1.5rem;
    color: #64748b;
    margin: 0 10px;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    nav {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }
}