:root {
    --accent: #D4AF37;          /* Gold: Value & Luxury */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --bg-black: #050505;        /* Deep Black: Cinematic */
    --bg: #0a0a0a;
    /* Tropical Moss Green for subtle depth */
    --tropical-green: #1B3022; 
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --transition-slow: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-mid: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --text: var(--text-main);
    
    --bg-light: #ffffff;
    --text-light: #000000;
    --accent-light: #0a0f14;
    
    --fs-nav: 0.75rem;
    --transition-cinematic: cubic-bezier(0.85, 0, 0.15, 1);
    --text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 5px 20px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Typographic Scale - Ultra Refined */
    --fs-h1: clamp(4rem, 12vw, 10rem);
    --fs-h2: clamp(2.5rem, 8vw, 5rem);
    --fs-h3: clamp(1.8rem, 5vw, 3.5rem);
    --fs-body: clamp(1rem, 1.2vw, 1.3rem);
}

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

/* Cinematic Follower Effect */
.custom-cursor, .custom-cursor-follower { 
    display: block; 
    pointer-events: none; 
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower { display: none !important; }
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    transition: background-color var(--transition-cinematic), color var(--transition-cinematic);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.theme-light {
    --bg: var(--bg-light);
    --text: var(--text-light);
    --accent: var(--accent-light);
}

/* Luxury Grain & Noise */
.noise {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0.05;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIihmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+');
}

/* Premium Custom Cursor */
.custom-cursor {
    display: none; /* Hide the tiny dot, keep system arrow */
}

.custom-cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2000000;
    mix-blend-mode: difference;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(77, 148, 255, 0.3);
}

/* Scroll Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    width: 0%;
    z-index: 1000001;
}

/* Loader - Minimalist Luxury */
.loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}

.loader.hidden {
    transform: translateY(-100%);
}

.loader-logo {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    text-align: center;
}

@media (min-width: 769px) {
    .loader-logo {
        flex-direction: row;
        gap: 2rem;
    }
}

.loader-zh {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem; /* Reduced from 3.5rem */
    font-weight: 300;
    letter-spacing: 0.5rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .loader-zh {
        order: 2; /* Move to bottom */
        font-size: 1rem;
        letter-spacing: 0.8rem;
        margin-top: 1rem;
        opacity: 0.5;
        font-weight: 300;
    }
}

.loader-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .loader-sep {
        display: none; /* Hide separator on mobile */
    }
}

.loader-en {
    display: flex;
    gap: 0.5rem;
    font-size: 3.5rem; /* Increased from 1.8rem */
    font-weight: 200;
    letter-spacing: 0.8rem;
}

@media (max-width: 768px) {
    .loader-en {
        order: 1; /* Move to top */
        font-size: 1.8rem;
        letter-spacing: 0.5rem;
        margin-top: 0;
        opacity: 1;
        font-weight: 400;
    }
}

.loader-logo span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.6s forwards;
}

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

/* Animation Delays for Chinese */
.loader-zh span:nth-child(1) { animation-delay: 0.8s; }
.loader-zh span:nth-child(2) { animation-delay: 0.9s; }

/* Animation Delays for English */
.loader-en span:nth-child(1) { animation-delay: 0.1s; }
.loader-en span:nth-child(2) { animation-delay: 0.2s; }
.loader-en span:nth-child(3) { animation-delay: 0.3s; }
.loader-en span:nth-child(4) { animation-delay: 0.4s; }
.loader-en span:nth-child(5) { animation-delay: 0.5s; }
.loader-en span:nth-child(6) { animation-delay: 0.6s; }

@media (min-width: 769px) {
    .loader-zh span:nth-child(1) { animation-delay: 0.1s; }
    .loader-zh span:nth-child(2) { animation-delay: 0.3s; }
    .loader-en span:nth-child(1) { animation-delay: 0.6s; }
    .loader-en span:nth-child(2) { animation-delay: 0.7s; }
    .loader-en span:nth-child(3) { animation-delay: 0.8s; }
    .loader-en span:nth-child(4) { animation-delay: 0.9s; }
    .loader-en span:nth-child(5) { animation-delay: 1.0s; }
    .loader-en span:nth-child(6) { animation-delay: 1.1s; }
}

