:root {
    --bg: #f8fbff;
    --bg-soft: #eef4ff;
    --card: #e5eeff;
    --text: #0f172a;
    --muted: #475569;
    --line: #bfd0ec;
    --accent: #2563eb;
    --accent-2: #06b6d4;
    --glass: color-mix(in srgb, #ffffff 84%, var(--card));
    --glass-line: color-mix(in srgb, #ffffff 24%, var(--line));
    --container: min(1120px, 92vw);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Noto Sans TC", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    --pointer-x: 0;
    --pointer-y: 0;
    background:
        radial-gradient(62rem 62rem at 90% -12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
        radial-gradient(54rem 54rem at -8% 30%, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 68%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 72%, var(--bg)), var(--bg));
    color: var(--text);
    line-height: 1.65;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 20%, black 30%, transparent 85%);
    opacity: 0.28;
}

body::after {
    background:
        radial-gradient(34rem 34rem at 22% 82%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%),
        radial-gradient(28rem 28rem at 78% 64%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 72%);
    filter: blur(16px);
    opacity: 0.6;
    transform: translate3d(calc(var(--pointer-x) * 18px), calc(var(--pointer-y) * 18px), 0);
    animation: ambientFloat 14s ease-in-out infinite alternate;
}

.dynamic-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: clip;
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.5;
    will-change: transform;
}

.orb-1 {
    width: clamp(240px, 34vw, 520px);
    aspect-ratio: 1;
    left: -8vw;
    top: 8vh;
    background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.34), rgba(59, 130, 246, 0));
    animation: orbDriftOne 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: clamp(260px, 32vw, 480px);
    aspect-ratio: 1;
    right: -6vw;
    top: 24vh;
    background: radial-gradient(circle at 45% 45%, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0));
    animation: orbDriftTwo 20s ease-in-out infinite alternate;
}

.orb-3 {
    width: clamp(220px, 28vw, 420px);
    aspect-ratio: 1;
    left: 38vw;
    bottom: -9vh;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.24), rgba(99, 102, 241, 0));
    animation: orbDriftThree 22s ease-in-out infinite alternate;
}

@keyframes orbDriftOne {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(6vw, -4vh, 0) scale(1.08);
    }
}

@keyframes orbDriftTwo {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-5vw, 5vh, 0) scale(1.09);
    }
}

@keyframes orbDriftThree {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(2vw, -6vh, 0) scale(1.12);
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 40;
    background: transparent;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #22d3ee 40%, #818cf8);
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.35);
    transition: width 120ms linear;
}

@keyframes ambientFloat {
    0% {
        transform: translate3d(calc(var(--pointer-x) * 12px), calc(var(--pointer-y) * 12px), 0) scale(1);
    }

    100% {
        transform: translate3d(calc(var(--pointer-x) * 22px), calc(var(--pointer-y) * 20px), 0) scale(1.08);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    background: color-mix(in srgb, #ffffff 86%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: 0 10px 28px color-mix(in srgb, #94a3b8 15%, transparent);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand-mark {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 255, 0.84));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, #ffffff);
    box-shadow:
        0 10px 24px color-mix(in srgb, var(--accent) 26%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.brand-core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #06b6d4 100%);
    color: #f8fbff;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-family: "Orbitron", "Inter", sans-serif;
    text-indent: 0.08em;
    line-height: 1;
    clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
}

.brand-ring,
.brand-grid {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.brand-ring {
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    clip-path: polygon(0 0, 100% 0, 100% 46%, 0 66%);
    opacity: 0.78;
    animation: logoRingSpin 4.4s linear infinite;
}

.brand-grid {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent) 1px, transparent 1px),
        linear-gradient(color-mix(in srgb, var(--accent-2) 20%, transparent) 1px, transparent 1px);
    background-size: 8px 8px;
    mask-image: radial-gradient(circle at 50% 50%, black 42%, transparent 100%);
    opacity: 0.52;
    animation: logoScan 2.7s ease-in-out infinite alternate;
}

.brand-core::before,
.brand-core::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: color-mix(in srgb, #ffffff 88%, var(--accent));
    opacity: 0.85;
}

.brand-core::before {
    width: 4px;
    height: 4px;
    left: 3px;
    top: 3px;
}

.brand-core::after {
    width: 3px;
    height: 3px;
    right: 3px;
    bottom: 3px;
}

.brand:hover .brand-mark {
    transform: translateY(-1px);
}

.brand:hover .brand-core {
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent);
}

@keyframes logoRingSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logoScan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(3px);
    }
}

