@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #00f2ff;
    --primary-rgb: 0, 242, 255;
    --secondary: #7000ff;
    --accent: #ff007a;
    --bg: #050505;
    --surface: #0a0a0a;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --grad: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Abstract Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 { background: var(--primary); top: -10%; left: -10%; }
.blob-2 { background: var(--secondary); bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { background: var(--accent); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.1; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(10%, 10%) scale(1.1); }
}

/* Typography Overrides */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: white;
    color: black;
}

/* Main Container */
.container {
    padding-top: 60px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Landing Section */
.landing-card {
    text-align: center;
    padding: 40px 24px;
    width: 100%;
    max-width: 500px;
}

.onboarding-header h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.onboarding-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Featured Input Step */
.step {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.input-group {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.input-group:focus-within {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}

.input-group span.prefix {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 8px;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.submit-btn.main-action {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-btn.main-action:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.2);
}

/* Feature Grid (The "Taunting" section) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 24px;
    width: 100%;
    max-width: 1000px;
}

/* Dynamic Feature Showcase */
.feature-showcase {
    width: calc(100% - 24px);
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 25px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    margin: 10px auto 30px auto; 
    text-align: center;
    transition: all 0.5s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-showcase::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.showcase-content {
    width: 100%;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-showcase h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.feature-showcase p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 12px auto;
}

.feature-showcase .tag {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.taunt-text {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    min-height: 1.4em;
    position: relative;
    display: inline-block;
}

.taunt-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

/* Question Card Styles (Revamped) */
#questionCard {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    width: calc(100% - 48px);
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.card-header {
    background: rgba(255,255,255,0.03);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-img {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 2px solid var(--primary);
    padding: 2px;
}

.username {
    color: var(--primary);
    font-weight: 700;
}

.prompt {
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

.card-body {
    padding: 32px 24px;
}

textarea {
    width: 100%;
    min-height: 150px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    resize: none;
    outline: none;
}

textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.dice-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.dice-btn:hover {
    background: white;
    color: black;
}

/* Modals & Overlays */
.success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 32px;
    text-align: center;
    color: white;
    width: calc(100% - 48px);
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay[style*="display: flex"] {
    opacity: 1;
}

.success-overlay[style*="display: flex"] .success-card {
    transform: scale(1);
}

/* GIF Grid */
.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: none;
}

.gif-grid::-webkit-scrollbar {
    display: none;
}

.gif-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.gif-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Animations & Transitions */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Background Patterns (for user branding) */
.bg-1 { background: linear-gradient(135deg, #6366f1, #a855f7) !important; }
.bg-2 { background: linear-gradient(135deg, #ec4899, #f97316) !important; }
.bg-3 { background: linear-gradient(135deg, #22c55e, #14b8a6) !important; }
.bg-4 { background: #000000 !important; }
.bg-5 { background: #3b82f6 !important; }
.bg-6 { 
    background: #1e293b !important;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0) !important;
    background-size: 20px 20px !important;
}

/* PC Optimization */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .onboarding-header h1 {
        font-size: 5rem;
    }
    
    .container {
        padding-top: 140px;
    }
}