.navbar {
    position: fixed;
    top: 2rem;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-container {
    width: 96%;
    max-width: 1600px;
    height: 70px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    pointer-events: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.nav-left { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    padding-right: 2rem;
    flex-shrink: 0;
}
.nav-center { 
    flex: 2; 
    display: flex; 
    justify-content: center; 
}
.nav-right { 
    flex: 1.2; /* Increased slightly to give more room for buttons */
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 1.5rem; 
    flex-shrink: 0; /* Prevent buttons from being squashed */
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links.desktop-only {
    display: flex;
    gap: 2.5rem; /* Slightly reduced gap to accommodate longer English words */
}

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

.menu-toggle.active span:first-child {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links h2 {
    font-size: var(--fs-h2);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-menu.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.6s; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 1rem;
}

.lang-item {
    font-size: 0.65rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.3;
    letter-spacing: 0.1rem;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.lang-item.active {
    opacity: 1;
}

.lang-item:hover {
    opacity: 1;
}

.lang-switcher .sep {
    font-size: 0.6rem;
    opacity: 0.15;
    font-weight: 200;
}

/* Update mobile menu for lang */
.mobile-lang {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.mobile-lang .lang-item {
    font-size: 0.8rem;
    opacity: 0.5;
}

.mobile-lang .lang-item.active {
    opacity: 1;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover { 
    opacity: 1; 
    color: var(--accent);
    transform: translateY(-2px);
}

.whitelist-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.4rem; /* Slightly more padding for better balance */
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap; /* Prevent vertical wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.whitelist-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    justify-content: center;
    align-items: flex-start; /* Fix: Start from top to prevent cutting off the title */
    overflow-y: auto;
    padding: 4rem 1.5rem; /* Give some breathing room at top and bottom */
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4rem 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.5;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.05);
}

.modal-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.modal-step.active {
    display: block;
}

.modal-step h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.modal-step p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.body-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
}

.tier-card.active {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.tier-card.active span {
    color: #000;
    opacity: 0.8;
}

.tier-card.active .tier-rewards {
    border-top-color: rgba(0,0,0,0.1);
}

.tier-card.active .tier-rewards p {
    color: #000 !important;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    outline: none;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

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

.tier-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.tier-card span {
    display: inline;
    font-size: 0.6rem;
    opacity: 0.5;
    margin-left: 0.2rem;
    font-weight: 400;
    text-transform: uppercase;
}

.tier-benefits {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tier-benefits span {
    display: block !important;
    font-size: 0.65rem !important;
    opacity: 0.7 !important;
    margin: 0 !important;
    letter-spacing: 0.05rem;
}

.tier-card.active .tier-benefits {
    border-top-color: rgba(0,0,0,0.1);
}

.tier-card.active .tier-benefits span {
    color: #000 !important;
    opacity: 0.8 !important;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    text-align: left;
    border-radius: 4px;
}

.portal-stat label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

#portal-status-title {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.portal-stat .val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.admin-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: #fff;
}

.admin-table th {
    text-align: left;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.admin-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Inter', sans-serif;
}

.admin-dashboard {
    background: #000 !important;
    color: #fff !important;
    z-index: 50;
    position: relative;
}

.status-pill {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .admin-table th, .admin-table td {
        padding: 1rem 0.5rem;
        font-size: 0.7rem;
    }
}

.payment-box {
    background: #000;
    padding: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.payment-box .label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.payment-box code {
    display: block;
    font-size: 0.75rem;
    word-break: break-all;
    margin-bottom: 1rem;
    color: var(--accent);
}

.admin-access-btn {
    font-size: 0.7rem;
    color: #fff !important;
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.3rem;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.admin-access-btn:hover {
    background: #222;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12rem 10%;
    overflow: hidden;
    background: #000; /* Fallback */
}

.bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a2530 0%, #0a0f14 100%); /* Fallback moved here */
}

.bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1); /* Start zoomed for parallax */
    transition: opacity 1.2s var(--transition-cinematic);
    will-change: transform;
}

.hero .bg-media img {
    transform: scale(1.05);
    filter: brightness(0.8) contrast(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.3) 30%, 
        rgba(0, 0, 0, 0.3) 70%, 
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

section {
    background: transparent; /* Ensure section is transparent to show bg-media */
}

/* Specific overlay for hero to ensure bottom transition is deep */
.hero .overlay {
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.4) 40%, 
        rgba(0,0,0,0.9) 100%);
}

.content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

/* Typography Hierarchy */
h1 {
    font-size: var(--fs-h1);
    line-height: 1.1; /* Increased from 0.85 to prevent overlapping on wrap */
    font-weight: 800;
    letter-spacing: 0.1em; /* Reduced slightly for better fit */
    margin-bottom: 2rem;
    margin-left: -0.05em;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

/* Specific adjustments for Chinese Title */
[lang="zh-hk"] h1 {
    font-size: clamp(3rem, 10vw, 8.5rem);
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.title-sub {
    font-size: 0.45em; /* Make the Chinese part smaller */
    vertical-align: middle;
    opacity: 0.7;
    margin-left: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
}

/* Ensure Chinese font stack */
[lang="zh-hk"] body {
    font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    text-shadow: var(--text-shadow);
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    opacity: 0.9;
    color: #ffffff;
    margin-bottom: 5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
}

.body-text {
    font-size: var(--fs-body);
    font-weight: 300;
    max-width: 650px;
    opacity: 0.8;
    line-height: 1.8;
}

.emphasis {
    font-weight: 500;
    color: var(--accent);
}

/* Hero Special */
.constants-bar {
    display: flex;
    gap: 4rem;
    margin: 5rem 0;
}

.constant-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    opacity: 1;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
    position: relative;
}

.constant-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.8s var(--transition-cinematic);
}

.constant-item.active::after { width: 100%; }

/* Shift UI - More Dynamic */
.shift-grid {
    display: grid;
    gap: 4rem;
    margin-top: 6rem;
}

/* Narrative - Compact Technical Layout */
.shift-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 6rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.shift-card {
    display: grid;
    grid-template-columns: 1fr 150px 1fr;
    align-items: center;
    position: relative;
    width: 100%;
}

.shift-card::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    height: 1px;
    width: 200px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.shift-card .label {
    grid-column: 1 / -1;
    font-size: 0.65rem;
    letter-spacing: 0.6rem;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--accent);
    font-weight: 400;
}

.shift-card .val {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.15rem;
    text-shadow: 0 6px 25px rgba(0,0,0,1);
    transition: all 0.6s ease;
}

.shift-card .val:first-of-type {
    text-align: right;
    color: #ffffff;
    padding-right: 2rem;
}

.shift-card .val.emphasis {
    text-align: left;
    color: var(--accent);
    padding-left: 2rem;
}

.shift-card .arrow {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    position: relative;
    opacity: 0.6;
}

.shift-card .arrow::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent);
}

.lang-zh .shift-card .val {
    letter-spacing: 0.4rem;
}

/* Dual Core - Monolithic Pillars */
.dual-core-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pillar {
    position: relative;
    padding: 10rem 10% 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    transition: flex 1s var(--transition-cinematic);
    overflow: hidden;
}

.pillar:hover { flex: 1.15; }

.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2;
    transition: opacity 0.8s ease;
}