.nav-links {
    display: flex;
    gap: 28px;
    color: var(--muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--glass) 72%, transparent);
    backdrop-filter: blur(10px) saturate(120%);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: color 180ms ease, background-color 180ms ease;
}

.lang-btn.active {
    background: color-mix(in srgb, #ffffff 76%, var(--card));
    color: var(--text);
}

.hero {
    padding: 90px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
    transform: translate3d(0, calc(var(--scroll-progress, 0) * -18px), 0);
}

.eyebrow,
.section-tag {
    margin: 0 0 14px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    line-height: 1.1;
    max-width: 15ch;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 46%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.35rem);
    line-height: 1.2;
}

.hero-text,
.section-text {
    color: var(--muted);
    margin: 18px 0 0;
    max-width: 64ch;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #f8fbff;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 36%, transparent);
}

.btn-ghost {
    border-color: var(--line);
    background: color-mix(in srgb, var(--glass) 56%, transparent);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-panel {
    background: linear-gradient(180deg, color-mix(in srgb, #ffffff 88%, var(--glass)), color-mix(in srgb, #ffffff 74%, var(--bg-soft)));
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    padding: 26px;
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    box-shadow: 0 24px 46px color-mix(in srgb, var(--accent) 16%, transparent);
    position: relative;
    overflow: hidden;
}

.hero-panel::before,
.card::before,
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0.62) 0%,
            rgba(255, 255, 255, 0.28) 28%,
            rgba(255, 255, 255, 0) 58%);
    opacity: 0.7;
}

.hero-panel::after,
.card::after,
.contact-card::after {
    content: "";
    position: absolute;
    inset: -120% auto;
    width: 42%;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
    transform: rotate(18deg);
    animation: sheenSweep 7.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sheenSweep {

    0%,
    26% {
        left: -38%;
        opacity: 0;
    }

    36% {
        opacity: 0.46;
    }

    54% {
        left: 104%;
        opacity: 0;
    }

    100% {
        left: 104%;
        opacity: 0;
    }
}

.panel-title {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.hero-panel ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.hero-panel li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.hero-panel span {
    color: var(--muted);
}

.section {
    padding: 78px 0;
}

.section-dark {
    background: color-mix(in srgb, #dbeafe 62%, #ffffff);
    border-block: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
    align-items: start;
}

.cards {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    background: color-mix(in srgb, #ffffff 90%, var(--glass));
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-line));
    box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 18%, transparent);
}

.card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.section-contact {
    background: linear-gradient(180deg, rgba(221, 234, 255, 0.35), rgba(216, 230, 255, 0.62));
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 22px;
}

.contact-card {
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    padding: 24px;
    background: color-mix(in srgb, #ffffff 88%, var(--glass));
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 20px 42px color-mix(in srgb, var(--accent) 16%, transparent);
    position: relative;
    overflow: hidden;
}

.contact-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.contact-card strong {
    color: var(--text);
}

.contact-card a {
    color: var(--text);
}

.site-footer {
    border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    color: var(--muted);
    background: color-mix(in srgb, #ffffff 74%, transparent);
}

.reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(6px);
    transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

    .bg-orb,
    .brand-ring,
    .brand-grid,
    .hero-panel::after,
    .card::after,
    .contact-card::after {
        animation: none;
    }

    body::after {
        animation: none;
        transform: none;
    }

    .reveal,
    .reveal.is-visible,
    .card,
    .btn {
        transition: none;
        transform: none;
        filter: none;
    }
}

.footer-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .section-grid,
    .cards,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }
}

@media (max-width: 540px) {
    .brand-text {
        display: none;
    }

    .hero {
        padding-top: 56px;
    }

    .section {
        padding: 56px 0;
    }
}