html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv11', 'ss01';
}

.bg-grid-light {
    background-image: linear-gradient(to right, rgba(15,37,71,0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(15,37,71,0.04) 1px, transparent 1px);
}

.bg-mesh-blue {
    background-image: radial-gradient(at 20% 0%, rgba(61, 101, 163, 0.08) 0px, transparent 50%),
                      radial-gradient(at 80% 0%, rgba(0, 102, 255, 0.05) 0px, transparent 50%);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background-color: #0f2547;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(15, 37, 71, 0.04), 0 4px 12px -2px rgba(15, 37, 71, 0.06);
    transition: all 0.2s;
}
.btn-primary:hover {
    background-color: #22385c;
    box-shadow: 0 4px 12px -2px rgba(15, 37, 71, 0.08), 0 12px 32px -8px rgba(15, 37, 71, 0.12);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f2547;
    box-shadow: 0 1px 2px 0 rgba(15, 37, 71, 0.04), 0 4px 12px -2px rgba(15, 37, 71, 0.06);
    transition: all 0.2s;
}
.btn-secondary:hover {
    border-color: #90add2;
    background-color: #f8fafc;
    box-shadow: 0 4px 12px -2px rgba(15, 37, 71, 0.08);
}

/* Cards */
.card {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(15, 37, 71, 0.04), 0 4px 12px -2px rgba(15, 37, 71, 0.06);
    transition: all 0.3s;
}
.card:hover {
    border-color: #bccee5;
    box-shadow: 0 4px 12px -2px rgba(15, 37, 71, 0.08), 0 12px 32px -8px rgba(15, 37, 71, 0.12);
    transform: translateY(-4px);
}

/* Form */
.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #0f2547;
    transition: all 0.2s;
}
.form-input::placeholder {
    color: #94a3b8;
}
.form-input:hover {
    border-color: #94a3b8;
}
.form-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Section eyebrow / heading */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #0052d4;
}

/* Scrollbar (淺色) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 12px; border: 3px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

::selection {
    background-color: rgba(0, 102, 255, 0.15);
    color: #091633;
}

/* FAQ details */
details[open] > summary > .faq-icon {
    transform: rotate(45deg);
}

/* Image fade-in */
img {
    transition: opacity 0.3s;
}

/* Line clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
