* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Ambient Gradient SaaS Color System */
    --bg-base: #0a0b0f;
    --bg-blue-tint: #0d0f15;
    --surface-primary: rgba(20, 22, 28, 0.6);
    --surface-secondary: rgba(25, 27, 35, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-headline: #f8f9fa;
    --text-body: #c8cbd0;
    --text-secondary: #8b8f96;
    
    /* Accent Gradients */
    --gradient-violet: rgba(139, 92, 246, 0.15);
    --gradient-magenta: rgba(236, 72, 153, 0.12);
    --gradient-cyan: rgba(34, 211, 238, 0.12);
    --gradient-orange: rgba(251, 146, 60, 0.1);
    
    /* Action Colors */
    --action-primary: #f8f9fa;
    --action-primary-text: #0a0b0f;
    --action-secondary-border: rgba(255, 255, 255, 0.15);
    
    /* Semantic */
    --success-color: #34d399;
    --error-color: #f87171;
}

/* Import serif-like font for headlines */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Inter:wght@400;500&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-base);
    color: var(--text-body);
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background with Radial Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--gradient-violet) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--gradient-magenta) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, var(--gradient-cyan) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, var(--gradient-orange) 0%, transparent 45%),
        linear-gradient(180deg, var(--bg-blue-tint) 0%, var(--bg-base) 100%);
    background-blend-mode: screen;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Subtle noise texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Background decorations - aurora-like glows */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-line,
.bg-square,
.bg-circle {
    display: none; /* Remove old decorative elements */
}

/* Aurora gradient orbs */
.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: auroraFloat 20s ease-in-out infinite;
}

.bg-decoration::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gradient-violet), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-decoration::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gradient-cyan), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

@keyframes auroraFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.25;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
header {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0 40px;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-headline);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0;
}

/* Cards - Dark Translucent with Glass Effect */
.card,
.info-card,
.feature-card,
.testimonial-card {
    background: var(--surface-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-out;
}

.card {
    padding: 48px;
    margin-bottom: 40px;
}

.card-header {
    margin-bottom: 32px;
    text-align: center;
}

.card-title-center {
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-headline);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.card-description {
    color: var(--text-body);
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.card-description-secondary {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    margin-top: 16px;
}

/* Input Fields - Pill Shape */
.input-section {
    margin-bottom: 32px;
}

.data-input {
    width: 100%;
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 20px 28px;
    color: var(--text-body);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease-out;
    outline: none;
    min-height: 200px;
    border-radius: 24px;
}

.data-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 4px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(139, 92, 246, 0.15);
    background: rgba(25, 27, 35, 0.8);
}

.data-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Buttons - Pill Shape */
.button-section {
    margin-bottom: 32px;
}

.btn {
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--action-primary);
    color: var(--action-primary-text);
    box-shadow: 0 4px 20px rgba(248, 249, 250, 0.15);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 30px rgba(248, 249, 250, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(1);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--action-secondary-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(10, 11, 15, 0.2);
    border-top-color: var(--action-primary-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-message {
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-message.success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-message.error {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.info-card {
    padding: 32px;
    margin-bottom: 40px;
}

.info-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-headline);
    font-weight: 400;
}

.info-card ol {
    margin-left: 24px;
    color: var(--text-body);
}

.info-card li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Games Section */
.games-section {
    margin: 100px 0;
    text-align: center;
}

.games-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 60px;
}

.games-carousel-container {
    overflow: hidden;
    position: relative;
}

.games-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease-out;
    will-change: transform;
    width: 100%;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease-out;
    cursor: pointer;
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    max-width: calc((100% - 48px) / 3);
}

@media (max-width: 1024px) {
    .game-card {
        flex: 0 0 calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .game-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.game-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: var(--surface-secondary);
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease-out;
    filter: brightness(0.85);
}

.game-card:hover .game-image {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.05);
}

/* Glow effect on hover */
.game-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease-out;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover::before {
    width: 150%;
    height: 150%;
    opacity: 0.6;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    color: var(--text-headline);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-out;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--surface-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.countdown-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--text-headline);
    margin-bottom: 24px;
    line-height: 1;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.countdown-text {
    color: var(--text-body);
    font-size: 1.1rem;
    margin: 0;
}

.success-message {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--action-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--action-primary-text);
    font-weight: bold;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 4px 20px rgba(248, 249, 250, 0.2);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-text {
    color: var(--text-headline);
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

/* Features Section */
.features-section {
    margin: 100px 0;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-headline);
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-body);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(0.3);
}

.feature-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-headline);
    font-weight: 400;
}

.feature-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    margin: 100px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 32px;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text-headline);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.testimonial-info h4 {
    color: var(--text-headline);
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.testimonial-text {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }
    
    header {
        margin-bottom: 60px;
        padding: 40px 0 30px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 32px 24px;
    }
    
    .card-title-center {
        font-size: 2.5rem;
    }
    
    .data-input {
        font-size: 0.9rem;
        padding: 16px 24px;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .countdown-number {
        font-size: 3.5rem;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
    }

    .success-text {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .features-section,
    .testimonials-section {
        margin: 60px 0;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .games-section {
        margin: 60px 0;
    }
    
    .games-carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}
