:root {
    /* Color Palette - Private Banking Authority */
    --c-bg: #020814;          /* Deep Midnight Blue */
    --c-surface: #0a1426;     /* Secondary Navy */
    --c-surface-light: #122240;
    --c-text: #e0e6ed;        /* Silver Grey text */
    --c-text-dim: #8ba0bd;
    
    /* Metallic Gold Gradients */
    --c-gold-light: #fad69d;
    --c-gold-main: #d1a85e;
    --c-gold-dark: #8c6e33;
    
    --g-gold: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold-main) 50%, var(--c-gold-dark) 100%);
    --g-gold-text: linear-gradient(to right, #fad69d, #d1a85e 60%, #8c6e33);
    
    --c-border: rgba(209, 168, 94, 0.25); /* Gold border with opacity */
    
    /* Typography */
    --f-heading: 'Noto Serif TC', serif;
    --f-body: 'Noto Sans TC', sans-serif;
    
    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 2rem;
    --s-lg: 4rem;
    --s-xl: 6rem;
    --s-xxl: 10vw;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    color: #fff;
    line-height: 1.25;
    font-weight: 500;
}

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

/* Text Utilities */
.highlight-gold {
    background: var(--g-gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--c-gold-main);
    margin-bottom: var(--s-md);
    font-family: var(--f-body);
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-sm);
    padding: 1.1rem 2.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--f-body);
    border-radius: 4px; /* Slight rounding for banking feel */
}

.btn-primary {
    background: var(--g-gold);
    color: var(--c-bg);
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: 0 5px 25px rgba(209, 168, 94, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--c-gold-main);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--c-gold-main);
    color: var(--c-gold-main);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--c-gold-main);
    color: var(--c-bg);
}

.btn.lg {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
}

/* Background Canvas */
.bg-index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    font-family: var(--f-heading);
    font-size: 2rem;
    color: var(--c-gold-main);
    letter-spacing: 0.2em;
    margin-bottom: var(--s-md);
    opacity: 0;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--g-gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--s-md) 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(2, 8, 20, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-logo {
    font-family: var(--f-heading);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.header-logo .en-sub {
    font-family: var(--f-body);
    font-size: 0.75rem;
    color: var(--c-gold-main);
    letter-spacing: 0.15em;
    border-left: 1px solid var(--c-border);
    padding-left: var(--s-sm);
}

.header-nav {
    display: flex;
    gap: var(--s-md);
    align-items: center;
}

.header-nav a:not(.btn) {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 6px;
}

.hover-glow:hover {
    color: var(--c-gold-light);
    text-shadow: 0 0 15px rgba(209, 168, 94, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: -5%;
    z-index: -2;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2) hue-rotate(200deg) saturate(0.8) contrast(1.2); /* Deep corporate tint */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 8, 20, 0.95) 0%, rgba(2, 8, 20, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1100px;
    margin-top: 5vh;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--c-border);
    color: var(--c-gold-light);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--s-md);
    background: rgba(10, 20, 38, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    margin-bottom: var(--s-lg);
    line-height: 1.15;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 15px;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
}

.hero-cta {
    display: flex;
    gap: var(--s-md);
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: var(--s-lg);
    left: 5vw;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--c-text-dim);
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.scroll-down .line-pulse {
    width: 60px;
    height: 1px;
    background: var(--c-gold-main);
    animation: stretch 2.5s infinite ease-in-out;
}

@keyframes stretch {
    0%, 100% { transform: scaleX(0.2); transform-origin: left; opacity: 0.5; }
    50% { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

/* Services */
.services {
    padding: var(--s-xxl) 0;
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
}

.service-arrow-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(209, 168, 94, 0.02) 0px, rgba(209, 168, 94, 0.02) 2px, transparent 2px, transparent 40px);
    opacity: 0.5;
    z-index: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--s-xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    margin-bottom: var(--s-md);
}

.service-desc {
    font-size: 1.15rem;
    color: var(--c-text-dim);
    margin-bottom: var(--s-lg);
    max-width: 550px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.service-list li {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    color: #fff;
    font-weight: 400;
}

.bullet {
    width: 8px;
    height: 8px;
    background: var(--g-gold);
    transform: rotate(45deg);
    display: inline-block;
    box-shadow: 0 0 15px var(--c-gold-main);
}

.service-visual .image-mask {
    width: 100%;
    height: 750px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    border-radius: 4px; /* subtle banking roundness */
}

.service-visual img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: sepia(0.2) hue-rotate(200deg) saturate(0.9) brightness(0.85); /* moody financial look */
}

.chart-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(209, 168, 94, 0.15) 0%, transparent 60%, rgba(2, 8, 20, 0.6) 100%);
    border: 1px solid rgba(209, 168, 94, 0.2);
    border-radius: 4px;
}

