/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    z-index: -2;
    pointer-events: none;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Floating Items Container */
#floating-items-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-item {
    position: absolute;
    opacity: 0.1;
    will-change: transform;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Hero Section */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.badge-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Generator Section */
.generator-section {
    margin-top: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Seed Cards */
.seed-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.seed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.seed-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.seed-card:hover::before {
    opacity: 1;
}

/* Rarity Badges */
.rarity-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.rarity-badge.legendary {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.rarity-badge.epic {
    background: linear-gradient(135deg, #9d4edd 0%, #c77dff 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(157, 78, 221, 0.3);
}

.rarity-badge.rare {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.3);
}

.rarity-badge.uncommon {
    background: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(6, 214, 160, 0.3);
}

.rarity-badge.common {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

.rarity-badge.secret {
    background: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 0, 110, 0.3);
    animation: secretPulse 2s ease-in-out infinite;
}

/* Seed Image */
.seed-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seed-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Seed Info */
.seed-info {
    margin-bottom: 1.5rem;
}

.seed-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.seed-stock {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Claim Button */
.claim-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.claim-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 ease;
}

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

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.button-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.claim-button:hover .button-icon {
    transform: translateX(4px);
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 2rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-backdrop:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-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 ease;
}

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

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Generator Modal */
.generator-modal {
    max-width: 500px;
}

.generator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.generator-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.generator-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.generator-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

.generator-tip {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

.verify-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.verify-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 ease;
}

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

.verify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 214, 160, 0.4);
}

/* Winner Popup */
.winner-popup {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
        min-width: 300px;
        max-width: 90vw;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(6, 214, 160, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.winner-popup:not([style*="display: none"]) {
    opacity: 1;
}

.winner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.winner-icon img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.winner-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

/* SEO Content Section */
.seo-content-section {
    margin-top: 4rem;
    padding: 2rem 0;
}

.seo-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    line-height: 1.7;
}

.seo-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
        text-align: center;
}

.seo-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
        font-size: 1.5rem;
    color: #667eea;
    margin: 2rem 0 1rem 0;
}

.seo-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #ffffff;
    margin: 1.5rem 0 0.75rem 0;
}

.seo-content p {
    color: rgba(255, 255, 255, 0.9);
        margin-bottom: 1rem;
        font-size: 1rem;
}

.seo-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.seo-content li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.seo-content strong {
    color: #667eea;
    font-weight: 600;
}

.faq-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-section h4 {
    color: #667eea;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.faq-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(5px); }
    75% { transform: translateX(-5px) translateY(10px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes secretPulse {
    0%, 100% { 
        box-shadow: 0 4px 16px rgba(255, 0, 110, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 24px rgba(255, 0, 110, 0.5);
        transform: scale(1.05);
    }
}

@keyframes float1 {
    0% { transform: translate(-100px, 110vh) rotate(0deg); }
    100% { transform: translate(110vw, -100px) rotate(720deg); }
}

@keyframes float2 {
    0% { transform: translate(110vw, 110vh) rotate(0deg); }
    100% { transform: translate(-100px, -100px) rotate(-720deg); }
}

@keyframes float3 {
    0% { transform: translate(50vw, 110vh) rotate(0deg); }
    100% { transform: translate(50vw, -100px) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .seeds-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seed-card {
        padding: 1.25rem;
    }
    
    .seed-image {
        height: 100px;
    }
    
    .seed-image img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .modal-container {
        max-width: 90vw;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .winner-popup {
        bottom: 1rem;
        min-width: 280px;
        padding: 0.75rem 1rem;
    }
    
    .seo-content {
        padding: 1.5rem;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-content h3 {
        font-size: 1.25rem;
    }
    
    .seo-content h4 {
        font-size: 1.125rem;
    }
    
    .faq-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 8px 16px;
    }
    
    .badge-text {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .seed-card {
        padding: 1rem;
    }
    
    .rarity-badge {
        font-size: 0.625rem;
        padding: 4px 8px;
    }
    
    .seed-name {
        font-size: 1rem;
    }
    
    .claim-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .generator-title {
        font-size: 1.25rem;
    }
    
    .generator-image {
        width: 60px;
        height: 60px;
    }
    
    .seo-content {
        padding: 1rem;
    }
    
    .seo-content h2 {
        font-size: 1.25rem;
    }
    
    .seo-content h3 {
        font-size: 1.125rem;
    }
    
    .seo-content h4 {
        font-size: 1rem;
    }
    
    .seo-content p {
    font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 0.75rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .claim-button,
    .modal-button,
    .verify-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .claim-button:active,
    .modal-button:active,
    .verify-button:active {
        transform: scale(0.95);
    }
    
    .seed-card {
        min-height: 200px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .seed-card {
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .modal-content {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-gradient::before {
        animation: none;
    }
    
    .gradient-text {
        animation: none;
    }
    
    .rarity-badge.secret {
        animation: none;
    }
}