/* ==================== ROOT & VARIABLES ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --border: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(99, 102, 241, 0.03) 0px,
            rgba(99, 102, 241, 0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(99, 102, 241, 0.03) 0px,
            rgba(99, 102, 241, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-xl);
}

.grid-item {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    animation: float 3s ease-in-out infinite;
}

.grid-item:nth-child(1) { animation-delay: 0s; }
.grid-item:nth-child(2) { animation-delay: 0.1s; }
.grid-item:nth-child(3) { animation-delay: 0.2s; }
.grid-item:nth-child(4) { animation-delay: 0.3s; }
.grid-item:nth-child(5) { animation-delay: 0.4s; }
.grid-item:nth-child(6) { animation-delay: 0.5s; }
.grid-item:nth-child(7) { animation-delay: 0.6s; }
.grid-item:nth-child(8) { animation-delay: 0.7s; }
.grid-item:nth-child(9) { animation-delay: 0.8s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

/* ==================== STATS ==================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.stat {
    background: var(--surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== SECTIONS ==================== */
section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.pricing-card h3 {
    margin-bottom: var(--spacing-sm);
}

.pricing-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

/* ==================== CATEGORIES SECTION ==================== */
.categories-section {
    background: var(--surface);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.categories-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.category-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--surface-light);
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-md);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==================== FILTER SECTION ==================== */
.filter-section {
    background: var(--background);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==================== TILES SECTION ==================== */
.tiles-section,
.featured-section {
    background: var(--background);
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
}

.tile {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    word-break: break-word;
    background-size: 200% 200%;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tile:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.tile:hover::before {
    opacity: 1;
}

/* Tile size variations */
.tile.size-1x1 { grid-column: span 1; }
.tile.size-2x1 { grid-column: span 2; }
.tile.size-3x1 { grid-column: span 3; }
.tile.size-4x1 { grid-column: span 4; }

/* Tile colors */
.tile-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.tile-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.tile-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.tile-gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.tile-gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.tile-gradient-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.tile-gradient-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.tile-gradient-8 { background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%); }
.tile-gradient-9 { background: linear-gradient(135deg, #2e2e78 0%, #662d8c 100%); }
.tile-gradient-10 { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }

.tile-hidden {
    display: none;
}

/* ==================== PAYMENT SECTION ==================== */
.payment-section {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.payment-method {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.payment-method h4 {
    margin-bottom: var(--spacing-sm);
}

.payment-method p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.payment-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--spacing-lg);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .tiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .tile {
        font-size: 0.65rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .contact-info {
        gap: var(--spacing-md);
        font-size: 0.875rem;
    }

    .tiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .tile {
        font-size: 0.6rem;
    }

    .alphabet-filter {
        gap: var(--spacing-xs);
    }

    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }
}
