/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
}

.domain-display {
    margin-bottom: 4rem;
}

.domain-name {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #007AFF 50%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 122, 255, 0.3));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(0, 122, 255, 0.6));
    }
}

.domain-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #8e8e93;
    margin-bottom: 2rem;
}

/* Countdown Section */
.countdown-section {
    margin-bottom: 4rem;
}

.countdown-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #8e8e93;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #8e8e93;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auction-info {
    font-size: 1.125rem;
    color: #8e8e93;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #30d158;
    text-shadow: 0 0 20px rgba(48, 209, 88, 0.5);
}

/* CTA Section */
.cta-section {
    margin-bottom: 4rem;
}

.cta-button {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-subtitle {
    font-size: 1rem;
    color: #8e8e93;
    margin-top: 1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 122, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #8e8e93;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

/* Tally Modal Specific Styles */
.tally-modal {
    max-width: 100vw;
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
}

.tally-iframe-container {
    flex: 1;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.tally-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(30px);
    border: none;
    border-radius: 0;
    max-width: 100vw;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-shadow: none;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(28, 28, 30, 0.98);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Tally Form Integration */
/* Form styling is now handled by Tally.so */

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(48, 209, 88, 0.3);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    margin: 20% auto;
    text-align: center;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.success-icon {
    font-size: 3rem;
    color: #30d158;
    margin-bottom: 1rem;
}

.success-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.success-content p {
    color: #8e8e93;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-btn {
    background: rgba(48, 209, 88, 0.2);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.3);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    background: rgba(48, 209, 88, 0.3);
    border-color: rgba(48, 209, 88, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
        padding: 0.75rem;
        min-width: 60px;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .tally-modal {
        width: 100%;
        height: 100vh;
        margin: 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .domain-name {
        font-size: 3rem;
    }
    
    .domain-tagline {
        font-size: 1.25rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
