@import url('config.css');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: var(--font-size-section);
    text-align: center;
    margin-bottom: var(--space-xl);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(10, 11, 13, 0.95);
    backdrop-filter: var(--blur-strong);
    border-bottom: 1px solid var(--glass-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    min-height: 60px;
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #e0e6ed;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-normal);
    font-size: var(--font-size-small);
}

.nav-menu a:hover {
    background: var(--glass-bg);
    color: var(--text-accent);
}

.nav-login {
    background: var(--primary-gradient) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.nav-login:hover {
    background: var(--primary-gradient) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(156, 64, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
                linear-gradient(135deg, #0a0b0d 0%, #1a1d29 100%);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.highlight {
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: #b4bcd0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.btn-primary:hover .btn-glow {
    opacity: 0.2;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e6ed;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outlined {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-outlined:hover {
    background: #00d4ff;
    color: #0a0b0d;
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-outlined:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-digitames {
    position: relative;
    width: 300px;
    height: 300px;
}

.digitame-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.digitame-orb.primary {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 64, 64, 0.3));
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.digitame-orb.secondary {
    background: linear-gradient(135deg, rgba(116, 192, 252, 0.3), rgba(64, 150, 255, 0.3));
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.digitame-orb.tertiary {
    background: linear-gradient(135deg, rgba(156, 64, 255, 0.3), rgba(120, 40, 200, 0.3));
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}


/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0a0b0d 0%, #1a1d29 100%);
}

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

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

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 2rem;
}

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

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

/* ===== SHOWCASE SECTION ===== */
.showcase-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1a1d29 0%, #0f1419 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.showcase-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(156, 64, 255, 0.1));
    border-color: rgba(0, 212, 255, 0.3);
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
}

.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    height: 120px;
}

.digitame-sprite {
    position: relative;
    z-index: 2;
}

.sprite-idle {
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 10px 20px rgba(0, 212, 255, 0.3));
    object-fit: contain;
}

.digitame-3d {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 212, 255, 0.3));
}

.energy-rings {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.showcase-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.showcase-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.showcase-type {
    margin-bottom: 1rem;
    color: #b4bcd0;
}

.type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-badge.pyrofae { background: rgba(255, 107, 107, 0.3); color: #ff6b6b; }
.type-badge.aquaflow { background: rgba(116, 192, 252, 0.3); color: #74c0fc; }
.type-badge.digital { background: rgba(76, 110, 245, 0.3); color: #4c6ef5; }

.showcase-description {
    color: #b4bcd0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.showcase-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat span:first-child {
    font-size: 0.85rem;
    color: #b4bcd0;
    min-width: 60px;
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.stat-value {
    font-size: 0.85rem;
    color: #00d4ff;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

.showcase-cta {
    text-align: center;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0f1419 0%, #0a0b0d 100%);
}

.section-description {
    text-align: center;
    color: #b4bcd0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.download-card.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(156, 64, 255, 0.1));
    border-color: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.download-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.5);
}

.download-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.download-card p {
    color: #b4bcd0;
    margin-bottom: 0.5rem;
}

.download-size {
    display: block;
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 2rem;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d4ff, #9c40ff);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-footer);
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--text-accent);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 11, 13, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .showcase-card.featured {
        grid-column: span 1;
    }
    
    .floating-digitames {
        width: 250px;
        height: 250px;
    }
    
    .digitame-orb {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-section,
    .showcase-section,
    .download-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .showcase-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-section:first-child {
        grid-column: span 1;
        margin-bottom: var(--space-md);
    }
    
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    
    .social-links {
        justify-content: center;
    }
}