
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.static-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(60px);
    opacity: 0.2;
    animation: pulse 4s ease-in-out infinite;
}

.bg-shape-1 {
    top: -160px;
    right: -160px;
    width: 320px;
    height: 320px;
    background: #8b5cf6;
}

.bg-shape-2 {
    bottom: -160px;
    left: -160px;
    width: 320px;
    height: 320px;
    background: #3b82f6;
    animation-delay: 1s;
}

.bg-shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 384px;
    height: 384px;
    background: #6366f1;
    opacity: 0.1;
    animation-delay: 2s;
}

.bg-shape-4 {
    top: 25%;
    right: 25%;
    width: 256px;
    height: 256px;
    background: #ec4899;
    opacity: 0.15;
    animation-delay: 0.5s;
}

.bg-shape-5 {
    bottom: 25%;
    left: 25%;
    width: 288px;
    height: 288px;
    background: #06b6d4;
    opacity: 0.15;
    animation-delay: 1.5s;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.code-icon {
    width: 2rem;
    height: 2rem;
    color: #a855f7;
    margin-right: 0.75rem;
}

.brand h1 {
    font-size: 2rem;
    font-weight: 700;
}

.brand-accent {
    color: #a855f7;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Countdown */
.countdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    animation: scaleIn 0.4s ease-out 0.6s both;
}

@media (min-width: 768px) {
    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem 1rem;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

@media (min-width: 768px) {
    .countdown-number {
        font-size: 2.5rem;
    }
}

.countdown-label {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-top: 0.25rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.cta-button:hover {
    background: linear-gradient(135deg, #6d28d9, #1d4ed8);
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 2rem;
    height: 2rem;
    color: #9ca3af;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h3 {
        font-size: 2.5rem;
    }
}

.section-header p {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    color: #a855f7;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: #3b82f6;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #d1d5db;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.newsletter-header {
    margin-bottom: 2rem;
}

.mail-icon {
    width: 4rem;
    height: 4rem;
    color: #a855f7;
    margin: 0 auto 1.5rem;
}

.newsletter-header h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .newsletter-header h3 {
        font-size: 2.5rem;
    }
}

.newsletter-header p {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #a855f7;
}

.newsletter-form button {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #6d28d9, #1d4ed8);
    transform: scale(1.05);
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    animation: scaleIn 0.4s ease-out;
}

.success-message svg {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
}

.success-message span {
    font-size: 1.25rem;
    font-weight: 600;
}

.newsletter-disclaimer {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        margin-bottom: 0;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .footer-brand {
        margin-bottom: 0;
    }
}

.footer-brand .code-icon {
    margin-right: 0.5rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #d1d5db;
}

@media (min-width: 768px) {
    .footer-info {
        flex-direction: row;
        gap: 2rem;
    }
}

.footer-item {
    display: flex;
    align-items: center;
}

.footer-item svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.3;
    }
}

/* Animation delays for feature cards */
.feature-card[data-delay="0"] { animation-delay: 0s; }
.feature-card[data-delay="100"] { animation-delay: 0.1s; }
.feature-card[data-delay="200"] { animation-delay: 0.2s; }
.feature-card[data-delay="300"] { animation-delay: 0.3s; }
