:root {
    --primary: #652d86;
    --primary-hover: #532470;
    --secondary: #f5f5f5;
    --text: #1a1a19;
    --text-muted: #666;
    --border: #e5e5e5;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-kcell {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-5g {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.logo-divider {
    height: 1.5rem;
    width: 1px;
    background: var(--border);
    margin: 0 0.5rem;
}

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

/* Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Cart Icon */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.2s;
    margin-left: 1rem;
}

.cart-link:hover {
    color: var(--primary);
}

.cart-link svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-count:empty {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
    }
    
    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #652d86 0%, #7a3a9e 50%, #8e47b6 100%);
    color: white;
    padding: 4rem 0;
}

.kcell-gradient {
    background: linear-gradient(135deg, #652d86 0%, #7a3a9e 50%, #8e47b6 100%);
}

.ps-card-gradient {
    background: linear-gradient(135deg, #652d86 0%, #7a3a9e 50%, #8e47b6 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 48rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

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

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.hero-feature svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #652d86 0%, #7a3a9e 50%, #8e47b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-icon {
    width: 6rem;
    height: 6rem;
    color: rgba(255, 255, 255, 0.2);
}

.product-image-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 1rem;
}

.product-amount {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-platform {
    font-size: 0.875rem;
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a19;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 1rem;
    flex: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 0.2s;
}

.product-card:hover .product-title {
    color: var(--primary);
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    padding: 1rem;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
}

.btn-add-cart:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-add-cart svg {
    width: 1rem;
    height: 1rem;
}

.add-to-cart-form {
    display: inline;
}

/* How It Works Section */
.how-it-works {
    padding: 3rem 0;
    background: var(--secondary);
}

.how-it-works-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

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

.step {
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
}

footer .logo-kcell, footer a:link, footer a:visited {
    color: #fff;
}


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

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-divider,
    .logo-subtitle {
        display: none;
    }
}

/* Product Page Styles */
.product-page {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-page-image {
    background: linear-gradient(135deg, #652d86 0%, #7a3a9e 50%, #8e47b6 100%);
    padding: 3rem;
    text-align: center;
}

.product-page-info {
    padding: 2rem 1.5rem;
}

.product-page-info h1 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-page-info .description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-page-info .price {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input:invalid {
    border-color: #dc2626;
}

button[type="submit"] {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

button[type="submit"]:hover {
    background: var(--primary-hover);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.hidden {
    display: none;
}
