:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --bg-secondary: #f5f5f7;
    --card-bg-dark: #161617; /* Apple dark card */
    --card-bg-light: #ffffff;
    --nav-bg: #161617; /* Global nav bg */
    --nav-text: #f5f5f7;
    --border-color: #d2d2d7;
}

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

body {
    font-family: "SF Pro Text", "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------------- Global Navigation ---------------- */
.global-nav {
    background: rgba(22, 22, 23, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    height: 44px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999;
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    padding: 0 22px;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    list-style: none;
}

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

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

/* ---------------- Local Product Navigation ---------------- */
.local-nav {
    position: sticky;
    top: 0; /* Sticky behavior needs top: 0, but global nav is fixed so we might need top: 44px or handle z-index */
    top: 44px;
    z-index: 9990;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.16);
    height: 52px;
    width: 100%;
}

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

.product-name {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.local-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.local-nav-links a {
    font-size: 12px;
    color: #1d1d1f;
    text-decoration: none;
    opacity: 0.88;
}

.local-nav-links a:hover {
    color: var(--accent-blue);
}

.local-nav-links .active {
    color: #1d1d1f;
    opacity: 0.56;
    cursor: default;
}

.cta-button {
    background: var(--accent-blue);
    color: white !important;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    opacity: 1 !important;
}

.cta-button:hover {
    background: var(--accent-blue-hover);
}

/* ---------------- Hero Sections ---------------- */
.hero-section {
    position: relative;
    padding-top: 60px; /* Space for text */
    padding-bottom: 60px;
    height: 90vh; /* Not full full screen but close */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 2560px; /* Full width bleeding */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Text top, Image bottom */
}

.hero-text {
    text-align: center;
    z-index: 10;
    margin-top: 40px;
}

.hero-eyebrow {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 0px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 6px;
}

.hero-headline {
    font-size: 28px;
    line-height: 1.10722;
    font-weight: 400;
    letter-spacing: .004em;
    margin-bottom: 15px;
}

.hero-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

.link-arrow {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 21px; /* Apple uses large links in hero */
    font-weight: 400;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow i {
    font-size: 14px;
    margin-left: 4px;
}

.btn-blue {
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
}

/* Dark Mode Hero Specifics */
.dark-mode {
    background-color: #000000;
    color: #f5f5f7;
}

.dark-mode .hero-eyebrow { color: #f56300; /* New tag color */ }
.dark-mode .hero-headline { color: #a1a1a6; }

/* Light Mode Hero Specifics */
.light-mode {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.price-text {
    color: #86868b;
    font-size: 17px;
    margin-top: 10px;
}

/* ---------------- Visuals (CSS Only) ---------------- */
.hero-visual-container {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Cooler Pro Visual (Dark) */
.cooler-pro-visual {
    width: 400px;
    height: 400px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #333, #000);
    box-shadow: 
        0 0 60px rgba(0, 113, 227, 0.3),
        inset 0 0 20px rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: perspective(1000px) rotateX(10deg);
}

.cooler-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.5);
    animation: spin 10s linear infinite;
}

.cooler-fan {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #111, #222 10%, #111 20%, #222 30%, #111 40%, #222 50%, #111 60%, #222 70%, #111 80%, #222 90%, #111);
    opacity: 0.8;
    animation: spin 0.5s linear infinite; /* Fast spin */
}

.cooler-display {
    position: absolute;
    z-index: 5;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 113, 227, 0.8);
    font-variant-numeric: tabular-nums;
}

/* Cooler Air Visual (Light) */
.cooler-air-visual {
    width: 350px;
    height: 350px;
    position: relative;
}

.air-body {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 
        20px 20px 60px #d1d1d1,
        -20px -20px 60px #ffffff;
    position: absolute;
}

.air-blade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: conic-gradient(#eee 0deg, #fff 45deg, #eee 90deg, #fff 135deg, #eee 180deg, #fff 225deg, #eee 270deg, #fff 315deg, #eee 360deg);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-centered {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Note: air-blade uses translate + rotate, so we need a specific animation or wrapper */
/* Correcting animation for air-blade */
.air-blade { animation: spin-centered 2s linear infinite; }


/* ---------------- Grid Section ---------------- */
.grid-section {
    background-color: #f5f5f7;
    padding: 100px 0;
}

.grid-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* Large card spans 2 columns, then two medium cards side by side */
}

.bento-card {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 500px;
}

.bento-card:hover {
    transform: scale(1.02);
}

.card-large {
    grid-column: span 2;
    background-color: #000;
    color: #f5f5f7;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-medium {
    grid-column: span 1;
}

.dark-card {
    background-color: #000;
    color: #f5f5f7;
}

.white-card {
    background-color: #fff;
    color: #1d1d1f;
}

.card-content-top {
    z-index: 2;
}

.eyebrow {
    font-size: 17px;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bento-card h3 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
}

.desc {
    font-size: 19px;
    color: #86868b;
    margin-top: 12px;
}

/* Chip Visual */
.chip-visual {
    margin-top: 40px;
    width: 200px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
    border: 1px solid #333;
}

.chip {
    font-family: monospace;
    color: #aaa;
    font-size: 24px;
}

/* RGB Card Background */
.bg-image-rgb {
    background: linear-gradient(135deg, #111, #222);
    position: relative;
    overflow: hidden;
}

.bg-image-rgb::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
    opacity: 0.2;
    animation: spin 5s linear infinite;
    filter: blur(50px);
}

/* ---------------- Highlight/Carousel ---------------- */
.highlight-section {
    background: #fff;
    padding: 100px 0;
    text-align: center;
}

.feature-strip {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.strip-item i {
    font-size: 40px;
    color: #1d1d1f;
}

.strip-item span {
    font-size: 17px;
    font-weight: 600;
}

/* ---------------- Footer ---------------- */
.apple-footer {
    background: #f5f5f7;
    padding: 40px 0 20px 0;
    font-size: 12px;
    color: #86868b;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-notes {
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-notes p {
    margin-bottom: 8px;
}

.footer-links-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-col h3 {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #424245;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #d2d2d7;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 10px;
}

.legal-links a {
    color: #424245;
    text-decoration: none;
}

.pipe {
    color: #d2d2d7;
}

/* ---------------- Mobile ---------------- */
@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-large { grid-column: span 1; }
    .nav-list { display: none; } /* Simplified for demo */
    .local-nav-links { display: none; }
    .local-nav-content { justify-content: center; }
    .footer-links-row { flex-direction: column; gap: 20px; }
}

/* Animation Helper */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
