:root {
    /* Apple-style Color Palette */
    --bg-color: #F5F5F7;
    --text-color: #1D1D1F;
    --accent-color: #0066CC;
    --accent-hover: #0077ED;
    --secondary-text: #86868B;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(251, 251, 253, 0.8);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-size-base: 17px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.47059;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 980px;
    /* Classic Apple content max-width */
    margin: 0 auto;
    padding: 0 22px;
    /* Specific padding */
    width: 100%;
}

.section {
    padding: var(--spacing-xxl) 0;
}

/* Typography Helpers */
.headline {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.003em;
    margin-bottom: var(--spacing-md);
}

.subheadline {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: var(--font-weight-medium);
    color: var(--secondary-text);
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 980px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
    text-decoration: none;
    transform: scale(1.02);
}

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

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    /* Standard Apple Global Nav height */
    background-color: rgba(251, 251, 253, 0.8);
    /* Standard translucency */
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: none;
    /* Apple usually relies on just the blur, or a 1px border. Let's try clean first. */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

nav {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: 600;
    /* Semi-bold */
    color: var(--text-color);
    font-size: 19px;
    /* Precise size */
    opacity: 0.92;
    letter-spacing: 0;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    /* Wider spacing */
}

.nav-links a {
    color: var(--text-color);
    font-size: 12px;
    /* The "Apple" size */
    font-weight: 400;
    /* Regular weight */
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    text-decoration: none;
    opacity: 1;
    color: var(--accent-color);
    /* Subtle hover hint */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    max-height: 1080px;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -48px;
    padding-top: 48px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 25vh;
    /* Adjusted padding */
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

/* Overlay for both images and videos */
.bento-card.with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Darker gradient for better contrast */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    border-radius: var(--radius-lg);
}

.bento-card.with-image .card-content {
    z-index: 2;
    padding: var(--spacing-lg);
    /* Re-apply padding to content only */
    width: 100%;
    /* Ensure content fills width */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text Shadow for extra readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bento-card.with-image h3,
.bento-card.with-image p {
    color: white !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.headline {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.005em;
    margin-bottom: var(--spacing-sm);
    color: #1d1d1f;
}

.subheadline {
    font-size: 24px;
    line-height: 1.2;
    font-weight: var(--font-weight-regular);
    color: #1d1d1f;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

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

    .subheadline {
        font-size: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        background-color: #fff;
        /* Fallback */
        background-color: var(--nav-bg);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        gap: var(--spacing-md);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        color: var(--text-color);
    }

    .hero-content {
        padding-top: 20vh;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .bento-card {
        min-height: 240px;
    }
}

/* Bento Grid Styles */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    grid-auto-rows: minmax(280px, auto);
    gap: var(--spacing-lg);
    width: 100%;
}

.bento-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

/* Video Background Support */
.bento-card video.card-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.icon-wrapper {
    margin-bottom: var(--spacing-md);
    width: 48px;
    height: 48px;
    background: #F5F5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.bento-card h3 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.bento-card p {
    font-size: 17px;
    color: var(--secondary-text);
    line-height: 1.4;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

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

.card-small {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .card-small {
        grid-column: span 2;
    }
}

/* Premium Apple-Style Footer */
.footer {
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 64px 0 32px;
    font-size: 12px;
    border-top: 1px solid #d2d2d7;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 32px;
}

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

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

.footer-col ul li a {
    color: #424245;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

.footer-logo {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.footer-col.branding p {
    color: #86868b;
    max-width: 250px;
    line-height: 1.4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #86868b;
    font-size: 11px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}