/* Option A: Intelligent Efficiency (Feishu/Lark Style) - Refined */
:root {
    /* Primary Colors */
    --cn-primary: #3370FF;
    /* Feishu Blue */
    --cn-primary-hover: #295AD9;
    --cn-bg-body: #FFFFFF;
    --cn-bg-subtle: #F5F6F7;
    /* Slightly cooler gray */

    /* Text Colors */
    --cn-text-title: #1F2329;
    --cn-text-body: #646A73;
    --cn-text-placeholder: #8F959E;

    /* Card & Interface */
    --cn-card-bg: #FFFFFF;
    --cn-border: #DEE0E3;
    --cn-radius-l: 16px;
    --cn-radius-m: 8px;

    /* Shadows */
    --cn-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --cn-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* More definition on hover */
}

body {
    background-color: var(--cn-bg-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans SC", sans-serif;
    color: var(--cn-text-body);
    letter-spacing: -0.2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--cn-text-title);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Navbar Reform */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    height: 80px;
    /* Taller navbar for premium feel */
}

/* Ensure Nav Items are visible */
.navbar-light .navbar-nav .nav-link {
    color: var(--cn-text-title);
    font-weight: 500;
    padding: 0 20px;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--cn-primary);
}

/* Hero Section */
.hero-header {
    background: radial-gradient(circle at 50% -20%, #F5F7FA 0%, #FFFFFF 80%);
    padding: 200px 0 160px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle Tech Glow */
.hero-header::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(51, 112, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-header h1 {
    color: var(--cn-text-title);
    font-weight: 700;
    letter-spacing: -1.5px; /* Tighter Apple-style tracking */
    line-height: 1.1;
    /* Optional: Gradient Text for "Tech" feel */
    background: linear-gradient(180deg, #1F2329 20%, #4B5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-header p {
    color: var(--cn-text-body);
    font-size: 1.4rem; /* Larger, readable text */
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.3px;
}

/* Bento Card Style */
.feature-item,
.service-item,
.about-img {
    background: var(--cn-card-bg);
    border-radius: var(--cn-radius-l);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--cn-shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 40px;
    /* More padding inside cards */
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--cn-shadow-hover);
    border-color: rgba(51, 112, 255, 0.2);
}

/* Buttons */
.btn-primary {
    background-color: var(--cn-primary);
    border: none;
    border-radius: 99px; /* Apple-style Pill Shape */
    padding: 14px 40px;
    font-weight: 500;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(51, 112, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-primary:hover {
    background-color: var(--cn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51, 112, 255, 0.35);
}

.btn-outline-primary {
    color: var(--cn-text-title); /* More neutral initially */
    border: 1px solid #E5E5E5;
    background: #fff;
    border-radius: 99px;
    padding: 14px 40px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-outline-primary:hover {
    background: var(--cn-bg-subtle);
    border-color: #D1D5DB;
    color: var(--cn-primary);
    transform: translateY(-2px);
}

/* Utilities */
.text-primary {
    color: var(--cn-primary) !important;
}

.bg-light {
    background-color: var(--cn-bg-subtle) !important;
}
/* =========================================
   Mobile Optimization Overrides
   Targeting devices < 992px (Tablets & Phones)
   ========================================= */
@media (max-width: 991.98px) {
    
    /* 1. Navbar Adjustments */
    .navbar {
        height: auto !important; /* Allow expansion */
        padding: 10px 0;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    
    .nav-item.nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    /* 2. Hero Section Compactness */
    .hero-header {
        padding: 100px 0 60px 0 !important; /* Reduce huge top/bottom padding */
    }
    
    .hero-header h1 {
        font-size: 2.2rem; /* Smaller heading on mobile */
    }
    
    .hero-header .img-fluid {
        margin-top: 40px;
        max-height: 300px !important; /* Don't let hero image dominate */
    }

    /* 3. General spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .g-5 {
        --bs-gutter-y: 2rem; /* Reduce vertical gap between stacked columns */
    }

    /* 4. Footer & Vision Card */
    #footer .vision-card {
        margin-top: 20px;
    }
    
    .vision-card i.fa-heart {
        font-size: 6rem !important; /* Smaller background icon */
    }
    
    .vision-card h5 {
        font-size: 1.1rem;
    }
    
    .vision-card p {
        font-size: 1rem !important;
    }

    /* 5. Modal Optimizations */
    .modal-dialog {
        margin: 10px; /* Small margin on phones */
    }
    
    .modal-body img {
        max-height: 220px !important; /* Smaller QR on phone */
    }
    
    .modal-body h3 {
        font-size: 1.5rem;
    }
}
