/* =========================
   Reset / Base
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --bg-soft: #f8fbff;
    --white: #ffffff;
    --dark: #0f172a;
    --dark-2: #111827;
    --text: #1e293b;
    --muted: #64748b;
    --line: #dbe4f0;
    --line-soft: #e8eef6;
    --primary: #2563eb;
    --primary-2: #1d4ed8;
    --cyan: #06b6d4;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 16px 35px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --transition: all 0.28s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =========================
   Layout
========================= */
.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading.center {
    text-align: center;
}

.section-label,

.page-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.section-label::before,
.page-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    transform: translateY(-50%);
}

.section-heading h2 {
    font-size: 36px;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 14px;
    letter-spacing: -0.8px;
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    max-width: 760px;
}

.section-heading.center p {
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.9);
    border-color: #cfd8e6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.3);
}

/* =========================
   Header / Navigation
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 18, 32, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)),
        linear-gradient(135deg, #3b82f6, #06b6d4);
    padding: 6px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 16px 35px rgba(37, 99, 235, 0.3);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name strong {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.logo-name small {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #d9e3f0;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    border-radius: 99px;
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: linear-gradient(180deg, #0b1220, #09101c);
    color: #cbd5e1;
    padding-top: 58px;
    margin-top: 10px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 28px;
}

.footer-brand h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-brand p {
    margin-bottom: 6px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 18px;
}

.footer-links a {
    color: #d6deea;
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0 22px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* =========================
   CTA
========================= */
.cta-section {
    background: transparent;
}

.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(6,182,212,0.22), transparent 20%),
        linear-gradient(135deg, #1d4ed8, #0f172a 72%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255,255,255,0.08);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 100%);
    pointer-events: none;
}

.cta-box .section-label {
    color: #cbe1ff;
}

.cta-box .section-label::before {
    background: #93c5fd;
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: #dbeafe;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.cta-text,
.cta-actions {
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.cta-box .btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.26);
    box-shadow: none;
}

.cta-box .btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}
/* =========================
   Responsive
========================= */
@media (max-width: 860px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .btn {
        width: 100%;
    }

    .logo-mark {
        width: 48px;
        height: 48px;
        font-size: 16px;
        border-radius: 15px;
    }

    .logo-name strong {
        font-size: 13px;
    }

    .logo-name small {
        font-size: 12px;
    }
}