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

:root {
    --primary: #f5f5f7;
    --primary-light: #ffffff;
    --primary-dark: #d2d2d7;
    --bg: #0a0a0a;
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --border: #2a2a2a;
    --card-bg: #1c1c1e;
    --card-hover: #2c2c2e;
    --accent: #2997ff;
    --yellow: #fbbf24;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apple-logo {
    color: var(--text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-icons {
    display: flex;
    gap: 18px;
    color: var(--text);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px 20px;
}

.macbook-logo {
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5f5f7;
    background: none;
    -webkit-text-fill-color: #f5f5f7;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    color: var(--text);
    margin-top: 8px;
}

.hero-price {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Product Viewer */
.product-viewer {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}

.laptop-container {
    perspective: 1000px;
}

.laptop {
    transition: transform 0.6s ease;
}

.laptop:hover {
    transform: rotateY(-5deg) rotateX(3deg);
}

.laptop-screen {
    width: 480px;
    height: 300px;
    background: linear-gradient(135deg, #2c2c2e, #1c1c1e);
    border-radius: 16px 16px 0 0;
    padding: 12px;
    position: relative;
    transition: background 0.6s ease;
    box-shadow: 0 -2px 30px rgba(41, 151, 255, 0.1);
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.screen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(126, 200, 227, 0.15), transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(168, 216, 234, 0.1), transparent 50%);
}

.screen-content::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, rgba(126, 200, 227, 0.1), rgba(168, 216, 234, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.laptop-base {
    width: 560px;
    height: 14px;
    background: linear-gradient(135deg, #3a3a3c, #2c2c2e);
    border-radius: 0 0 8px 8px;
    margin-left: -40px;
    position: relative;
    transition: background 0.6s ease;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
}

/* Configurator */
.configurator {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.config-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

.config-section {
    margin-bottom: 36px;
}

.config-label {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.config-label span {
    font-weight: 400;
    color: var(--text-secondary);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 16px;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.color-btn.active::after {
    border-color: var(--primary);
}

.color-btn:hover {
    transform: scale(1.1);
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.option-cards.horizontal {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.option-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
}

.option-card.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.1), rgba(41, 151, 255, 0.03));
    box-shadow: 0 0 0 1px var(--accent);
}

.chip-icon {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.chip-icon small {
    font-size: 12px;
    font-weight: 500;
}

.chip-name {
    font-size: 14px;
    font-weight: 600;
}

.chip-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.chip-price {
    font-size: 12px;
    color: var(--accent);
    margin-top: 4px;
}

.extra-price {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Summary */
.summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#summary-config {
    font-size: 15px;
    font-weight: 500;
}

.summary-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.summary-price {
    text-align: right;
}

.total-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.total-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}

.monthly {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Actions */
.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-add-bag {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 48px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-bag:hover {
    background: #0077ed;
}

.btn-fav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.btn-fav:hover {
    border-color: #ff3b30;
    color: #ff3b30;
}

/* Features */
.features {
    max-width: 1024px;
    margin: 60px auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* eMake Book Section */
.emaker-section {
    max-width: 1024px;
    margin: 80px auto;
    padding: 0 20px;
}

.emaker-header {
    text-align: center;
    margin-bottom: 50px;
}

.emaker-title {
    font-size: 48px;
    font-weight: 700;
    color: #f5f5f7;
    background: none;
    -webkit-text-fill-color: #f5f5f7;
    margin-bottom: 12px;
}

.emaker-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.emaker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.emaker-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.emaker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 168, 83, 0.15);
    border-color: var(--primary);
}

.emaker-card-img {
    background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.emaker-card-content {
    padding: 24px;
}

.emaker-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.emaker-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.emaker-card-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.emaker-card-price .price {
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f7;
}

.emaker-card-price .price-mo {
    font-size: 12px;
    color: var(--text-secondary);
}

.emaker-btn {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 980px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.emaker-btn:hover {
    background: var(--accent);
    color: #000000;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-copy {
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .laptop-screen {
        width: 320px;
        height: 200px;
    }

    .laptop-base {
        width: 380px;
        margin-left: -30px;
    }

    .option-cards {
        grid-template-columns: 1fr;
    }

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

    .summary {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .summary-price {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .emaker-grid {
        grid-template-columns: 1fr;
    }

    .emaker-title {
        font-size: 32px;
    }
}
