:root {
    /* Apple-inspired Color Palette */
    --macos-bg: #F5F5F7;
    --macos-text: #1d1d1f;
    --macos-text-secondary: #86868b;
    --yandee-orange: #F16931;
    --yandee-orange-hover: #e05c28;

    /* Extreme Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(40px) saturate(200%);
    --card-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.05),
        0 8px 24px -4px rgba(0, 0, 0, 0.02);
    --inner-border: rgba(255, 255, 255, 0.9);

    /* Layout */
    --radius-ios: 36px;
    --radius-button: 999px;
    --container-max: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--macos-bg);
    color: var(--macos-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
}

/* Dynamic Silver Mesh Background */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 10%, rgba(241, 105, 49, 0.04), transparent 30%),
        radial-gradient(circle at 80% 90%, rgba(0, 113, 227, 0.03), transparent 30%),
        radial-gradient(circle at 50% 50%, #ffffff, transparent 60%);
    filter: blur(80px);
    animation: ambientShift 30s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(2%, 2%);
    }

    100% {
        transform: scale(1) translate(-2%, -2%);
    }
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography - Apple Style */
h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.25rem;
    color: var(--macos-text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-ios);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, var(--inner-border) 0%, transparent 40%, transparent 60%, var(--inner-border) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

/* Interactive Cards */
.glass-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.08),
        0 10px 30px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn-ios {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: var(--radius-button);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
    cursor: pointer;
    border: none;
}

.btn-ios:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--yandee-orange);
    color: white;
    box-shadow: 0 10px 30px rgba(241, 105, 49, 0.2);
}

.btn-primary:hover {
    background: var(--yandee-orange-hover);
    box-shadow: 0 15px 40px rgba(241, 105, 49, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--macos-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1000px;
    height: 64px;
    background: rgba(255, 255, 255, 0.5);
    /* lighter for nav */
    backdrop-filter: blur(40px) saturate(250%);
    -webkit-backdrop-filter: blur(40px) saturate(250%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

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

.nav-container .logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--yandee-orange);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-container .logo span {
    color: var(--macos-text);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links auto {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--macos-text);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--yandee-orange);
}

.nav-container .btn-ios {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Animations engine */
.animate-up {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

.animate-up.is-visible {
    animation: scaleFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .glass-nav {
        top: 16px;
        width: calc(100% - 32px);
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }
}