:root {
    --primary: #1d1d1f;
    --secondary: #f5f5f7;
    --accent: #2997ff; /* Apple-like blue accent */
    --accent-gold: #d4af37; /* Champagne Gold for Must-Have badges */
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.header-container h1 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary);
}

/* Ad Disclosure Bar */
.ad-disclosure-bar {
    margin-top: 60px; /* Offset for header */
    background-color: #f5f5f7;
    color: #555;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.75rem;
    border-bottom: 1px solid #ebebeb;
}

/* Hero Section */
#hero {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('images/macbook_desk_hero_1773657280639.png') no-repeat center center/cover;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.2s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
    line-height: 1.6;
    font-weight: 400;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section */
.intro-section {
    background-color: var(--secondary);
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Section Titles */
h3.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* Rich Showcase Layout (Zig-Zag) */
.item-showcase {
    padding: 100px 0;
    border-bottom: 1px solid #ebebeb;
    background: var(--white);
}

.item-showcase.reverse {
    background: var(--secondary);
}

.showcase-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 0 40px;
}

.item-showcase.reverse .showcase-inner {
    flex-direction: row-reverse;
}

/* Visuals */
.item-visual {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    background: #eef;
}

.item-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.item-showcase:hover .item-visual img {
    transform: scale(1.03);
}

/* Content */
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.badge-secondary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.item-content h4 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.catchcopy {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Action Box */
.action-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--secondary);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid #ebebeb;
    width: 100%;
    justify-content: space-between;
}

.item-showcase.reverse .action-box {
    background: var(--white);
}

.price-hint {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.amazon-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(41, 151, 255, 0.2);
}

.amazon-btn:hover {
    background: #0071e3;
    transform: scale(1.02);
}

/* Comparison Table */
.comparison-section {
    background-color: var(--white);
}

.table-wrapper {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid #ebebeb;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 25px;
    text-align: left;
    border-bottom: 1px solid #ebebeb;
}

.comparison-table th {
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    font-size: 1.1rem;
    font-weight: 500;
}

.stars {
    color: var(--accent-gold);
}

/* Footer (Compliance) */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
}

footer .policy-links {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .showcase-inner, .item-showcase.reverse .showcase-inner {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    .item-visual {
        width: 100%;
    }
    .action-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-content h2 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.2rem; }
    h3.section-title { font-size: 2rem; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Adding small animation delay trick so it actually transitions from display:none to display:flex */
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #e0e0e0;
    color: var(--primary);
}

.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #ebebeb;
}

.modal-header h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-body {
    padding: 20px 40px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Dummy Item in Modal */
.dummy-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dummy-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.dummy-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #ccc;
    flex-shrink: 0;
    object-fit: cover;
}

.dummy-item-info {
    flex: 1;
}

.dummy-item-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.dummy-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.dummy-item-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    transition: background 0.2s;
}

.dummy-item-btn:hover {
    background: var(--accent);
}