/* Philosophy */
.philosophy {
    padding-top: var(--s-xxl);
    background: var(--c-bg);
}

.philosophy-content {
    margin-bottom: var(--s-xxl);
}

.philosophy-header {
    margin-bottom: var(--s-xl);
}

.philosophy-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    max-width: 900px;
}

.philosophy-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
}

.philosophy-col p {
    margin-bottom: var(--s-md);
    font-size: 1.15rem;
    color: var(--c-text-dim);
    line-height: 2;
}

.quote-wrapper {
    position: relative;
    padding-top: var(--s-md);
    margin-top: var(--s-lg);
    border-top: 1px solid var(--c-border);
}

.quote-icon {
    font-family: var(--f-heading);
    font-size: 5rem;
    color: var(--c-gold-main);
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.15;
    line-height: 1;
}

.large-quote {
    font-family: var(--f-heading);
    font-size: 1.8rem;
    line-height: 1.6;
    color: #fff;
    font-style: italic;
    font-weight: 400;
}

.philosophy-banner {
    width: 100%;
    height: 65vh;
    position: relative;
    overflow: hidden;
}

.philosophy-banner img {
    width: 100%;
    height: 120%; /* for parallax */
    object-fit: cover;
    filter: grayscale(60%) sepia(20%) hue-rotate(210deg) brightness(0.5);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--c-bg), transparent 60%, var(--c-bg));
}

/* FAQ Section */
.faq-section {
    padding: var(--s-xxl) 0;
    background: var(--c-surface-light);
    border-top: 1px solid rgba(255,255,255,0.02);
}

.faq-list {
    max-width: 950px;
    margin: var(--s-xl) auto 0;
    border-top: 1px solid var(--c-border);
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-lg) 0;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover h3 {
    color: var(--c-gold-light);
}

.faq-question h3 {
    font-size: 1.35rem;
    font-weight: 500;
    font-family: var(--f-body);
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon .h-line, .faq-icon .v-line {
    position: absolute;
    background: var(--c-gold-main);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-icon .h-line {
    width: 100%;
    height: 2px;
}

.faq-icon .v-line {
    width: 2px;
    height: 100%;
}

.faq-item.active .v-line {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .h-line {
    background: var(--c-gold-light);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    color: var(--c-text-dim);
    font-size: 1.1rem;
    padding-right: var(--s-lg);
    line-height: 2;
}

/* CTA */
.cta-banner {
    padding: var(--s-xxl) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top, transparent, var(--c-surface));
}

.cta-banner h2 {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    margin-bottom: var(--s-lg);
}

.curve-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(209, 168, 94, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.relative-z {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--c-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: var(--s-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--s-xl);
    padding-bottom: var(--s-lg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand .footer-logo {
    font-size: 2rem;
    margin-bottom: var(--s-sm);
    color: #fff;
}

.footer-brand .footer-desc {
    color: var(--c-text-dim);
    max-width: 450px;
    line-height: 1.8;
}

.footer-links-group {
    display: flex;
    gap: var(--s-xl);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.footer-links h4 {
    color: var(--c-gold-main);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    margin-bottom: var(--s-xs);
    font-family: var(--f-body);
}

.footer-links a {
    color: var(--c-text-dim);
    font-size: 1rem;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    padding: var(--s-md) 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4b5d78;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Utils */
.delay-1 { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .service-grid, .philosophy-body, .footer-grid, .footer-links-group {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    
    .hero-bg-image {
        inset: -10%;
    }
    
    .header-nav {
        display: none; 
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--s-sm);
        text-align: center;
    }
}
