:root {
    --navy: #0c1e32;
    --navy-light: #152d4a;
    --steel: #3d5266;
    --electric: #0ea5e9;
    --electric-light: #38bdf8;
    --electric-dark: #0284c7;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --gray-bg: #f0f5fa;
    --gray: #64748b;
    --gray-light: #d8e4ef;
    --white: #ffffff;
    --cream: #f8fafc;
    --shadow: 0 8px 32px rgba(12, 30, 50, 0.08);
    --shadow-lg: 0 20px 60px rgba(12, 30, 50, 0.14);
    --radius: 4px;
    --radius-lg: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans TC', 'Inter', -apple-system, sans-serif;
    color: var(--navy);
    line-height: 1.75;
    background: var(--gray-bg);
    font-weight: 400;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    line-height: 1.3;
    font-weight: 700;
    color: var(--navy);
}

a { text-decoration: none; color: inherit; }

.eyebrow {
    display: inline-block;
    color: var(--electric);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--electric-light); }
.section-head-light h2 { color: var(--cream); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    transition: all 0.35s ease;
}
.btn-primary {
    background: var(--electric);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--electric-light);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
    border-color: var(--electric-light);
    color: var(--electric-light);
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Top bar ===== */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    padding: 10px 0;
    letter-spacing: 0.03em;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-item { color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.topbar-item:hover { color: var(--electric-light); }

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-light);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--navy);
    font-size: 1.2rem;
    border-radius: var(--radius);
    border: 2px solid var(--electric);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
}
.logo-text small {
    font-size: 0.58rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--steel);
    letter-spacing: 0.04em;
    transition: color 0.25s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 2px;
    background: var(--electric);
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 1px;
}
.nav-links a:hover { color: var(--electric); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ===== Language Switcher ===== */
.lang-switcher { position: relative; flex-shrink: 0; z-index: 1001; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy-light);
    padding: 10px 18px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.25s;
    min-width: 88px;
    justify-content: center;
}
.lang-btn:hover, .lang-btn.open {
    background: var(--navy-light);
    border-color: var(--electric);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}
.lang-globe { font-size: 0.95rem; }
.lang-current { font-weight: 800; }
.lang-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.lang-btn.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 148px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown li {
    padding: 13px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--steel);
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid var(--gray-light);
}
.lang-dropdown li:last-child { border-bottom: none; }
.lang-dropdown li:hover { background: var(--cream); color: var(--electric); }
.lang-dropdown li.active {
    background: var(--navy);
    color: var(--electric-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--navy);
    border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
    padding: 100px 0 0;
    background: var(--navy);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.hero-accent {
    position: absolute;
    top: 0; right: 0;
    width: 55%; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0.1) 100%);
    pointer-events: none;
}
.hero-circuit {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.05) 0%, transparent 35%),
        linear-gradient(90deg, transparent 49%, rgba(14, 165, 233, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(14, 165, 233, 0.03) 50%, transparent 51%);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}
.badge {
    display: inline-block;
    border: 1px solid rgba(14, 165, 233, 0.45);
    color: var(--electric-light);
    padding: 8px 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    border-radius: var(--radius);
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--cream);
    line-height: 1.25;
}
.hero-sub {
    font-size: 1.02rem;
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 36px;
    max-width: 520px;
    font-weight: 400;
}
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-frame {
    width: 320px; height: 320px;
    border: 2px solid rgba(14, 165, 233, 0.35);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background: rgba(14, 165, 233, 0.05);
}
.hero-frame::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: calc(var(--radius-lg) - 4px);
}
.hero-glow {
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-icon { font-size: 5rem; position: relative; z-index: 1; opacity: 0.9; }

.hero-categories {
    background: var(--navy-light);
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}
.categories-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.categories-row span {
    font-size: 0.8rem;
    color: var(--electric-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== Section heads ===== */
.section-head { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-head h2 { font-size: 2.2rem; margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 1rem; }

/* ===== About ===== */
.about { padding: 100px 0; background: var(--cream); }
.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}
.about-content h2 { font-size: 1.85rem; margin-bottom: 20px; }
.about-content > p { color: var(--steel); margin-bottom: 28px; font-size: 1rem; }
.about-list { list-style: none; }
.about-list li {
    padding: 12px 0;
    font-weight: 500;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.about-list li:last-child { border-bottom: none; }
.about-cards { display: flex; flex-direction: column; gap: 20px; }
.about-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-left: 4px solid var(--electric);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: all 0.3s;
}
.about-card:hover {
    border-color: var(--electric);
    box-shadow: var(--shadow);
}
.card-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}
.card-value {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

/* ===== Products / Services ===== */
.products { padding: 100px 0; background: var(--gray-bg); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
    background: var(--white);
    padding: 40px 32px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.35s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--electric);
}
.product-icon { font-size: 2.4rem; margin-bottom: 20px; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.product-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.65; }

/* ===== Why Us ===== */
.why {
    padding: 100px 0;
    background: var(--navy);
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-card {
    padding: 36px 24px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
}
.why-card:hover { border-color: var(--electric-light); }
.why-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: var(--amber);
    opacity: 0.85;
    margin-bottom: 16px;
    font-weight: 700;
}
.why-card h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 10px; }
.why-card p { font-size: 0.88rem; color: rgba(248, 250, 252, 0.6); line-height: 1.65; }

/* ===== Stats ===== */
.stats { padding: 72px 0; background: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat h3 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--electric);
}
.stat p {
    color: var(--gray);
    font-weight: 500;
    margin-top: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--gray-bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 2.2rem; margin-bottom: 14px; }
.contact-info > p { color: var(--gray); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-box {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 22px 26px;
    font-size: 0.92rem;
    color: var(--steel);
}
.contact-box strong {
    display: block;
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}
.contact-box a { color: var(--electric); font-weight: 600; }
.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--electric);
    color: var(--navy);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    font-size: 0.9rem;
    background: var(--cream);
    color: var(--navy);
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--electric);
}
.form-note { font-size: 0.88rem; color: var(--electric); font-weight: 600; text-align: center; margin-top: 8px; }

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 72px 0 32px;
}
.footer .logo-mark { border-color: var(--electric); }
.footer .logo-text strong { color: var(--cream); }
.footer .logo-text small { color: rgba(255, 255, 255, 0.4); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; max-width: 320px; margin-top: 18px; line-height: 1.7; }
.footer-legal-name { font-size: 0.72rem; color: rgba(255, 255, 255, 0.3); margin-top: 14px; }
.footer-col h4 {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    color: var(--electric-light);
    margin-bottom: 18px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}
.footer-col a, .footer-col span {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--electric-light); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; }
.footer-links a:hover { color: var(--electric-light); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .topbar-right { display: none; }
    .nav-links {
        position: fixed;
        top: 76px; right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--cream);
        width: 280px;
        padding: 32px;
        gap: 24px;
        border-left: 1px solid var(--gray-light);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-toggle { display: flex; }
    .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-frame { width: 260px; height: 260px; margin: 0 auto; }
    .products-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .categories-row { gap: 24px; }
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 1.75rem; }
    .about-cards { flex-direction: row; flex-wrap: wrap; }
    .about-card { flex: 1; min-width: 140px; }
}
