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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

.app {
    position: relative;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.floating-codes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-code {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 10s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    50% {
        transform: translateY(-30px) rotate(2deg);
        opacity: 0.1;
    }
    90% {
        opacity: 0.15;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, #fff 0%, #c9a959 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(201, 169, 89, 0.3);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #888;
    margin-bottom: 3rem;
    font-style: italic;
}

.hero-image-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 700px;
    margin: 0 auto;
}

.hero-image-container:hover {
    transform: scale(1.02);
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    filter: sepia(20%) contrast(1.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 100px rgba(201, 169, 89, 0.1);
    border: 2px solid rgba(201, 169, 89, 0.3);
}

.squad-approval {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: #4ecdc4;
    animation: pulse 0.5s ease-in-out;
    text-shadow: 0 0 20px #4ecdc4;
    border: 2px solid #4ecdc4;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.stat-value {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4ecdc4 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Terminal Section */
.terminal-section {
    padding: 4rem 2rem;
    position: relative;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 2rem;
    color: #4ecdc4;
}

.terminal {
    max-width: 700px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 150px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    font-family: 'JetBrains Mono', monospace;
    color: #4ecdc4;
    margin-right: 0.5rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
}

.terminal-input::placeholder {
    color: #555;
}

.terminal-processing {
    margin-top: 1rem;
    color: #ffe66d;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.processing-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffe66d;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.terminal-result {
    margin-top: 1rem;
    color: #4ecdc4;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeIn 0.5s ease;
}

.result-subtext {
    color: #666;
    font-size: 0.8rem;
}

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

.generate-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: fall 3s ease-out forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Roles Section */
.roles-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.role-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b6b;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2);
}

.role-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    filter: grayscale(100%);
}

.role-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.role-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}

/* Vibe Meter Section */
.vibe-meter-section {
    padding: 4rem 2rem;
}

.vibe-meter {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.vibe-gauge {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.vibe-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 50%, #ff6b6b 100%);
    border-radius: 20px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.vibe-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vibe-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.vibe-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #4ecdc4;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.vibe-message {
    margin-top: 1rem;
    color: #ff6b6b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Share Section */
.share-section {
    padding: 2rem;
    text-align: center;
}

.share-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-built {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.footer-built a {
    color: #4ecdc4;
    text-decoration: none;
}

.footer-built a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.terminal-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #4ecdc4;
    cursor: pointer;
}

.terminal-link:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}