﻿:root {
    --bg-dark: #0a0014;
    --bg-mid: #150020;
    --card-bg: rgba(20, 10, 30, 0.6);
    --orange: #FF5E00;
    --pink: #FF2E88;
    --text: #ffffff;
    --text-muted: #b8b0c8;
    --glow-orange: rgba(255, 94, 0, 0.3);
    --glow-pink: rgba(255, 46, 136, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at top, var(--bg-mid) 0%, var(--bg-dark) 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    line-height: 1.6;
}

    body::before {
        content: '';
        position: fixed;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 20% 30%, var(--glow-pink) 0%, transparent 50%), radial-gradient(circle at 80% 70%, var(--glow-orange) 0%, transparent 50%);
        animation: float 20s ease-in-out infinite;
        pointer-events: none;
        opacity: 0.15;
        z-index: 0;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 40px var(--glow-pink));
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.controls-hero {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn:hover:not(:disabled)::before {
        width: 300px;
        height: 300px;
    }

    .btn.primary {
        background: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
        color: white;
        box-shadow: 0 10px 40px rgba(255, 46, 136, 0.4);
    }

        .btn.primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 15px 50px rgba(255, 46, 136, 0.6);
        }

        .btn.primary:active:not(:disabled) {
            transform: translateY(0);
        }

    .btn:not(.primary) {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

        .btn:not(.primary):hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--orange);
        }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.sample-selector {
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: center;
}

    .sample-selector label {
        display: block;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        color: var(--text);
    }

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--orange), var(--pink));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .card:hover::before {
        opacity: 1;
    }

    .card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .card:nth-child(4) {
        animation-delay: 0.25s;
    }

    .card:nth-child(5) {
        animation-delay: 0.3s;
    }

    .card:nth-child(6) {
        animation-delay: 0.35s;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    border-color: var(--orange);
    box-shadow: 0 20px 60px rgba(255, 94, 0, 0.15);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-number {
    font-size: 1rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card h2 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.control-block {
    margin-bottom: 1.5rem;
}

    .control-block label {
        display: block;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
    }

.sample-select, select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .sample-select:hover, select:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--orange);
    }

    .sample-select:focus, select:focus {
        outline: none;
        border-color: var(--pink);
        box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.2);
    }

    .sample-select option, select option {
        background: var(--bg-mid);
        color: var(--text);
        padding: 0.5rem;
    }

.control-row {
    margin-bottom: 1.5rem;
}

    .control-row label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        color: var(--text);
    }

        .control-row label span {
            background: linear-gradient(135deg, var(--orange), var(--pink));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
            font-size: 1.1rem;
            min-width: 60px;
            text-align: right;
        }

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: linear-gradient(135deg, var(--orange), var(--pink));
        cursor: pointer;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(255, 46, 136, 0.4);
        transition: all 0.3s ease;
    }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 6px 20px rgba(255, 46, 136, 0.6);
        }

    input[type="range"]::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: linear-gradient(135deg, var(--orange), var(--pink));
        cursor: pointer;
        border-radius: 50%;
        border: none;
        box-shadow: 0 4px 12px rgba(255, 46, 136, 0.4);
    }

.micro {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.demo-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn.reset {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn.toggle-demo {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.divider {
    grid-column: 1 / -1;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0.3;
    margin: 1rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--text-muted), transparent);
}

.divider-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

#email-form {
    max-width: 400px;
    margin: 0 auto 2rem;
}

    #email-form label {
        display: block;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

.email-row {
    display: flex;
    gap: 0.75rem;
}

    .email-row input {
        flex: 1;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: var(--text);
        font-size: 1rem;
    }

        .email-row input:focus {
            outline: none;
            border-color: var(--pink);
            box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.2);
        }

    .email-row .btn {
        padding: 0.75rem 1.5rem;
    }

.credits {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .credits a {
        color: var(--pink);
        text-decoration: none;
        transition: opacity 0.3s;
    }

        .credits a:hover {
            opacity: 0.8;
        }

.tech-stack {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tech-badge {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .hero {
        margin-bottom: 2rem;
    }

    .stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .controls-hero {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}
