:root {
    --bg-light: #ffffff;
    --bg-gray: #f5f5f7;
    --bg-dark: #000000;
    --text-dark: #1d1d1f;
    --text-white: #f5f5f7;
    --text-gray: #86868b;
    --accent-blue: #0066cc;
    --nav-height: 48px;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --banner-bg: #f5f5f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: opacity 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* --- Region Banner --- */
#region-banner {
    background-color: var(--banner-bg);
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-dark);
    text-align: center;
}

.banner-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.banner-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #d2d2d7;
    background: white;
}

.banner-btn {
    padding: 6px 16px;
    background: #1d1d1f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.banner-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-gray);
}

/* --- Navigation --- */

#global-nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-nav #global-nav {
    background-color: var(--nav-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 22px;
}

.nav-item a {
    color: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0.8;
}

body.dark-nav .nav-item a {
    color: rgba(255, 255, 255, 0.8);
}

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

/* --- Font Awesome Icons --- */
.nav-item.logo .fa-apple {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
}

body.dark-nav .nav-item.logo .fa-apple {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item.menu-toggle {
    display: none;
}

.nav-item.search i,
.nav-item.bag i {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
}

body.dark-nav .nav-item.search i,
body.dark-nav .nav-item.bag i {
    color: rgba(255, 255, 255, 0.8);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    border-style: none;
}

.globalnav-image-compact {
    display: none;
}

@media (max-width: 734px) {
    .nav-item.main-nav {
        display: none;
    }

    .nav-item.menu-toggle {
        display: block;
    }

    .nav-list.menu-active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 50px 40px;
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-list.menu-active .nav-item {
        width: 100%;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .nav-list.menu-active .nav-item.main-nav {
        display: block;
    }

    .nav-list.menu-active .nav-item a {
        font-size: 24px;
        color: #fff;
        font-weight: 600;
    }

    .nav-list.menu-active .nav-item.logo,
    .nav-list.menu-active .nav-item.search,
    .nav-list.menu-active .nav-item.bag {
        display: none;
    }

    .nav-list.menu-active .menu-toggle {
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .nav-list.menu-active .menu-toggle a i::before {
        content: "\f00d";
        /* FA Close 'X' icon */
    }
}

.globalnav-link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Hero Sections --- */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    text-align: center;
    overflow: hidden;
}

.hero-light {
    background-color: #fbfbfd;
    color: var(--text-dark);
}

.headline {
    font-size: clamp(48px, 10vw, 96px);
    line-height: 1.07143;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.subheading {
    font-size: clamp(21px, 4vw, 32px);
    line-height: 1.10714;
    font-weight: 500;
    letter-spacing: 0.004em;
    margin-bottom: 24px;
}

.button-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.button-secondary:hover {
    background-color: var(--accent-blue);
    color: #fff;
    text-decoration: none;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 21px;
}

.button {
    color: #ffffff;
    background-color: var(--accent-blue);
    padding: 11px 21px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
}

.button-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.button-secondary:hover {
    background-color: var(--accent-blue);
    color: #fff;
    text-decoration: none;
}

.button-primary:hover {
    background-color: #0077ed;
    text-decoration: none;
}

.hero-image-container {
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Specific Section Adjustments */
.hero-iphone-16-pro .headline {
    color: #f5f5f7;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    font-weight: 700;
    font-size: 32px;
}

/* --- Bento Grid --- */

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px 12px 12px;
}

.grid-item {
    position: relative;
    height: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    text-align: center;
    overflow: hidden;
}

.grid-dark {
    background-color: var(--bg-dark);
    color: #fff;
}

.grid-light {
    background-color: var(--bg-gray);
    color: var(--text-dark);
}

.grid-item .headline {
    font-size: 40px;
}

.grid-item .subheading {
    font-size: 20px;
}

.grid-item .cta-group {
    font-size: 17px;
}

.grid-image {
    position: absolute;
    bottom: 0;
    max-height: 350px;
    max-width: 90%;
    object-fit: contain;
}

.item-placeholder {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 50px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* --- Footer --- */

#global-footer {
    background-color: var(--bg-gray);
    color: var(--text-gray);
    font-size: 12px;
    padding: 0 22px;
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 0;
}

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

.footer-disclaimer p {
    margin-bottom: 10px;
}

.footer-directory {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
}

.directory-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.directory-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.directory-list li {
    margin-bottom: 6px;
}

.directory-list a {
    color: var(--text-gray);
}

.directory-list a:hover {
    color: var(--text-dark);
}

.footer-legal {
    border-top: 1px solid #d2d2d7;
    padding: 20px 0;
}

.footer-legal-shop {
    margin-bottom: 10px;
}

.footer-legal-copyright {
    display: flex;
    justify-content: space-between;
}

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

.legal-links a {
    color: var(--text-gray);
    border-right: 1px solid #d2d2d7;
    padding-right: 15px;
}

.legal-links a:last-child {
    border-right: none;
}

/* --- Responsive --- */

@media (max-width: 734px) {
    .headline {
        font-size: 32px;
    }

    .subheading {
        font-size: 19px;
    }

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

    .nav-list {
        padding: 0 10px;
    }

    .nav-item:not(.logo):not(.bag) {
        display: none;
    }

    .directory-column {
        min-width: 100%;
        border-bottom: 1px solid #d2d2d7;
        padding: 10px 0;
        cursor: pointer;
    }

    .footer-legal-copyright {
        flex-direction: column;
        gap: 10px;
    }
}