/* WHITESTONES - Zen-Inspired Minimal Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --charcoal: #343a40;
    --soft-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --zen-transition: all 0.3s ease;
    --fast-transition: all 0.2s ease;
    --slow-transition: all 0.8s ease;
    --section-spacing: 3rem;
    --card-padding: 2rem;
}

body {
    font-family: 'Inter', 'Noto Sans SC', 'Noto Sans TC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Chinese font optimization */
:lang(zh) {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Hiragino Sans GB', sans-serif;
    font-weight: 400;
}

/* Japanese font optimization */
:lang(ja) {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    font-weight: 400;
}

/* Ensure proper rendering for CJK characters */
.comparison-footer {
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Header - Semi-transparent */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--zen-transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--charcoal);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: url('https://cdn1.genspark.ai/user-upload-image/gpt_image_edited/577fe071-40dd-4019-9b10-1161720710f8?_retry=0') center/contain no-repeat;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 400;
    transition: var(--zen-transition);
    position: relative;
}

.nav-link:hover {
    color: var(--charcoal);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    background: none;
    border: 1px solid rgba(108, 117, 125, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--medium-gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--zen-transition);
    min-width: 45px;
}

.lang-current:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: var(--zen-transition);
    z-index: 1000;
    min-width: 45px;
    display: none;
}

.lang-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 0.8rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--fast-transition);
    text-align: center;
}

.lang-option:hover {
    background-color: rgba(248, 249, 250, 0.8);
    color: var(--charcoal);
}

.lang-option.active {
    color: var(--charcoal);
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--charcoal);
    transition: var(--zen-transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--charcoal);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--zen-transition);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

/* Hero Section - River with Stone */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.river-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(200, 220, 240, 0.3) 0%, 
        rgba(220, 235, 250, 0.4) 25%,
        rgba(240, 245, 255, 0.3) 50%,
        rgba(220, 235, 250, 0.4) 75%,
        rgba(200, 220, 240, 0.3) 100%);
    animation: riverFlow 20s ease-in-out infinite;
}

@keyframes riverFlow {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(20px) scale(1.05); }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* Hide watermark with full width bottom strip */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

/* Brand Statement Section styles removed - content now in hero */

/* Hero stone removed for video background */
/*
.hero-stone {
    width: 120px;
    height: 120px;
    background: url('https://cdn1.genspark.ai/user-upload-image/gpt_image_edited/577fe071-40dd-4019-9b10-1161720710f8?_retry=0') center/contain no-repeat;
    margin: 0 auto 2rem;
    animation: floatStone 6s ease-in-out infinite;
}

@keyframes floatStone {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
*/

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.hero-motto {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Responsive line breaks - hidden on desktop, shown on mobile/tablet */
.responsive-break {
    display: none;
}

@media (max-width: 992px) {
    .responsive-break {
        display: inline;
    }
}

/* Fine-tuned line height for mobile readability */
@media (max-width: 768px) {
    .hero-motto,
    .hero-description,
    .feature-description {
        line-height: 1.7;
    }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #5a6c7d;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content Sections */
.section {
    padding: 5rem 2rem;
}

.section-light {
    background: var(--white);
}

.section-gray {
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--charcoal);
    font-family: 'Playfair Display', serif;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.grid-3,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Special layout for 9 cards - 3x3 grid on larger screens */
@media (min-width: 1200px) {
    .grid-3,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 3rem auto 0;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 3rem auto 0;
    }
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
    transition: var(--zen-transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--charcoal);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.feature-description {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--medium-gray);
    font-weight: 500;
}

/* Footer - Semi-transparent */
.footer {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.footer-section p,
.footer-section a {
    color: var(--medium-gray);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--charcoal);
}

/* Footer Addresses Section */
.footer-addresses {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.address-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.address-main,
.address-branch {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.address-branch {
    margin-bottom: 0;
}

.address-main strong,
.address-branch strong {
    color: var(--charcoal);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--medium-gray);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-video {
        /* Ensure video covers properly on mobile */
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero {
        height: 80vh;
    }
    
    /* Mobile language switcher adjustments */
    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Keep dropdown behavior on mobile */
    .lang-dropdown {
        position: relative;
    }
    
    .lang-options {
        /* Keep the same dropdown behavior on mobile */
        display: none;
    }
    
    .lang-options.active {
        display: block;
    }
    
    .lang-option {
        /* Ensure proper display for mobile */
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--soft-shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

/* Page-specific styles */
.page-hero {
    height: 60vh;
    background: var(--light-gray);
}

.page-hero .hero-content {
    max-width: 600px;
}

.page-hero .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--zen-transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--charcoal);
    box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background: var(--charcoal);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--zen-transition);
}

.submit-button:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

/* Modern Monogram Icons */
.feature-icon-modern {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--charcoal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    position: relative;
    transition: var(--zen-transition);
}

.feature-icon-modern:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.feature-icon-modern::before {
    content: attr(data-icon);
    position: absolute;
}

/* Modern section styling */
.modern-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--medium-gray) 50%, transparent 100%);
}

/* Sophisticated card design */
.feature-card-modern {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--zen-transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--charcoal) 0%, var(--medium-gray) 100%);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Pricing transparency section */
.pricing-transparency {
    background: var(--charcoal);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1000px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-transparency::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%);
    animation: shimmer 15s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.pricing-content {
    position: relative;
    z-index: 2;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--slow-transition);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--slow-transition);
}

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

/* Footer addresses responsive */
@media (max-width: 768px) {
    .footer-addresses {
        padding: 0 1rem;
    }
    
    .address-container {
        padding: 1rem;
    }
    
    .address-main,
    .address-branch {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}