.pillar:hover::before { opacity: 0.4; }

.pillar .bg-media img { transform: scale(1.15); }
.pillar:hover .bg-media img { transform: scale(1.05); }

/* Value Loop - Pulsing Circle */
.loop-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 4s infinite;
}

.loop-inner-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: none;
    backdrop-filter: none;
    padding: 0;
}

.loop-inner-text p {
    font-size: 1.4rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 5px 25px rgba(0,0,0,1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loop-inner-text p:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.2; }
}

/* CTA Button - Ultra Premium */
.cta-btn {
    display: inline-block;
    margin-top: 4rem;
    padding: 1.5rem 4rem;
    background: transparent;
    color: inherit;
    border: 1px solid var(--text);
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    overflow: hidden;
    position: relative;
    transition: color 0.5s ease;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text);
    transition: left 0.5s var(--transition-cinematic);
    z-index: -1;
}

.cta-btn:hover { color: var(--bg); }
.cta-btn:hover::before { left: 0; }

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s var(--transition-cinematic), transform 1.5s var(--transition-cinematic);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--transition-cinematic), transform 1s var(--transition-cinematic);
}

.stagger-reveal.active span {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .navbar { width: 95%; padding: 1rem 2rem; top: 1rem; }
    .desktop-only { display: none !important; }
    .menu-toggle { display: block; }
    
    .dual-core-container { grid-template-columns: 1fr; position: relative; height: auto; }
    .pillar { height: 70vh; padding: 10rem 10% 5rem; }
    .loop-container { width: 350px; height: 350px; }

    section { padding: 8rem 5%; }
    h1 { font-size: clamp(4rem, 15vw, 8rem); }
}

@media (max-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    .shift-card .val { font-size: 1.8rem; }
    .shift-card { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 1rem; 
    }
    .shift-card .val:first-of-type, .shift-card .val.emphasis {
        text-align: center;
        padding: 0;
    }
    .shift-card .arrow { 
        width: 1px; 
        height: 40px; 
        background: linear-gradient(to bottom, transparent, var(--accent), transparent);
        margin: 1rem 0; 
    }
    .shift-card .arrow::after {
        content: '↓';
        transform: translate(-50%, -50%);
    }
    
    .constants-bar { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
        justify-items: center;
    }
    .constant-item {
        font-size: 0.7rem;
        letter-spacing: 0.2rem;
    }
}
@media (max-width: 768px) {
    #origin .bg-media img {
        object-position: 15% center; /* Shift focus to the left to see the sapling */
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .modal {
        align-items: flex-start !important; /* Start from top, not center */
        overflow-y: auto !important;
    }
    .mobile-only-spacer {
        display: block !important;
    }
    .modal-content {
        padding: 2rem 1.5rem 5rem !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
}

/* Premium Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toast-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.toast.success { border-left-color: #0f6; }
.toast.error { border-left-color: #f44; }
.toast.info { border-left-color: #00b4ff; }

.toast.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .toast {
        min-width: auto;
    }
}
