/* Apple-Style Design System */

:root {
    /* Colors */
    --bg-body: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --border-color: #d2d2d7;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-hero: 56px;
    --font-size-h1: 48px;
    --font-size-h2: 40px;
    --font-size-h3: 28px;
    --font-size-body: 17px;
    --font-size-small: 14px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    /* Layout */
    --container-width: 980px;
    --container-width-wide: 1200px;
    --header-height: 44px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-body);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography Utilities */
.text-hero {
    font-size: var(--font-size-hero);
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.text-h2 {
    font-size: var(--font-size-h2);
    line-height: 1.1;
    font-weight: 600;
}

.text-body {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
}

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

/* Components */

/* Header */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    color: #f5f5f7;
    font-size: 12px;
}

.global-nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
}

.global-nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.global-nav-item a {
    color: #d6d6d6;
    opacity: 0.8;
}

.global-nav-item a:hover {
    color: #fff;
    opacity: 1;
}

.lang-item a {
    font-weight: 600;
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.lang-item a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    animation: fadeUp 1s ease-out forwards;
}

.hero-title {
    margin-bottom: var(--spacing-xs);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.cta-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    font-size: 19px;
}

.cta-link {
    color: #2997ff;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Feature Section */
.feature-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-body);
}

.feature-section.alt {
    background-color: var(--bg-secondary);
}

.feature-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

.feature-eyebrow {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* Grid Section */
.grid-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
}

.grid-container {
    max-width: var(--container-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

.grid-item {
    background: var(--bg-secondary);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--spacing-lg);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.grid-item img {
    margin-top: var(--spacing-md);
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Footer */
.global-footer {
    background: var(--bg-secondary);
    padding: var(--spacing-lg) 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.footer-copyright {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    opacity: 0;
    /* Hidden initially */
    animation-fill-mode: forwards;
    /* Stay visible after animation */
    /* Animation is triggered by JS adding 'visible' class */
}

.fade-in-up.visible {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-scale-up.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 40px;
        --font-size-h2: 32px;
    }

    .feature-container {
        flex-direction: column;
        text-align: center;
    }

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

    .global-nav-list {
        /* Simplified for mobile for now */
    }

    .global-nav-list {
        gap: 10px;
    }
}

/* Global Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Global Beautification */
body {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    min-height: 100vh;
}

.feature-section:nth-child(even) {
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}